Selinux: Give lmkd read access to /proc/meminfo

Allow lmkd read access to /proc/meminfo for retrieving information
on memory state.

Bug: 75322373
Change-Id: I7cf685813a5a49893c8f9a6ac4b5f6619f3c18aa
Merged-In: I7cf685813a5a49893c8f9a6ac4b5f6619f3c18aa
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
(cherry picked from commit 76384b3ee0)
This commit is contained in:
Suren Baghdasaryan 2018-03-29 12:30:58 -07:00
parent 6991a930e1
commit f7010ab109

View file

@ -43,6 +43,9 @@ allow lmkd domain:file { open read };
# reboot because orderly shutdown may not be possible.
allow lmkd proc_sysrq:file rw_file_perms;
# Read /proc/meminfo
allow lmkd proc_meminfo:file r_file_perms;
### neverallow rules
# never honor LD_PRELOAD