From 1f6b776d28087c98a2892fc5aa624b9e4af05d83 Mon Sep 17 00:00:00 2001 From: chaptsand Date: Mon, 5 Dec 2022 16:54:16 +0100 Subject: [PATCH] umi: sepolicy: Allow sensors hal to r/w touchpanel nodes Change-Id: Ic28077a356d360f8d64aed8f67299ed1c309d248 --- sepolicy/vendor/hal_sensors_default.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sepolicy/vendor/hal_sensors_default.te b/sepolicy/vendor/hal_sensors_default.te index 92f9b08b..d59ba8f9 100644 --- a/sepolicy/vendor/hal_sensors_default.te +++ b/sepolicy/vendor/hal_sensors_default.te @@ -20,3 +20,7 @@ allow hal_sensors_default vendor_sysfs_touch:file w_file_perms; # Allow Sensors hal to r/w to virtual touchpanel sysfs allow hal_sensors_default vendor_sysfs_tp_virtual_prox:file rw_file_perms; + +# Allow Sensors hal to r/w touchpanel nodes +r_dir_file(hal_sensors_default, sysfs_touchpanel) +allow hal_sensors_default sysfs_touchpanel:file rw_file_perms;