hal_codec2.te 745 B

12345678910111213141516171819202122
  1. binder_call(hal_codec2_client, hal_codec2_server)
  2. binder_call(hal_codec2_server, hal_codec2_client)
  3. hal_attribute_hwservice(hal_codec2, hal_codec2_hwservice)
  4. # The following permissions are added to hal_codec2_server because vendor and
  5. # vndk libraries provided for Codec2 implementation need them.
  6. # Allow server access to composer sync fences
  7. allow hal_codec2_server hal_graphics_composer:fd use;
  8. # Allow both server and client access to ion
  9. allow hal_codec2_server ion_device:chr_file r_file_perms;
  10. # Allow server access to camera HAL's fences
  11. allow hal_codec2_server hal_camera:fd use;
  12. # Receive gralloc buffer FDs from bufferhubd.
  13. allow hal_codec2_server bufferhubd:fd use;
  14. allow hal_codec2_client ion_device:chr_file r_file_perms;