1# bufferhubd 2type bufferhubd, domain, mlstrustedsubject; 3type bufferhubd_exec, system_file_type, exec_type, file_type; 4 5hal_client_domain(bufferhubd, hal_graphics_allocator) 6 7# TODO(b/112338294): remove these after migrate to Binder 8pdx_server(bufferhubd, bufferhub_client) 9pdx_client(bufferhubd, performance_client) 10 11# Access the GPU. 12allow bufferhubd gpu_device:chr_file rw_file_perms; 13 14# Access /dev/ion 15allow bufferhubd ion_device:chr_file r_file_perms; 16 17# Receive sync fence FDs from hal_omx_server. Note that hal_omx_server never directly 18# connects to bufferhubd via PDX. Instead, a VR app acts as a bridge between 19# those two: it talks to hal_omx_server via Binder and talks to bufferhubd via PDX. 20# Thus, there is no need to use pdx_client macro. 21allow bufferhubd hal_omx_server:fd use; 22 23# Codec2 is similar to OMX 24allow bufferhubd hal_codec2_server:fd use; 25 26