Mohan Pallaka | 58636a9 | 2014-11-14 14:41:22 -0800 | [diff] [blame] | 1 | # Policies for hbtp (host based touch processing) |
| 2 | type hbtp, domain; |
| 3 | type hbtp_exec, exec_type, file_type; |
| 4 | |
| 5 | init_daemon_domain(hbtp) |
| 6 | |
| 7 | # Allow access for /dev/hbtp_input and /dev/jdi-bu21150 |
| 8 | allow hbtp hbtp_device:chr_file rw_file_perms; |
| 9 | allow hbtp bu21150_device:chr_file rw_file_perms; |
| 10 | |
Mohan Pallaka | b4053ef | 2014-11-25 14:01:29 -0800 | [diff] [blame] | 11 | allow hbtp hbtp_cfg_file:dir rw_dir_perms; |
| 12 | allow hbtp hbtp_cfg_file:file create_file_perms; |
| 13 | |
| 14 | allow hbtp hbtp_log_file:dir rw_dir_perms; |
| 15 | allow hbtp hbtp_log_file:file create_file_perms; |
| 16 | |
| 17 | allow hbtp self:netlink_kobject_uevent_socket { create read setopt bind }; |
| 18 | |
| 19 | binder_use(hbtp); |