summaryrefslogtreecommitdiff
path: root/sepolicy
diff options
context:
space:
mode:
authorSpiritCroc <dev@spiritcroc.de>2018-12-31 14:35:53 +0100
committerArian <arian.kulmer@web.de>2019-10-25 22:16:13 +0200
commiteaa48b6728f531d9aaaccb28eb8693f067a3a973 (patch)
tree7d5400a1beaa5d310257f39e405282740564790f /sepolicy
parentcfe3a6a07290904aab0a4374521f2f00f1cbca16 (diff)
sepolicy: Allow init to chown touchscreen sysfs files
Fixes double tap to wake on enforcing Change-Id: Iaef8822a283e18ad40656bf679acea7de6075662
Diffstat (limited to 'sepolicy')
-rw-r--r--sepolicy/file_contexts6
-rw-r--r--sepolicy/init.te3
2 files changed, 9 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index f1342ad..c00c5fa 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -23,3 +23,9 @@
# Quick Charge
/system/vendor/bin/hvdcp u:object_r:hvdcp_exec:s0
+
+# Touch
+/sys/devices/virtual/input/clearpad/glove -- u:object_r:sysfs_touch:s0
+/sys/devices/virtual/input/clearpad/wakeup_gesture -- u:object_r:sysfs_touch:s0
+/sys/devices/virtual/input/max1187x/glove -- u:object_r:sysfs_touch:s0
+/sys/devices/virtual/input/max1187x/wakeup_gesture -- u:object_r:sysfs_touch:s0
diff --git a/sepolicy/init.te b/sepolicy/init.te
index 1dace75..9918a3d 100644
--- a/sepolicy/init.te
+++ b/sepolicy/init.te
@@ -8,3 +8,6 @@ allow init tmpfs:lnk_file { relabelfrom };
# adsprpcd access to qseecom and qdsp_device
allow init tee_device:chr_file rw_file_perms;
allow init qdsp_device:chr_file rw_file_perms;
+
+# Touch
+allow init sysfs_touch:file setattr;