Skip to content
Snippets Groups Projects
Commit 1eb656f0 authored by Mathias Agopian's avatar Mathias Agopian Committed by android-build-merger
Browse files

Merge "update sepolicy for gralloc HAL" into oc-dev

am: ea0a3027

Change-Id: I20ec1ec4f217d3c6622f5bc263c268ba343bf493
parents e777112e ea0a3027
No related branches found
No related tags found
No related merge requests found
typeattribute mediadrmserver coredomain; typeattribute mediadrmserver coredomain;
init_daemon_domain(mediadrmserver) init_daemon_domain(mediadrmserver)
# allocate and use graphic buffers
hal_client_domain(mediadrmserver, hal_graphics_allocator)
auditallow mediadrmserver hal_graphics_allocator_server:binder call;
typeattribute mediaserver coredomain; typeattribute mediaserver coredomain;
init_daemon_domain(mediaserver) init_daemon_domain(mediaserver)
# allocate and use graphic buffers
hal_client_domain(mediaserver, hal_graphics_allocator)
...@@ -11,3 +11,8 @@ ...@@ -11,3 +11,8 @@
; typeattribute hal_allocator_client halclientdomain; ; typeattribute hal_allocator_client halclientdomain;
(typeattributeset hal_allocator_client ((and (appdomain) ((not (isolated_app)))))) (typeattributeset hal_allocator_client ((and (appdomain) ((not (isolated_app))))))
(typeattributeset halclientdomain (hal_allocator_client)) (typeattributeset halclientdomain (hal_allocator_client))
; Domains hosting Camera HAL implementations are clients of Allocator HAL
; Unfortunately, we can't currently express this in module policy language:
; typeattribute hal_camera hal_allocator_client;
(typeattributeset hal_allocator_client (hal_camera))
...@@ -22,13 +22,15 @@ allow mediacodec gpu_device:chr_file rw_file_perms; ...@@ -22,13 +22,15 @@ allow mediacodec gpu_device:chr_file rw_file_perms;
allow mediacodec video_device:chr_file rw_file_perms; allow mediacodec video_device:chr_file rw_file_perms;
allow mediacodec video_device:dir search; allow mediacodec video_device:dir search;
allow mediacodec ion_device:chr_file rw_file_perms; allow mediacodec ion_device:chr_file rw_file_perms;
allow mediacodec hal_graphics_allocator:fd use;
allow mediacodec hal_camera:fd use; allow mediacodec hal_camera:fd use;
crash_dump_fallback(mediacodec) crash_dump_fallback(mediacodec)
hal_client_domain(mediacodec, hal_allocator) hal_client_domain(mediacodec, hal_allocator)
# allocate and use graphic buffers
hal_client_domain(mediacodec, hal_graphics_allocator)
# Recieve gralloc buffer FDs from bufferhubd. Note that mediacodec never # Recieve gralloc buffer FDs from bufferhubd. Note that mediacodec never
# directly connects to bufferhubd via PDX. Instead, a VR app acts as a bridge # directly connects to bufferhubd via PDX. Instead, a VR app acts as a bridge
# between those two: it talks to mediacodec via Binder and talks to bufferhubd # between those two: it talks to mediacodec via Binder and talks to bufferhubd
......
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