porticron.te 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. policy_module(porticron, 0.0.5)
  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 };
  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. allow porticron_t tmp_t:file { execute map };
  35. fs_getattr_tmpfs(porticron_t)
  36. userdom_read_user_tmp_files(porticron_t)
  37. hostname_exec(porticron_t)
  38. miscfiles_read_localization(porticron_t)
  39. sysnet_read_config(porticron_t)
  40. portage_read_config(porticron_t)
  41. portage_read_ebuild(porticron_t)
  42. mta_sendmail_exec(porticron_t)
  43. kernel_read_system_state(porticron_t)
  44. kernel_read_vm_overcommit_sysctl(porticron_t)
  45. allow porticron_t var_t:dir read;
  46. optional_policy(`
  47. cron_system_entry(porticron_t, porticron_exec_t)
  48. ')