aboutsummaryrefslogtreecommitdiffstats
path: root/domain.te
diff options
context:
space:
mode:
authordcashman <dcashman@google.com>2015-03-10 18:15:57 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-03-10 18:15:57 +0000
commit7b2d879b33e7a660fb59e36c94f71dd430216239 (patch)
treee3f34af57b48962e43cfa0a92ed9475bb88cc20f /domain.te
parentc2b3ff7f7f740fbb8fccf167960dadbb0c2266fa (diff)
parent1193bdf4ae1498581b4d5c3e964db963e79622dc (diff)
downloadandroid_external_sepolicy-7b2d879b33e7a660fb59e36c94f71dd430216239.tar.gz
android_external_sepolicy-7b2d879b33e7a660fb59e36c94f71dd430216239.tar.bz2
android_external_sepolicy-7b2d879b33e7a660fb59e36c94f71dd430216239.zip
am 1193bdf4: am 6843a793: am 8f81dcad: Only allow system_server to send commands to zygote.
* commit '1193bdf4ae1498581b4d5c3e964db963e79622dc': Only allow system_server to send commands to zygote.
Diffstat (limited to 'domain.te')
-rw-r--r--domain.te4
1 files changed, 4 insertions, 0 deletions
diff --git a/domain.te b/domain.te
index 005b2b3..4fc6f73 100644
--- a/domain.te
+++ b/domain.te
@@ -344,6 +344,10 @@ neverallow {
-dex2oat
} dalvikcache_data_file:file no_w_file_perms;
+# Only system_server should be able to send commands via the zygote socket
+neverallow { domain -zygote -system_server } zygote:unix_stream_socket connectto;
+neverallow { domain -system_server } zygote_socket:sock_file write;
+
# Android does not support System V IPCs.
#
# The reason for this is due to the fact that, by design, they lead to global