summaryrefslogtreecommitdiff
path: root/sepolicy
diff options
context:
space:
mode:
authorGeorg Veichtlbauer <georg@vware.at>2020-12-14 14:27:08 +0100
committerArian <arian.kulmer@web.de>2020-12-18 12:18:14 +0100
commit34156b064f84d4b9ba454039c6c1b5ffa651282e (patch)
treea775eaedb9bb5cadb709f16fc47f0c85b0cfe8e8 /sepolicy
parent4a4b19cf6f36f2a2eab5444b1332d5537c43ed13 (diff)
shinano-common: Import touch hal
* from z3c, used by all shinano devices Squashed with: commit 5a3f9869745be6c5ded604810df7145e47db8858 Author: Arian <arian.kulmer@web.de> Date: Fri Dec 18 11:22:16 2020 +0100 shinano-common: touch: Fix formatting of Android.bp make blueprint_tools && bpfix device/sony/shinano-common/touch/Android.bp Change-Id: I33a0b2e03bde6278c6dec52f384e3f2f277019e0 commit 80d2c076a48d0f128d915cdf3c65a994f9914a90 Author: Arian <arian.kulmer@web.de> Date: Fri Dec 18 11:24:14 2020 +0100 shinano-common: touch: Move the manifest entry to vintf_fragments Change-Id: I590da80b5c1e7d6729d67b78e55164d33fa7d95b commit d76bab75f874ec15ec42dfaef036ea0476e6f3ec Author: Arian <arian.kulmer@web.de> Date: Fri Dec 18 11:31:02 2020 +0100 shinano-common: touch: clang-format Change-Id: I2e018de4544e4189336207902466e0e821673a5a Change-Id: Idf3e21f5530e40931b5f730dcf6fb2db851e9fb8
Diffstat (limited to 'sepolicy')
-rw-r--r--sepolicy/file_contexts3
-rw-r--r--sepolicy/hal_lineage_touch_default.te2
2 files changed, 5 insertions, 0 deletions
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 627211c..f628d8d 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -12,6 +12,9 @@
/dev/ttyHS0 u:object_r:hci_attach_dev:s0
/dev/brcm_bt_drv u:object_r:hci_attach_dev:s0
+# Lineage hardware
+/(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.shinano u:object_r:hal_lineage_touch_default_exec:s0
+
# Modem
/system/vendor/bin/mlog_qmi_service u:object_r:mlog_qmi_exec:s0
diff --git a/sepolicy/hal_lineage_touch_default.te b/sepolicy/hal_lineage_touch_default.te
new file mode 100644
index 0000000..d76d54b
--- /dev/null
+++ b/sepolicy/hal_lineage_touch_default.te
@@ -0,0 +1,2 @@
+allow hal_lineage_touch_default sysfs_touch:dir search;
+allow hal_lineage_touch_default sysfs_touch:file rw_file_perms;