Skip to content
Snippets Groups Projects
Commit 53f53758 authored by Jiwen Cai's avatar Jiwen Cai Committed by Gerrit Code Review
Browse files

Merge "Allow app to conntect to BufferHub service"

parents 146be01a e17b2935
No related branches found
No related tags found
No related merge requests found
...@@ -294,6 +294,7 @@ neverallow all_untrusted_apps { ...@@ -294,6 +294,7 @@ neverallow all_untrusted_apps {
neverallow all_untrusted_apps { neverallow all_untrusted_apps {
coredomain_hwservice coredomain_hwservice
-same_process_hwservice -same_process_hwservice
-fwk_bufferhub_hwservice # Designed for use by any domain
-hidl_allocator_hwservice # Designed for use by any domain -hidl_allocator_hwservice # Designed for use by any domain
-hidl_manager_hwservice # Designed for use by any domain -hidl_manager_hwservice # Designed for use by any domain
-hidl_memory_hwservice # Designed for use by any domain -hidl_memory_hwservice # Designed for use by any domain
......
...@@ -50,3 +50,8 @@ ...@@ -50,3 +50,8 @@
(typeattributeset untrusted_app_visible_hwservice_violators (untrusted_app_visible_hwservice)) (typeattributeset untrusted_app_visible_hwservice_violators (untrusted_app_visible_hwservice))
(typeattribute untrusted_app_visible_halserver) (typeattribute untrusted_app_visible_halserver)
(typeattributeset untrusted_app_visible_halserver_violators (untrusted_app_visible_halserver)) (typeattributeset untrusted_app_visible_halserver_violators (untrusted_app_visible_halserver))
; Apps, except isolated apps, are clients of BufferHub HAL
; Unfortunately, we can't currently express this in module policy language:
; typeattribute { appdomain -isolated_app } hal_cas_client;
(typeattributeset hal_bufferhub_client ((and (appdomain) ((not (isolated_app))))))
binder_call(hal_bufferhub_client, hal_bufferhub_server) binder_call(hal_bufferhub_client, hal_bufferhub_server)
binder_call(hal_bufferhub_server, hal_bufferhub_client) binder_call(hal_bufferhub_server, hal_bufferhub_client)
add_hwservice(hal_bufferhub_server, fwk_bufferhub_hwservice) hal_attribute_hwservice(hal_bufferhub, fwk_bufferhub_hwservice)
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