| allow system_app persist_phoneid_file:file r_file_perms; |
| |
| # Sensors sockets |
| allow system_app sensors:unix_stream_socket connectto; |
| allow system_app sensors_socket:sock_file rw_file_perms; |
| allow system_app socket_device:dir r_dir_perms; |
| |
| # Sensor nodes (/dev/msm_dsps, /dev/sensors) |
| allow system_app sensors_device:chr_file r_file_perms; |
| |
| # Sensors configuration |
| allow system_app persist_file:dir r_dir_perms; |
| allow system_app sensors_persist_file:dir r_dir_perms; |
| allow system_app sensors_persist_file:file rw_file_perms; |
| |
| # Fairphone misc settings files and properties |
| allow system_app fp_misc_settings_file:dir search; |
| allow system_app fp_misc_settings_file:file rw_file_perms; |
| set_prop(system_app, fp_misc_settings_prop) |