blob: de0913e5b0facffb6d701618b166dc1ed9059a7d [file] [log] [blame]
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;
# For rlsservice to use factory calibration data
allow rlsservice mnt_vendor_file:dir search;
allow rlsservice persist_file:dir search;
allow rlsservice persist_camera_file:dir search;
allow rlsservice persist_camera_file:file r_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 audio_device:chr_file rw_file_perms;
allow rlsservice proc_asound:dir search;
allow rlsservice proc_asound:file r_file_perms;
# For rlsservice to access sensor
binder_call(rlsservice, hal_sensors_default)