sdm660: sepolicy: Adjust sepolicy for new tap to wake nodes

This commit is contained in:
Max Weffers 2020-04-30 10:16:58 +02:00 committed by OdSazib
parent 46306f40a3
commit a502a3904b
No known key found for this signature in database
GPG key ID: CB336514F9F5CF69
2 changed files with 4 additions and 0 deletions

View file

@ -69,6 +69,8 @@
/proc/touchscreen/enable_dt2w u:object_r:sysfs_tap_to_wake:s0 /proc/touchscreen/enable_dt2w u:object_r:sysfs_tap_to_wake:s0
/sys/devices/soc/c175000\.i2c/i2c-1/1-[0-9a-f]+/input/input[0-9]+/wake_gesture u:object_r:sysfs_tap_to_wake:s0 /sys/devices/soc/c175000\.i2c/i2c-1/1-[0-9a-f]+/input/input[0-9]+/wake_gesture u:object_r:sysfs_tap_to_wake:s0
/proc/tp_gesture u:object_r:sysfs_tap_to_wake:s0 /proc/tp_gesture u:object_r:sysfs_tap_to_wake:s0
/sys/touchpanel/double_tap u:object_r:sysfs_tap_to_wake:s0
/proc/touchpanel/wake_gesture u:object_r:sysfs_tap_to_wake:s0
# Thermal # Thermal
/data/vendor/thermal(/.*)? u:object_r:thermal_data_file:s0 /data/vendor/thermal(/.*)? u:object_r:thermal_data_file:s0

View file

@ -1,4 +1,6 @@
allow hal_power_default sysfs_touchpanel:file rw_file_perms; allow hal_power_default sysfs_touchpanel:file rw_file_perms;
allow hal_power_default sysfs_touchpanel:dir search;
allow hal_power_default proc_dt2w:file rw_file_perms; allow hal_power_default proc_dt2w:file rw_file_perms;
allow hal_power_default sysfs_tap_to_wake:file rw_file_perms; allow hal_power_default sysfs_tap_to_wake:file rw_file_perms;