Allow shell read access to MGLRU state
at /sys/kernel/mm/lru_gen/enabled. This can be inferred without reading the file anyways. Writes remain restricted to init. Test: adb shell cat /sys/kernel/mm/lru_gen/enabled Bug: 335516770 Change-Id: Ibc8d86f932ecad21c6a07b44aad3517c22fa7843
This commit is contained in:
parent
4b94b1f5d0
commit
12878e5f13
1 changed files with 3 additions and 0 deletions
|
@ -426,6 +426,9 @@ allow shell sysfs:dir r_dir_perms;
|
||||||
allow shell sysfs_batteryinfo:dir r_dir_perms;
|
allow shell sysfs_batteryinfo:dir r_dir_perms;
|
||||||
allow shell sysfs_batteryinfo:file r_file_perms;
|
allow shell sysfs_batteryinfo:file r_file_perms;
|
||||||
|
|
||||||
|
# Allow reads (but not writes) of the MGLRU state
|
||||||
|
allow shell sysfs_lru_gen_enabled:file r_file_perms;
|
||||||
|
|
||||||
# Allow access to ion memory allocation device.
|
# Allow access to ion memory allocation device.
|
||||||
allow shell ion_device:chr_file rw_file_perms;
|
allow shell ion_device:chr_file rw_file_perms;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue