From db834fcfaf1e1ee3864fb7ad967e4c28e5e1beaf Mon Sep 17 00:00:00 2001 From: Tim Zimmermann Date: Thu, 10 Dec 2020 17:35:27 +0100 Subject: [PATCH] common: add policy for touch HAL Change-Id: I0bca76e4b614d4f927b40f9a5fe52f24d0cfc6f5 --- common/vendor/file_contexts | 1 + common/vendor/hal_lineage_touch_default.te | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 common/vendor/hal_lineage_touch_default.te diff --git a/common/vendor/file_contexts b/common/vendor/file_contexts index 47ddca2..b9e4c2a 100644 --- a/common/vendor/file_contexts +++ b/common/vendor/file_contexts @@ -122,6 +122,7 @@ /(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@[0-9].[0-9]-service\.samsung-haptic u:object_r:hal_vibrator_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.biometrics\.fingerprint\.inscreen@1.0-service.samsung u:object_r:hal_lineage_fod_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.powershare@[0-9].[0-9]-service\.samsung u:object_r:hal_lineage_powershare_default_exec:s0 +/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch\@[0-9]\.[0-9]-service.samsung u:object_r:hal_lineage_touch_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.samsung_slsi\.hardware\.configstore@[0-9]\.[0-9]-service u:object_r:hal_vendor_configstore_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.samsung_slsi\.hardware\.ExynosHWCServiceTW@[0-9]\.[0-9]-service u:object_r:hal_vendor_hwcservice_default_exec:s0 diff --git a/common/vendor/hal_lineage_touch_default.te b/common/vendor/hal_lineage_touch_default.te new file mode 100644 index 0000000..706b0de --- /dev/null +++ b/common/vendor/hal_lineage_touch_default.te @@ -0,0 +1,5 @@ +# hal_lineage_touch_default.te + +allow hal_lineage_touch_default sysfs_sec_touchscreen:dir search; +allow hal_lineage_touch_default sysfs_sec_touchscreen:file r_file_perms; +allow hal_lineage_touch_default sysfs_touchscreen_writable:file rw_file_perms; -- 2.20.1