| type rlsservice, domain; |
| type rlsservice_exec, exec_type, vendor_file_type, file_type; |
| init_daemon_domain(rlsservice) |
| vndbinder_use(rlsservice) |
| add_service(rlsservice, rls_service) |
| |
| # access vd6281 rainbow sensor files |
| allow rlsservice rls_device:chr_file rw_file_perms; |
| |
| allow rlsservice hal_camera_default:binder call; |
| |
| # For rlsservice to access display related sys file nodes |
| allow rlsservice sysfs_msm_subsys:dir search; |
| allow rlsservice sysfs_msm_subsys:file r_file_perms; |
| allow rlsservice sysfs_leds:dir search; |
| allow rlsservice sysfs_leds:file r_file_perms; |
| |
| # For rlsservice to access audio |
| allow rlsservice audio_device:dir search; |
| allow rlsservice proc_asound:dir search; |
| allow rlsservice proc_asound:file r_file_perms; |