Allow dumpstate to access PSI statistics

dumpstate need to access /proc/pressure/{cpu,mem,io}

Bug: 141884936
Test: adb bugreport and check bugreport file includes PSI metric
Change-Id: I01e7376206c07c1700d6ffe3690d61a1db8dfe84
Signed-off-by: Minchan Kim <minchan@google.com>
This commit is contained in:
Minchan Kim 2019-09-30 15:51:16 -07:00
parent ec0b62e197
commit 8dfe383b2a

View File

@ -276,6 +276,10 @@ allow dumpstate ion_device:chr_file r_file_perms;
# Allow dumpstate to run top
allow dumpstate proc_stat:file r_file_perms;
allow dumpstate proc_pressure_cpu:file r_file_perms;
allow dumpstate proc_pressure_mem:file r_file_perms;
allow dumpstate proc_pressure_io:file r_file_perms;
# Allow dumpstate to talk to installd over binder
binder_call(dumpstate, installd);