From c82350882a5a110fcfe19ff9843fa72d722c0082 Mon Sep 17 00:00:00 2001 From: Jprimero15 Date: Sun, 28 May 2023 10:02:50 +0800 Subject: [PATCH] common: sepolicy: legacy: allow qti_init_shell to write on watermark_scale_factor * https://github.com/AOSPA/android_device_qcom_common/blob/topaz/vendor/init/init.qcom.post_boot.sh#L824 Change-Id: I66139b318596d54dcb811620a2c4ecf8950b3b44 Signed-off-by: Jprimero15 --- sepolicy/legacy/vendor/common/init_shell.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sepolicy/legacy/vendor/common/init_shell.te b/sepolicy/legacy/vendor/common/init_shell.te index 58dc310f..29761372 100644 --- a/sepolicy/legacy/vendor/common/init_shell.te +++ b/sepolicy/legacy/vendor/common/init_shell.te @@ -261,6 +261,9 @@ allow qti_init_shell proc_boot_reason:file r_file_perms; # To read /proc/meminfo allow qti_init_shell proc_meminfo:file r_file_perms; +# To write watermark_scale_factor +allow qti_init_shell proc_watermark_scale_factor:file w_file_perms; + # cpu_boost during touch input allow qti_init_shell sysfs_cpu_boost:dir r_dir_perms; allow qti_init_shell sysfs_cpu_boost:file rw_file_perms;