Allow blank_screen to make binder calls to the servicemanager am: e58b2d4cae

Change-Id: Ibfe2ac37b8396be169819d0d99380db1a7f51999
This commit is contained in:
Robin Lee 2020-04-02 19:32:48 +00:00 committed by Automerger Merge Worker
commit 8b5a2cf3b0
2 changed files with 4 additions and 2 deletions

View file

@ -3,6 +3,5 @@ type blank_screen_exec, exec_type, file_type, system_file_type;
init_daemon_domain(blank_screen)
# hal_light_client has access to hal_light_server
hal_client_domain(blank_screen, hal_light)
allow blank_screen hal_light_service:service_manager find;

View file

@ -4,10 +4,13 @@ binder_call(hal_light_server, hal_light_client)
hal_attribute_hwservice(hal_light, hal_light_hwservice)
# server adds itself via service_manager
add_service(hal_light_server, hal_light_service)
binder_call(hal_light_server, servicemanager)
# client finds and uses server via service_manager
allow hal_light_client hal_light_service:service_manager find;
binder_use(hal_light_client)
allow hal_light_server dumpstate:fifo_file write;