common: add policy for touch HAL
authorTim Zimmermann <tim@linux4.de>
Thu, 10 Dec 2020 16:35:27 +0000 (17:35 +0100)
committerTim Zimmermann <tim@linux4.de>
Thu, 10 Dec 2020 17:07:22 +0000 (18:07 +0100)
Change-Id: I0bca76e4b614d4f927b40f9a5fe52f24d0cfc6f5

common/vendor/file_contexts
common/vendor/hal_lineage_touch_default.te [new file with mode: 0644]

index 47ddca2d141cf23244c6f573b6c3997959a663d7..b9e4c2a19fc3b974c8c34cc203a60494734d8e95 100644 (file)
 /(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 (file)
index 0000000..706b0de
--- /dev/null
@@ -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;