sm6150-common: sepolicy: Label double_tap sysfs node

Change-Id: Idcff758444a5c89ba20f2ae804a407ee78c445cb
This commit is contained in:
Sebastiano Barezzi
2021-06-03 00:30:05 +02:00
committed by basamaryan
parent f36cf7a8a9
commit 176839842d
3 changed files with 9 additions and 0 deletions

View File

@@ -1,2 +1,5 @@
# Data files
type per_boot_file, file_type, data_file_type, core_data_file_type;
# Touchpanel
type sysfs_touchpanel, fs_type, sysfs_type;

View File

@@ -54,3 +54,6 @@ genfscon sysfs /devices/platform/soc/a8c000.i2c/i2c-2/2-0066/wakeup
genfscon sysfs /devices/platform/soc/a8c000.i2c/i2c-2/2-0066/power_supply/bq2597x-standalone/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/soc/soc:maxim_ds28e16/power_supply/batt_verify/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/platform/soc/soc:fingerprint_fpc/wakeup u:object_r:sysfs_wakeup:s0
# Touchpanel
genfscon sysfs /devices/virtual/touch/touch_dev/ u:object_r:sysfs_touchpanel:s0

View File

@@ -2,3 +2,6 @@ allow hal_power_default touchfeature_device:chr_file rw_file_perms;
# To do powerhint on nodes defined in powerhint.json
allow hal_power_default vendor_latency_device:chr_file rw_file_perms;
allow hal_power_default sysfs_touchpanel:dir search;
allow hal_power_default sysfs_touchpanel:{ file lnk_file } rw_file_perms;