Skip to content
Snippets Groups Projects
Commit 97bc7239 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am 53c03f1b: am a730e50b: Don\'t allow zygote init:binder call

* commit '53c03f1b':
  Don't allow zygote init:binder call
parents a2f1e48d 53c03f1b
No related branches found
No related tags found
No related merge requests found
......@@ -166,3 +166,7 @@ neverallow { domain -init } proc_security:file { append write };
# No domain should be allowed to ptrace init.
neverallow domain init:process ptrace;
# Init can't receive binder calls. If this neverallow rule is being
# triggered, it's probably due to a service with no SELinux domain.
neverallow domain init:binder call;
......@@ -38,5 +38,5 @@ allow unconfineddomain netif_type:netif *;
allow unconfineddomain port_type:socket_class_set name_bind;
allow unconfineddomain port_type:{ tcp_socket dccp_socket } name_connect;
allow unconfineddomain domain:peer recv;
allow unconfineddomain domain:binder { call transfer set_context_mgr };
allow unconfineddomain { domain -init }:binder { call transfer set_context_mgr };
allow unconfineddomain property_type:property_service set;
......@@ -47,7 +47,6 @@ allow zygote zygote_exec:file { execute_no_trans open };
# handle bugreports b/10498304
allow zygote ashmem_device:chr_file execute;
allow zygote init:binder call;
allow zygote shell_data_file:file { write getattr };
allow zygote system_server:binder { transfer call };
allow zygote servicemanager:binder { call };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment