2020-02-29 21:54:39 +00:00
|
|
|
policy_module(gdomap, 1.5.0)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type gdomap_t;
|
|
|
|
type gdomap_exec_t;
|
|
|
|
init_daemon_domain(gdomap_t, gdomap_exec_t)
|
|
|
|
|
|
|
|
type gdomap_initrc_exec_t;
|
|
|
|
init_script_file(gdomap_initrc_exec_t)
|
|
|
|
|
|
|
|
type gdomap_conf_t;
|
|
|
|
files_config_file(gdomap_conf_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type gdomap_runtime_t alias gdomap_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(gdomap_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow gdomap_t self:capability { net_bind_service setgid setuid sys_chroot };
|
|
|
|
allow gdomap_t self:tcp_socket { listen accept };
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
allow gdomap_t gdomap_runtime_t:file manage_file_perms;
|
|
|
|
# gdomap_runtime_t dir is for chroot
|
|
|
|
allow gdomap_t gdomap_runtime_t:dir search;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(gdomap_t, gdomap_runtime_t, file, "gdomap.pid")
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
corenet_sendrecv_gdomap_server_packets(gdomap_t)
|
|
|
|
corenet_tcp_bind_generic_node(gdomap_t)
|
|
|
|
corenet_tcp_bind_gdomap_port(gdomap_t)
|
|
|
|
corenet_udp_bind_generic_node(gdomap_t)
|
|
|
|
corenet_udp_bind_gdomap_port(gdomap_t)
|
|
|
|
|
|
|
|
domain_use_interactive_fds(gdomap_t)
|
|
|
|
|
|
|
|
files_search_tmp(gdomap_t)
|
|
|
|
|
|
|
|
auth_use_nsswitch(gdomap_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(gdomap_t)
|
2019-01-04 07:33:57 +00:00
|
|
|
|
|
|
|
miscfiles_read_localization(gdomap_t)
|