Give init and dumpstate access to /proc/allocinfo
/proc/allocinfo is a file that presents a snapshot of how much memory
and how many memory allocations are triggered, by kernel location.
This is an important debugging information that should be collected as
part of bugreports.
This change gives access to the file to init, so that it can change
permissions to access the file, and dumpstate, so that it can read the
file contents.
Bug: 384777823
Test: adb shell dumpstate
Change-Id: I5b0401c44b5994416bc9217e4adbd3a781eb6b2c
Signed-off-by: Alessio Balsini <balsini@google.com>
diff --git a/private/dumpstate.te b/private/dumpstate.te
index 5e3bce5..f9d56ee 100644
--- a/private/dumpstate.te
+++ b/private/dumpstate.te
@@ -394,6 +394,7 @@
# Read files in /proc
allow dumpstate {
+ proc_allocinfo
proc_bootconfig
proc_buddyinfo
proc_cmdline