-
Notifications
You must be signed in to change notification settings - Fork 30
/
os-rabbitmq.te
34 lines (30 loc) · 957 Bytes
/
os-rabbitmq.te
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
policy_module(os-rabbitmq,0.1)
gen_require(`
type epmd_port_t;
type init_tmp_t;
type logrotate_t;
type proc_net_t;
type rabbitmq_epmd_t;
type rabbitmq_port_t;
type rabbitmq_t;
type rabbitmq_var_lib_t;
type security_t;
class dir { read write };
class file { getattr open read write };
class passwd passwd;
class security compute_av;
class tcp_socket { name_bind name_connect };
')
# Bugzilla 1135637
allow rabbitmq_epmd_t init_tmp_t:file write;
# Bugzilla 1413775
allow logrotate_t epmd_port_t:tcp_socket {name_connect name_bind};
allow logrotate_t rabbitmq_port_t:tcp_socket name_connect;
allow logrotate_t rabbitmq_var_lib_t:dir { read write };
allow logrotate_t rabbitmq_var_lib_t:file { getattr open read };
allow logrotate_t security_t:security compute_av;
allow logrotate_t self:passwd passwd;
# Bugzilla 1650046
allow logrotate_t proc_net_t:file read;
allow logrotate_t self:process setrlimit;
allow rabbitmq_t proc_net_t:file read;