Merge "[DO NOT MERGE] allow vendor init to access percpu_pagelist_high_fraction" into udc-qpr-dev

This commit is contained in:
Treehugger Robot 2023-11-08 01:20:26 +00:00 committed by Android (Google) Code Review
commit 467d378ae4
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_modem_state, sysfs_type, fs_type;
type sysfs_gps, 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 # modem state
genfscon sysfs /devices/platform/cpif/modem_state u:object_r:sysfs_modem_state:s0 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 # gps vendor property
set_prop(vendor_init, vendor_gps_prop) set_prop(vendor_init, vendor_gps_prop)
# PCP knob
allow vendor_init proc_percpu_pagelist_high_fraction:file w_file_perms;