am 2a7a4037: am 2234f9ff: gatekeeperd: neverallow non-system_server binder call

* commit '2a7a403724370ebe16f05602685a654ca4448d59':
  gatekeeperd: neverallow non-system_server binder call
This commit is contained in:
Nick Kralevich 2015-04-10 04:34:58 +00:00 committed by Android Git Automerger
commit 1301f2b64b
2 changed files with 4 additions and 1 deletions

View file

@ -4,13 +4,14 @@ type gatekeeperd_exec, exec_type, file_type;
# gatekeeperd
init_daemon_domain(gatekeeperd)
binder_use(gatekeeperd)
binder_service(gatekeeperd)
allow gatekeeperd tee_device:chr_file rw_file_perms;
# need to find KeyStore and add self
allow gatekeeperd gatekeeper_service:service_manager { add find };
# Need to add auth tokens to KeyStore
allow gatekeeperd keystore_service:service_manager find;
binder_call(gatekeeperd, keystore)
allow gatekeeperd keystore:keystore_key { add_auth };
# For permissions checking
@ -19,3 +20,4 @@ allow gatekeeperd permission_service:service_manager find;
neverallow { domain -gatekeeperd -system_server } gatekeeper_service:service_manager find;
neverallow { domain -gatekeeperd } gatekeeper_service:service_manager add;
neverallow { domain -system_server } gatekeeperd:binder call;

View file

@ -122,6 +122,7 @@ allow system_server surfaceflinger:unix_stream_socket { read write setopt };
# Perform Binder IPC.
binder_use(system_server)
binder_call(system_server, binderservicedomain)
binder_call(system_server, gatekeeperd)
binder_call(system_server, appdomain)
binder_call(system_server, dumpstate)
binder_service(system_server)