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