radio.te 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # phone subsystem
  2. type radio, domain, mlstrustedsubject;
  3. net_domain(radio)
  4. bluetooth_domain(radio)
  5. binder_service(radio)
  6. # Talks to hal_telephony_server via the rild socket only for devices without full treble
  7. not_full_treble(`unix_socket_connect(radio, rild, hal_telephony_server)')
  8. # Data file accesses.
  9. allow radio radio_data_file:dir create_dir_perms;
  10. allow radio radio_data_file:notdevfile_class_set create_file_perms;
  11. allow radio net_data_file:dir search;
  12. allow radio net_data_file:file r_file_perms;
  13. # Property service
  14. set_prop(radio, radio_prop)
  15. set_prop(radio, exported_radio_prop)
  16. set_prop(radio, exported2_radio_prop)
  17. set_prop(radio, exported3_radio_prop)
  18. set_prop(radio, net_radio_prop)
  19. # ctl interface
  20. set_prop(radio, ctl_rildaemon_prop)
  21. add_service(radio, radio_service)
  22. allow radio audioserver_service:service_manager find;
  23. allow radio cameraserver_service:service_manager find;
  24. allow radio drmserver_service:service_manager find;
  25. allow radio mediaserver_service:service_manager find;
  26. allow radio nfc_service:service_manager find;
  27. allow radio app_api_service:service_manager find;
  28. allow radio system_api_service:service_manager find;
  29. allow radio timedetector_service:service_manager find;
  30. # Perform HwBinder IPC.
  31. hwbinder_use(radio)
  32. hal_client_domain(radio, hal_telephony)
  33. # Used by TelephonyManager
  34. allow radio proc_cmdline:file r_file_perms;