murmur.te 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. policy_module(murmur, 0.1.9)
  2. ########################################
  3. #
  4. # Declarations
  5. #
  6. attribute_role murmur_roles;
  7. type murmur_t;
  8. type murmur_exec_t;
  9. init_daemon_domain(murmur_t, murmur_exec_t)
  10. role murmur_roles types murmur_t;
  11. type murmur_etc_t;
  12. files_config_file(murmur_etc_t)
  13. type murmur_initrc_exec_t;
  14. init_script_file(murmur_initrc_exec_t)
  15. type murmur_var_log_t;
  16. logging_log_file(murmur_var_log_t)
  17. type murmur_var_run_t;
  18. files_pid_file(murmur_var_run_t)
  19. type murmur_tmp_t;
  20. files_tmp_file(murmur_tmp_t)
  21. type murmur_var_lib_t;
  22. files_type(murmur_var_lib_t)
  23. ########################################
  24. #
  25. # Local policy
  26. #
  27. allow murmur_t self:process { signal getsched setsched };
  28. allow murmur_t self:fifo_file rw_fifo_file_perms;
  29. allow murmur_t self:tcp_socket { getattr setopt getopt bind create listen read write accept };
  30. allow murmur_t self:udp_socket { getattr setopt getopt bind create listen read write accept };
  31. allow murmur_t self:netlink_route_socket { write getattr read bind create nlmsg_read };
  32. allow murmur_t self:unix_dgram_socket { create ioctl };
  33. allow murmur_t murmur_etc_t:file read_file_perms;
  34. allow murmur_t murmur_etc_t:lnk_file read_lnk_file_perms;
  35. manage_dirs_pattern(murmur_t, murmur_var_log_t, murmur_var_log_t)
  36. append_files_pattern(murmur_t, murmur_var_log_t, murmur_var_log_t)
  37. create_files_pattern(murmur_t, murmur_var_log_t, murmur_var_log_t)
  38. setattr_files_pattern(murmur_t, murmur_var_log_t, murmur_var_log_t)
  39. logging_log_filetrans(murmur_t, murmur_var_log_t, file)
  40. manage_dirs_pattern(murmur_t, murmur_var_run_t, murmur_var_run_t)
  41. manage_files_pattern(murmur_t, murmur_var_run_t, murmur_var_run_t)
  42. files_pid_filetrans(murmur_t, murmur_var_run_t, { file dir })
  43. allow murmur_t murmur_tmp_t:file manage_file_perms;
  44. files_tmp_filetrans(murmur_t, murmur_tmp_t, file)
  45. manage_dirs_pattern(murmur_t, murmur_var_lib_t, murmur_var_lib_t)
  46. manage_files_pattern(murmur_t, murmur_var_lib_t, murmur_var_lib_t)
  47. type_transition murmur_t murmur_var_lib_t:file murmur_var_lib_t;
  48. corecmd_exec_bin(murmur_t)
  49. miscfiles_read_all_certs(murmur_t)
  50. files_read_config_files(murmur_t)
  51. fs_getattr_xattr_fs(murmur_t)
  52. miscfiles_read_localization(murmur_t)
  53. corenet_tcp_bind_generic_node(murmur_t)
  54. corenet_udp_bind_generic_node(murmur_t)
  55. kernel_read_system_state(murmur_t)
  56. kernel_read_network_state(murmur_t)
  57. dbus_all_session_bus_client(murmur_t)
  58. dbus_system_bus_client(murmur_t)
  59. corenet_tcp_bind_all_unreserved_ports(murmur_t)
  60. corenet_udp_bind_all_unreserved_ports(murmur_t)
  61. dev_read_urand(murmur_t)
  62. files_getattr_usr_files(murmur_t)
  63. files_read_usr_files(murmur_t)
  64. dev_read_sysfs(murmur_t)