LG8n: sepolicy: Fix dt2w nodes

* Lol

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
Shirayuki39 2024-08-13 14:01:40 +08:00
parent 20fda16312
commit 89f6aa4a44
3 changed files with 4 additions and 3 deletions

View file

@ -17,7 +17,7 @@ type nfc_vendor_data_file, file_type, data_file_type;
# Gesture # Gesture
type proc_gesture_function, fs_type, proc_type, sysfs_type; type proc_gesture_function, fs_type, proc_type, sysfs_type;
type proc_main_gesture_function, fs_type, proc_type, sysfs_type; type proc_gesture_state, fs_type, proc_type, sysfs_type;
# OTG # OTG
type sysfs_OTG_STATE_file, fs_type, sysfs_type; type sysfs_OTG_STATE_file, fs_type, sysfs_type;

View file

@ -21,7 +21,7 @@ genfscon sysfs /devices/platform/soc/11017000.i2c/i2c-5/5-006b/power_supply/char
# Gesture # Gesture
genfscon proc /gesture_function u:object_r:proc_gesture_function:s0 genfscon proc /gesture_function u:object_r:proc_gesture_function:s0
genfscon proc /main_gesture_function u:object_r:proc_main_gesture_function:s0 genfscon proc /gesture_state u:object_r:proc_gesture_state:s0
# Label wakeup nodes # Label wakeup nodes
genfscon sysfs /devices/platform/11cb0000.i2c3/i2c-3/3-0018/wakeup u:object_r:sysfs_wakeup:s0 genfscon sysfs /devices/platform/11cb0000.i2c3/i2c-3/3-0018/wakeup u:object_r:sysfs_wakeup:s0

View file

@ -1,5 +1,6 @@
# Allow libperfmgr to access Transsion DT2W Nodes
allow hal_power_default proc_gesture_function:file rw_file_perms; allow hal_power_default proc_gesture_function:file rw_file_perms;
allow hal_power_default proc_main_gesture_function:file rw_file_perms; allow hal_power_default proc_gesture_state:file rw_file_perms;
# Allow libperfmgr to control cgroups # Allow libperfmgr to control cgroups
allow hal_power_default cgroup:file rw_file_perms; allow hal_power_default cgroup:file rw_file_perms;