From 03d2373ffb98bed69b48144277341356599dbccf Mon Sep 17 00:00:00 2001 From: Cosmin Tanislav Date: Fri, 17 Sep 2021 19:57:54 +0300 Subject: [PATCH] sm8350-common: sepolicy: allow qti power hal to write to double tap node --- sepolicy/vendor/file_contexts | 3 +++ sepolicy/vendor/hal_power_default.te | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 sepolicy/vendor/hal_power_default.te diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 145e673..8e59446 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -3,6 +3,9 @@ /vendor/bin/batterysecret u:object_r:batterysecret_exec:s0 /mnt/vendor/persist/subsys(/.*)? u:object_r:persist_subsys_file:s0 +# Power +/sys/devices/virtual/touch/tp_dev/double_tap u:object_r:vendor_sysfs_double_tap:s0 + # FOD /vendor/bin/hw/vendor\.lineage\.biometrics\.fingerprint\.inscreen@1.0-service\.xiaomi_sm8350 u:object_r:hal_lineage_fod_default_exec:s0 /sys/devices/platform/soc/soc:qcom,dsi-display-primary/fod_hbm u:object_r:vendor_sysfs_fod:s0 diff --git a/sepolicy/vendor/hal_power_default.te b/sepolicy/vendor/hal_power_default.te new file mode 100644 index 0000000..e583b49 --- /dev/null +++ b/sepolicy/vendor/hal_power_default.te @@ -0,0 +1,3 @@ +type vendor_sysfs_double_tap, sysfs_type, fs_type; + +allow hal_power_default vendor_sysfs_double_tap:file rw_file_perms;