mediadrmserver.te 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # mediadrmserver - mediadrm daemon
  2. type mediadrmserver, domain;
  3. type mediadrmserver_exec, system_file_type, exec_type, file_type;
  4. typeattribute mediadrmserver mlstrustedsubject;
  5. net_domain(mediadrmserver)
  6. binder_use(mediadrmserver)
  7. binder_call(mediadrmserver, binderservicedomain)
  8. binder_call(mediadrmserver, appdomain)
  9. binder_service(mediadrmserver)
  10. hal_client_domain(mediadrmserver, hal_drm)
  11. add_service(mediadrmserver, mediadrmserver_service)
  12. allow mediadrmserver mediaserver_service:service_manager find;
  13. allow mediadrmserver mediametrics_service:service_manager find;
  14. allow mediadrmserver processinfo_service:service_manager find;
  15. allow mediadrmserver surfaceflinger_service:service_manager find;
  16. allow mediadrmserver system_file:dir r_dir_perms;
  17. # TODO(b/80317992): remove
  18. binder_call(mediadrmserver, hal_omx_server)
  19. ###
  20. ### neverallow rules
  21. ###
  22. # mediadrmserver should never execute any executable without a
  23. # domain transition
  24. neverallow mediadrmserver { file_type fs_type }:file execute_no_trans;
  25. # do not allow privileged socket ioctl commands
  26. neverallowxperm mediadrmserver domain:{ rawip_socket tcp_socket udp_socket } ioctl priv_sock_ioctls;