summaryrefslogtreecommitdiff
path: root/soc/imx6ul/sepolicy/sensors.te
blob: 81fdf8a27924f4a313e9fe13227c84154c9cdedf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Integrated NXP sensor process.
type sensors, domain;
type sensors_exec, exec_type, file_type;

# Started by init.
init_daemon_domain(sensors)

# Change own perms to (nobody,nobody).
allow sensors self:capability { setuid setgid };
# Chown /data/misc/sensors/debug/ to nobody.
allow sensors self:capability chown;
dontaudit sensors self:capability fsetid;

# Access /data/misc/sensors/debug and /data/system/sensors/settings.
allow sensors self:capability dac_read_search;
dontaudit sensors self:capability dac_override;

# Access sensor nodes (/dev/msm_dsps).
allow sensors sensors_device:chr_file rw_file_perms;

# Wake lock access.
wakelock_use(sensors)

allow sensors cgroup:dir { create add_name };
allow sensors input_device:chr_file rw_file_perms;
allow sensors input_device:dir r_dir_perms;
allow sensors uhid_device:chr_file rw_file_perms;