Skip to content
Snippets Groups Projects
Commit 7ad743b7 authored by Dario Freni's avatar Dario Freni
Browse files

Allow PackageManager to communicate to apexd.

This is used for querying the installed packages, as well as
coordinating the installations of packages.

Test: ran an app that queries PM, that queries apexd.
Bug: 117589375
Change-Id: I38203ffe6d0d312d6cc38e131a29c14ace0ba10c
parent 41ddb80c
No related branches found
No related tags found
No related merge requests found
...@@ -941,6 +941,10 @@ allow system_server system_server_startup:fd use; ...@@ -941,6 +941,10 @@ allow system_server system_server_startup:fd use;
allow system_server system_server_startup_tmpfs:file { read write map }; allow system_server system_server_startup_tmpfs:file { read write map };
allow system_server system_server_startup:unix_dgram_socket write; allow system_server system_server_startup:unix_dgram_socket write;
# Allow system server to communicate to apexd
allow system_server apex_service:service_manager find;
allow system_server apexd:binder call;
# dexoptanalyzer is currently used only for secondary dex files which # dexoptanalyzer is currently used only for secondary dex files which
# system_server should never access. # system_server should never access.
neverallow system_server dexoptanalyzer_exec:file no_x_file_perms; neverallow system_server dexoptanalyzer_exec:file no_x_file_perms;
......
...@@ -6,8 +6,8 @@ binder_use(apexd) ...@@ -6,8 +6,8 @@ binder_use(apexd)
add_service(apexd, apex_service) add_service(apexd, apex_service)
set_prop(apexd, apexd_prop) set_prop(apexd, apexd_prop)
neverallow { domain -init -apexd } apex_service:service_manager find; neverallow { domain -init -apexd -system_server } apex_service:service_manager find;
neverallow { domain -init -apexd } apexd:binder call; neverallow { domain -init -apexd -system_server } apexd:binder call;
neverallow domain apexd:process ptrace; neverallow domain apexd:process ptrace;
......
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