aboutsummaryrefslogtreecommitdiff
path: root/sepolicy
diff options
context:
space:
mode:
authorScott Mertz <scott@cyngn.com>2015-04-14 11:53:25 -0700
committerRicardo Cerqueira <ricardo@cyngn.com>2015-05-29 18:27:30 +0100
commiteed146020e741164f4d71a7ec3ced0949db66a6a (patch)
tree624e89b48d3fd3a31159626fad840e7238229d86 /sepolicy
parent0f2ab3d5b56e8290327f346aaa9b31e345c90fcd (diff)
lettuce: add tap to wake support
Change-Id: I5708d03ea9c15a48b4dc2adfb7e695ecac453dee
Diffstat (limited to 'sepolicy')
-rw-r--r--sepolicy/file.te1
-rw-r--r--sepolicy/file_contexts2
-rw-r--r--sepolicy/system_server.te2
3 files changed, 5 insertions, 0 deletions
diff --git a/sepolicy/file.te b/sepolicy/file.te
new file mode 100644
index 0000000..8a03e4d
--- /dev/null
+++ b/sepolicy/file.te
@@ -0,0 +1 @@
+type touchpanel_sysfs, fs_type, sysfs_type; \ No newline at end of file
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index e1ec53b..5222c5d 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -5,3 +5,5 @@
/system/etc/init\.qcom\.bt\.sh u:object_r:bluetooth_loader_exec:s0
/dev/smd3 u:object_r:hci_attach_dev:s0
+
+/sys/devices/soc.0/78b9000.i2c/i2c-5/5-0040/gesture u:object_r:touchpanel_sysfs:s0
diff --git a/sepolicy/system_server.te b/sepolicy/system_server.te
new file mode 100644
index 0000000..ea39880
--- /dev/null
+++ b/sepolicy/system_server.te
@@ -0,0 +1,2 @@
+allow system_server touchpanel_sysfs:file rw_file_perms;
+allow system_server touchpanel_sysfs:dir { search }; \ No newline at end of file