am 2b392fcc: Move lmkd into it\'s own domain.

* commit '2b392fccf35c790bdc55bdce51a196f4953644ce':
  Move lmkd into it's own domain.
This commit is contained in:
Nick Kralevich 2013-12-06 08:20:51 -08:00 committed by Android Git Automerger
commit 156b5db957
4 changed files with 11 additions and 0 deletions

View file

@ -101,6 +101,7 @@ type dnsproxyd_socket, file_type, mlstrustedobject;
type gps_socket, file_type;
type installd_socket, file_type;
type keystore_socket, file_type;
type lmkd_socket, file_type;
type mdns_socket, file_type;
type netd_socket, file_type;
type property_socket, file_type;

View file

@ -80,6 +80,7 @@
/dev/socket/gps u:object_r:gps_socket:s0
/dev/socket/installd u:object_r:installd_socket:s0
/dev/socket/keystore u:object_r:keystore_socket:s0
/dev/socket/lmkd u:object_r:lmkd_socket:s0
/dev/socket/mdns u:object_r:mdns_socket:s0
/dev/socket/netd u:object_r:netd_socket:s0
/dev/socket/property_service u:object_r:property_socket:s0
@ -142,6 +143,7 @@
/system/bin/dnsmasq u:object_r:dnsmasq_exec:s0
/system/bin/hostapd u:object_r:hostapd_exec:s0
/system/bin/clatd u:object_r:clatd_exec:s0
/system/bin/lmkd u:object_r:lmkd_exec:s0
#############################
# Vendor files
#

7
lmkd.te Normal file
View file

@ -0,0 +1,7 @@
# lmkd low memory killer daemon
type lmkd, domain;
type lmkd_exec, exec_type, file_type;
init_daemon_domain(lmkd)
unconfined_domain(lmkd);

View file

@ -73,6 +73,7 @@ allow system_server init:process sigchld;
unix_socket_connect(system_server, property, init)
unix_socket_connect(system_server, qemud, qemud)
unix_socket_connect(system_server, installd, installd)
unix_socket_connect(system_server, lmkd, lmkd)
unix_socket_connect(system_server, netd, netd)
unix_socket_connect(system_server, vold, vold)
unix_socket_connect(system_server, zygote, zygote)