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

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

* commit 'a730e50b':
  Don't allow zygote init:binder call
parents badf49d0 a730e50b
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 }; ...@@ -166,3 +166,7 @@ neverallow { domain -init } proc_security:file { append write };
# No domain should be allowed to ptrace init. # No domain should be allowed to ptrace init.
neverallow domain init:process ptrace; 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 *; ...@@ -38,5 +38,5 @@ allow unconfineddomain netif_type:netif *;
allow unconfineddomain port_type:socket_class_set name_bind; allow unconfineddomain port_type:socket_class_set name_bind;
allow unconfineddomain port_type:{ tcp_socket dccp_socket } name_connect; allow unconfineddomain port_type:{ tcp_socket dccp_socket } name_connect;
allow unconfineddomain domain:peer recv; 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; allow unconfineddomain property_type:property_service set;
...@@ -47,7 +47,6 @@ allow zygote zygote_exec:file { execute_no_trans open }; ...@@ -47,7 +47,6 @@ allow zygote zygote_exec:file { execute_no_trans open };
# handle bugreports b/10498304 # handle bugreports b/10498304
allow zygote ashmem_device:chr_file execute; allow zygote ashmem_device:chr_file execute;
allow zygote init:binder call;
allow zygote shell_data_file:file { write getattr }; allow zygote shell_data_file:file { write getattr };
allow zygote system_server:binder { transfer call }; allow zygote system_server:binder { transfer call };
allow zygote servicemanager:binder { 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