aboutsummaryrefslogtreecommitdiff
blob: 20800b579bf0bf73f84abcc402b4c90d7f23111c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
policy_module(gdomap, 1.3.1)

########################################
#
# 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)

type gdomap_var_run_t;
files_pid_file(gdomap_var_run_t)

########################################
#
# Local policy
#

allow gdomap_t self:capability { net_bind_service setgid setuid sys_chroot };
allow gdomap_t self:tcp_socket { listen accept };

allow gdomap_t gdomap_var_run_t:file manage_file_perms;
# gdomap_var_run_t dir is for chroot
allow gdomap_t gdomap_var_run_t:dir search;
files_pid_filetrans(gdomap_t, gdomap_var_run_t, file, "gdomap.pid")

corenet_sendrecv_gdomap_server_packets(gdomap_t)
corenet_tcp_bind_generic_node(gdomap_t)
corenet_tcp_bind_gdomap_port(gdomap_t)
corenet_tcp_sendrecv_gdomap_port(gdomap_t)
corenet_udp_bind_generic_node(gdomap_t)
corenet_udp_bind_gdomap_port(gdomap_t)
corenet_udp_sendrecv_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)

miscfiles_read_localization(gdomap_t)