spreed-webrtc.te 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. policy_module(spreed-webrtc, 0.1.4)
  2. ########################################
  3. #
  4. # Declarations
  5. #
  6. attribute_role spreed_roles;
  7. type spreed_t;
  8. type spreed_exec_t;
  9. init_daemon_domain(spreed_t, spreed_exec_t)
  10. type spreed_opt_t;
  11. files_type(spreed_opt_t)
  12. type spreed_etc_t;
  13. files_config_file(spreed_etc_t)
  14. ########################################
  15. #
  16. # Local policy
  17. #
  18. allow spreed_t self:process getsched;
  19. allow spreed_t self:tcp_socket { getattr setopt bind create accept listen read write };
  20. read_files_pattern(spreed_t, spreed_opt_t, spreed_opt_t)
  21. search_dirs_pattern(spreed_t, spreed_opt_t, spreed_opt_t)
  22. list_dirs_pattern(spreed_t, spreed_opt_t, spreed_opt_t)
  23. read_files_pattern(spreed_t, spreed_etc_t, spreed_etc_t)
  24. apache_read_sys_content(spreed_t)
  25. corenet_tcp_bind_http_cache_port(spreed_t)
  26. corenet_tcp_bind_generic_node(spreed_t)
  27. miscfiles_read_localization(spreed_t)
  28. kernel_read_net_sysctls(spreed_t)
  29. files_read_etc_files(spreed_t)
  30. dev_read_urand(spreed_t)
  31. optional_policy(`
  32. gen_require(`
  33. type supervisor_t;
  34. ')
  35. supervisor_service_domain(spreed_t,spreed_exec_t)
  36. allow supervisor_t spreed_opt_t:dir search;
  37. ')