sm8350-common: sepolicy: allow qti power hal to write to double tap node

This commit is contained in:
Cosmin Tanislav 2021-09-17 19:57:54 +03:00
parent 36d413f801
commit 03d2373ffb
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,9 @@
/vendor/bin/batterysecret u:object_r:batterysecret_exec:s0 /vendor/bin/batterysecret u:object_r:batterysecret_exec:s0
/mnt/vendor/persist/subsys(/.*)? u:object_r:persist_subsys_file: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 # FOD
/vendor/bin/hw/vendor\.lineage\.biometrics\.fingerprint\.inscreen@1.0-service\.xiaomi_sm8350 u:object_r:hal_lineage_fod_default_exec:s0 /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 /sys/devices/platform/soc/soc:qcom,dsi-display-primary/fod_hbm u:object_r:vendor_sysfs_fod:s0

3
sepolicy/vendor/hal_power_default.te vendored Normal file
View File

@ -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;