porticron.te 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. policy_module(porticron, 0.0.7)
  2. require {
  3. type postfix_master_t;
  4. type tmp_t;
  5. type var_t;
  6. }
  7. ########################################
  8. #
  9. # Declarations
  10. #
  11. attribute_role porticron_roles;
  12. type porticron_t;
  13. type porticron_exec_t;
  14. init_system_domain(porticron_t, porticron_exec_t)
  15. allow porticron_t self:fifo_file { getattr ioctl read write };
  16. allow porticron_t self:tcp_socket { create getattr };
  17. allow porticron_t self:netlink_route_socket { bind create getattr nlmsg_read read write };
  18. allow porticron_t self:process { setrlimit setsched signal getsched };
  19. allow porticron_t self:udp_socket { bind create getattr getopt read setopt write };
  20. allow porticron_t postfix_master_t:unix_stream_socket connectto;
  21. postfix_domtrans_postdrop(porticron_t)
  22. postfix_search_spool(porticron_t)
  23. corecmd_exec_shell(porticron_t)
  24. portage_domtrans(porticron_t)
  25. postfix_read_config(porticron_t)
  26. corenet_udp_bind_generic_node(porticron_t)
  27. corecmd_exec_bin(porticron_t)
  28. logging_send_syslog_msg(porticron_t)
  29. files_read_etc_files(porticron_t)
  30. files_manage_generic_tmp_files(porticron_t)
  31. files_read_usr_files(porticron_t)
  32. files_read_var_lib_files(porticron_t)
  33. files_read_var_files(porticron_t)
  34. files_read_etc_runtime_files(porticron_t)
  35. allow porticron_t tmp_t:file { execute map };
  36. fs_getattr_tmpfs(porticron_t)
  37. userdom_read_user_tmp_files(porticron_t)
  38. hostname_exec(porticron_t)
  39. miscfiles_read_localization(porticron_t)
  40. miscfiles_read_generic_certs(porticron_t)
  41. sysnet_read_config(porticron_t)
  42. portage_read_config(porticron_t)
  43. portage_read_ebuild(porticron_t)
  44. mta_sendmail_exec(porticron_t)
  45. kernel_read_system_state(porticron_t)
  46. kernel_read_vm_overcommit_sysctl(porticron_t)
  47. allow porticron_t var_t:dir read;
  48. optional_policy(`
  49. cron_system_entry(porticron_t, porticron_exec_t)
  50. ')