Skip to content
Snippets Groups Projects
Commit 7b2d879b authored by dcashman's avatar dcashman Committed by Android Git Automerger
Browse files

am 1193bdf4: am 6843a793: am 8f81dcad: Only allow system_server to send commands to zygote.

* commit '1193bdf4':
  Only allow system_server to send commands to zygote.
parents c2b3ff7f 1193bdf4
No related branches found
No related tags found
No related merge requests found
......@@ -876,14 +876,6 @@ class binder
transfer
}
class zygote
{
specifyids
specifyrlimits
specifyinvokewith
specifyseinfo
}
class property_service
{
set
......
......@@ -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
......
......@@ -302,9 +302,6 @@ allow system_server wpa_socket:sock_file unlink;
type_transition system_server system_data_file:sock_file system_ndebug_socket "ndebugsocket";
allow system_server system_ndebug_socket:sock_file create_file_perms;
# Specify any arguments to zygote.
allow system_server self:zygote { specifyids specifyrlimits specifyseinfo };
# Manage cache files.
allow system_server cache_file:dir { relabelfrom create_dir_perms };
allow system_server cache_file:file { relabelfrom create_file_perms };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment