bufferhubd.te 868 B

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