[DO NOT MERGE] allow vendor init to access percpu_pagelist_high_fraction

Bug: 309409009
Test: boot
Change-Id: Iec26ef9650d06f265bf484d66cec0ef4bb365bee
Signed-off-by: Martin Liu <liumartin@google.com>
This commit is contained in:
Martin Liu 2023-11-07 14:20:04 +08:00
parent 09c658415f
commit 3a5a9ab8c0
3 changed files with 7 additions and 0 deletions

1
vendor/file.te vendored
View file

@ -1,2 +1,3 @@
type sysfs_modem_state, sysfs_type, fs_type;
type sysfs_gps, sysfs_type, fs_type;
type proc_percpu_pagelist_high_fraction, fs_type, proc_type;

View file

@ -66,3 +66,6 @@ genfscon sysfs /devices/platform/gnssif/coredump
# modem state
genfscon sysfs /devices/platform/cpif/modem_state u:object_r:sysfs_modem_state:s0
# PCP knob
genfscon proc /sys/vm/percpu_pagelist_high_fraction u:object_r:proc_percpu_pagelist_high_fraction:s0

View file

@ -3,3 +3,6 @@ set_prop(vendor_init, vendor_camera_debug_prop)
# gps vendor property
set_prop(vendor_init, vendor_gps_prop)
# PCP knob
allow vendor_init proc_percpu_pagelist_high_fraction:file w_file_perms;