Skip to content
Snippets Groups Projects
Commit bfb6a6c5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Allow fd access between mediacodec and bufferhubd"

parents 08900a01 eeb0d380
No related branches found
No related tags found
No related merge requests found
...@@ -10,3 +10,9 @@ allow bufferhubd gpu_device:chr_file rw_file_perms; ...@@ -10,3 +10,9 @@ allow bufferhubd gpu_device:chr_file rw_file_perms;
# Access /dev/ion # Access /dev/ion
allow bufferhubd ion_device:chr_file r_file_perms; allow bufferhubd ion_device:chr_file r_file_perms;
# Receive sync fence FDs from mediacodec. Note that mediacodec never 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 via PDX.
# Thus, there is no need to use use_pdx macro.
allow bufferhubd mediacodec:fd use;
...@@ -26,6 +26,12 @@ hwbinder_use(mediacodec) ...@@ -26,6 +26,12 @@ hwbinder_use(mediacodec)
hwallocator_use(mediacodec) hwallocator_use(mediacodec)
allow mediacodec system_file:dir { open read }; allow mediacodec system_file:dir { open read };
# Recieve gralloc buffer FDs from bufferhubd. Note that mediacodec never
# 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
# via PDX. Thus, there is no need to use use_pdx macro.
allow mediacodec bufferhubd:fd use;
### ###
### neverallow rules ### neverallow rules
### ###
......
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