diff --git a/sepolicy/vendor/hal_sensors_default.te b/sepolicy/vendor/hal_sensors_default.te index ee70743..7c7e894 100644 --- a/sepolicy/vendor/hal_sensors_default.te +++ b/sepolicy/vendor/hal_sensors_default.te @@ -1,3 +1,19 @@ +# Allow binder communication with hal_audio_default +binder_call(hal_sensors_default, hal_audio_default) + +# Allow hal_sensors_default to find hal_graphics_mapper_hwservice +allow hal_sensors_default hal_graphics_mapper_hwservice:hwservice_manager find; + +# Allow hal_sensors_default to read files in mnt_vendor_file +r_dir_file(hal_sensors_default, mnt_vendor_file) + +# Allow hal_sensors_default to read files in sysfs_graphics +r_dir_file(hal_sensors_default, sysfs_graphics) + # Allow hal_sensors_default to read and write to proc_touchpanel allow hal_sensors_default proc_touchpanel:dir search; allow hal_sensors_default proc_touchpanel:file rw_file_perms; + +# Allow hal_sensors_default to read graphics sysfs nodes +r_dir_file(hal_sensors_default, sysfs_graphics) +