sepolicy: Address sensors denials

Change-Id: Iff842e7333fba5dd17cb3675caede95dd37e3780
Signed-off-by: DennySPb <dennyspb@gmail.com>
This commit is contained in:
Scott Warner 2019-07-10 10:19:17 -04:00 committed by Giammarco Senatore
parent ff0ea35f8a
commit 047ebfb3ab
No known key found for this signature in database
GPG key ID: 661348FC1E144F04

View file

@ -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)