summaryrefslogtreecommitdiff
path: root/sepolicy/adspd.te
blob: 0e56212735c8cfe4804f0c226aeeb469367b4b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
type adspd, domain;
type adspd_exec, file_type, exec_type;

init_daemon_domain(adspd)

# STOPSHIP: Permissive is not allowed. CTS violation!
permissive adspd;

#Access /dev/ttyHS3
allow adspd adspd_device:chr_file rw_file_perms;

#Access /dev/input/event4 - headphone jack
allow adspd input_device:chr_file rw_file_perms;

# For now, allow writes to all of /sys.
# TODO: scope down this access.
allow adspd sysfs:file write;