kunlun2: sepolicy: Allow power hal to access tap to wake node

Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
SamarV-121 2020-04-12 03:10:34 +05:30
parent 540f36f22b
commit d660d30e22
3 changed files with 6 additions and 0 deletions

View file

@ -2,3 +2,4 @@ type adsprpcd_file, file_type;
type bt_firmware_file, file_type; type bt_firmware_file, file_type;
type firmware_file, file_type; type firmware_file, file_type;
type persist_file, file_type; type persist_file, file_type;
type sysfs_tp, fs_type, sysfs_type;

View file

@ -1,3 +1,6 @@
# DT2W
/sys/class/touch/tp_dev/gesture_on u:object_r:sysfs_tp:s0
# Files in rootfs # Files in rootfs
/bt_firmware(/.*)? u:object_r:bt_firmware_file:s0 /bt_firmware(/.*)? u:object_r:bt_firmware_file:s0
/dsp(/.*)? u:object_r:adsprpcd_file:s0 /dsp(/.*)? u:object_r:adsprpcd_file:s0

View file

@ -0,0 +1,2 @@
allow hal_power sysfs_tp:dir search;
allow hal_power sysfs_tp:file w_file_perms;