acmetool.te 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. policy_module(acmetool, 0.1.14)
  2. ########################################
  3. #
  4. # Declarations
  5. #
  6. attribute_role acmetool_roles;
  7. type acmetool_t;
  8. type acmetool_exec_t;
  9. init_system_domain(acmetool_t, acmetool_exec_t)
  10. type acmetool_var_lib_t;
  11. files_type(acmetool_var_lib_t)
  12. type acmetool_usr_lib_t;
  13. files_type(acmetool_usr_lib_t)
  14. type acmetool_etc_t;
  15. files_config_file(acmetool_etc_t)
  16. ########################################
  17. #
  18. # Local policy
  19. #
  20. allow acmetool_t self:process getsched;
  21. allow acmetool_t self:tcp_socket { bind create setopt listen accept };
  22. allow acmetool_t self:unix_dgram_socket { create setopt connect };
  23. allow acmetool_t self:udp_socket { create setopt };
  24. allow acmetool_t acmetool_usr_lib_t:file { execute execute_no_trans };
  25. allow acmetool_t self:fifo_file { read write getattr ioctl };
  26. allow acmetool_t self:process signal;
  27. manage_dirs_pattern(acmetool_t,acmetool_var_lib_t,acmetool_var_lib_t)
  28. manage_files_pattern(acmetool_t,acmetool_var_lib_t,acmetool_var_lib_t)
  29. manage_lnk_files_pattern(acmetool_t,acmetool_var_lib_t,acmetool_var_lib_t)
  30. files_var_lib_filetrans(acmetool_t, acmetool_var_lib_t, { file dir lnk_file })
  31. read_files_pattern(acmetool_t, acmetool_etc_t, acmetool_etc_t)
  32. manage_dirs_pattern(acmetool_t,acmetool_usr_lib_t,acmetool_usr_lib_t)
  33. manage_files_pattern(acmetool_t,acmetool_usr_lib_t,acmetool_usr_lib_t)
  34. gen_require(`
  35. type lib_t;
  36. ')
  37. filetrans_pattern(acmetool_t, lib_t, acmetool_usr_lib_t, { file dir lnk_file })
  38. corecmd_exec_shell(acmetool_t)
  39. corecmd_exec_bin(acmetool_t)
  40. miscfiles_read_localization(acmetool_t)
  41. dev_read_urand(acmetool_t)
  42. kernel_read_net_sysctls(acmetool_t)
  43. kernel_read_vm_sysctls(acmetool_t)
  44. kernel_read_kernel_sysctls(acmetool_t)
  45. kernel_read_system_state(acmetool_t)
  46. kernel_search_vm_sysctl(acmetool_t)
  47. kernel_read_vm_overcommit_sysctl(acmetool_t)
  48. corenet_tcp_bind_generic_node(acmetool_t)
  49. corenet_tcp_connect_http_port(acmetool_t)
  50. corenet_tcp_bind_http_port(acmetool_t)
  51. corenet_tcp_bind_reserved_port(acmetool_t)
  52. corenet_tcp_bind_all_unreserved_ports(acmetool_t)
  53. corenet_udp_bind_generic_node(acmetool_t)
  54. corenet_udp_bind_pyzor_port(acmetool_t)
  55. corenet_udp_bind_traceroute_port(acmetool_t)
  56. corenet_udp_bind_all_unreserved_ports(acmetool_t)
  57. auth_use_nsswitch(acmetool_t)
  58. sysnet_read_config(acmetool_t)
  59. optional_policy(`
  60. cron_system_entry(acmetool_t, acmetool_exec_t)
  61. ')
  62. gen_require(`
  63. type crond_tmp_t;
  64. ')
  65. allow acmetool_t crond_tmp_t:file { read write ioctl };