From 75dc802330d1905d58b34fdfa4adb7a17157fc5b Mon Sep 17 00:00:00 2001 From: Marc Bourgoin Date: Sat, 24 Sep 2022 17:40:53 -0600 Subject: [PATCH] sm7325-common: Address dubai's DT2W denials Change-Id: I0a0f892185eb98017aafa948d103155780954367 --- sepolicy/vendor/file_contexts | 5 +++-- sepolicy/vendor/hal_sensors_default.te | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 75525fe..0c1d577 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -78,8 +78,9 @@ /(vendor|system/vendor)/bin/hw/android\.hardware\.secure_element@1\.2-service\.st u:object_r:hal_secure_element_default_exec:s0 # Touch -/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.berlin u:object_r:hal_lineage_touch_default_exec:s0 -/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.dubai u:object_r:hal_lineage_touch_default_exec:s0 +/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.berlin u:object_r:hal_lineage_touch_default_exec:s0 +/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.dubai u:object_r:hal_lineage_touch_default_exec:s0 +/sys/devices/platform/soc/a94000\.spi/spi_master/spi0/spi0\.0/touchscreen/primary(/.*)? u:object_r:vendor_sysfs_touchpanel:s0 # Thermal /dev/mmi_sys_temp u:object_r:vendor_thermal_device:s0 diff --git a/sepolicy/vendor/hal_sensors_default.te b/sepolicy/vendor/hal_sensors_default.te index 1547523..f5fbe5a 100644 --- a/sepolicy/vendor/hal_sensors_default.te +++ b/sepolicy/vendor/hal_sensors_default.te @@ -5,4 +5,7 @@ allow hal_sensors_default vendor_sysfs_input:dir r_dir_perms; allow hal_sensors_default vendor_sysfs_input:file rw_file_perms; allow hal_sensors_default vendor_sysfs_dt2w:dir r_dir_perms; -allow hal_sensors_default vendor_sysfs_dt2w:file rw_file_perms; \ No newline at end of file +allow hal_sensors_default vendor_sysfs_dt2w:file rw_file_perms; + +allow hal_sensors_default vendor_sysfs_touchpanel:dir r_dir_perms; +allow hal_sensors_default vendor_sysfs_touchpanel:file rw_file_perms;