diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te index f4b9c47..de322b6 100644 --- a/sepolicy/vendor/file.te +++ b/sepolicy/vendor/file.te @@ -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; diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts index 5bede8e..aa2bc4d 100644 --- a/sepolicy/vendor/genfs_contexts +++ b/sepolicy/vendor/genfs_contexts @@ -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 diff --git a/sepolicy/vendor/hal_power_default.te b/sepolicy/vendor/hal_power_default.te index 49b569f..d309486 100644 --- a/sepolicy/vendor/hal_power_default.te +++ b/sepolicy/vendor/hal_power_default.te @@ -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;