1type adspd, domain, domain_deprecated, mlstrustedsubject; 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 21allow adspd sysfs_usb:file write; 22 23allow adspd sysfs_mmi_touch:dir search; 24allow adspd sysfs_mmi_touch:file r_file_perms; 25