| # Policy for sensor test binaries |
| type sensors_test_exec, exec_type, file_type; |
| |
| userdebug_or_eng(` |
| type sensors_test, domain; |
| |
| domain_auto_trans(shell, sensors_test_exec, sensors_test) |
| domain_auto_trans(adbd, sensors_test_exec, sensors_test) |
| |
| allow sensors_test devpts:chr_file rw_file_perms; |
| allow sensors_test sensors:unix_stream_socket connectto; |
| allow sensors_test sensors_device:chr_file rw_file_perms; |
| allow sensors_test sensors_socket:sock_file rw_file_perms; |
| allow sensors_test smd_device:chr_file rw_file_perms; |
| allow sensors_test socket_device:dir r_dir_perms; |
| ') |