sepolicy: Address sensors denials
Change-Id: Iff842e7333fba5dd17cb3675caede95dd37e3780 Signed-off-by: DennySPb <dennyspb@gmail.com>
This commit is contained in:
parent
ff0ea35f8a
commit
047ebfb3ab
1 changed files with 16 additions and 0 deletions
16
sepolicy/vendor/hal_sensors_default.te
vendored
16
sepolicy/vendor/hal_sensors_default.te
vendored
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue