1type adspd, domain;
2type adspd_exec, file_type, exec_type;
3
4init_daemon_domain(adspd)
5
6#Access /dev/ttyHS3
7allow adspd adspd_device:chr_file rw_file_perms;
8
9#Access /dev/input/event4 - headphone jack
10allow adspd input_device:dir search;
11allow adspd input_device:chr_file rw_file_perms;
12
13# /data/adspd
14allow adspd adspd_data_file:file create_file_perms;
15allow adspd adspd_data_file:dir rw_dir_perms;
16
17# For now, allow writes to all of /sys.
18# TODO: scope down this access.
19allow adspd sysfs:file write;
20