sepolicy: Allow lmkd to communicate with its other instance for reinit
Lmkd should implement reinit functionality and to do so it needs to communicate with its running instance using socket. Bug: 155149944 Test: lmkd --reinit Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: I81455fe187830081d88f001b4588f7607b1bd1d0
This commit is contained in:
parent
7047f515c6
commit
d66fc4909f
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,9 @@ allow lmkd proc_pressure_io:file r_file_perms;
|
|||
# Read/Write /proc/pressure/memory
|
||||
allow lmkd proc_pressure_mem:file rw_file_perms;
|
||||
|
||||
# Allow lmkd to connect during reinit.
|
||||
allow lmkd lmkd_socket:sock_file write;
|
||||
|
||||
# Allow lmkd to write to statsd.
|
||||
unix_socket_send(lmkd, statsdw, statsd)
|
||||
|
||||
|
|
Loading…
Reference in a new issue