LG8n: sepolicy: Fix dt2w nodes

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
Shirayuki39 2024-08-13 14:01:40 +08:00
parent 1ed39b01a9
commit 2d965b6d0a
4 changed files with 5 additions and 4 deletions

View file

@ -17,7 +17,7 @@ type nfc_vendor_data_file, file_type, data_file_type;
# Gesture
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
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
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
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_main_gesture_function:file rw_file_perms;
allow hal_power_default proc_gesture_state:file rw_file_perms;
# Allow libperfmgr to control cgroups
allow hal_power_default cgroup:file rw_file_perms;

View file

@ -1,3 +1,3 @@
allow mtk_hal_power proc_meminfo:file r_file_perms;
allow mtk_hal_power proc_gesture_function:file rw_file_perms;
allow mtk_hal_power proc_main_gesture_function:file rw_file_perms;
allow mtk_hal_power proc_gesture_state:file rw_file_perms;