blob: 7745b72e6652ff29eb6fb3eb9213d2d63c1a9522 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
policy_module(ucspitcp, 1.4.0)
########################################
#
# Declarations
#
type rblsmtpd_t;
type rblsmtpd_exec_t;
init_system_domain(rblsmtpd_t, rblsmtpd_exec_t)
type ucspitcp_t;
type ucspitcp_exec_t;
init_system_domain(ucspitcp_t, ucspitcp_exec_t)
########################################
#
# Smtpd local policy
#
ucspitcp_service_domain(rblsmtpd_t, rblsmtpd_exec_t)
corecmd_search_bin(rblsmtpd_t)
corenet_all_recvfrom_unlabeled(rblsmtpd_t)
corenet_all_recvfrom_netlabel(rblsmtpd_t)
corenet_tcp_sendrecv_generic_if(rblsmtpd_t)
corenet_udp_sendrecv_generic_if(rblsmtpd_t)
corenet_tcp_sendrecv_generic_node(rblsmtpd_t)
corenet_udp_sendrecv_generic_node(rblsmtpd_t)
corenet_tcp_sendrecv_all_ports(rblsmtpd_t)
corenet_udp_sendrecv_all_ports(rblsmtpd_t)
corenet_tcp_bind_generic_node(rblsmtpd_t)
corenet_udp_bind_generic_port(rblsmtpd_t)
files_read_etc_files(rblsmtpd_t)
files_search_var(rblsmtpd_t)
optional_policy(`
daemontools_ipc_domain(rblsmtpd_t)
')
########################################
#
# Tcp local policy
#
allow ucspitcp_t self:capability { setgid setuid };
allow ucspitcp_t self:fifo_file rw_fifo_file_perms;
allow ucspitcp_t self:tcp_socket create_stream_socket_perms;
allow ucspitcp_t self:udp_socket create_socket_perms;
corecmd_search_bin(ucspitcp_t)
corenet_all_recvfrom_unlabeled(ucspitcp_t)
corenet_all_recvfrom_netlabel(ucspitcp_t)
corenet_tcp_sendrecv_generic_if(ucspitcp_t)
corenet_udp_sendrecv_generic_if(ucspitcp_t)
corenet_tcp_sendrecv_generic_node(ucspitcp_t)
corenet_udp_sendrecv_generic_node(ucspitcp_t)
corenet_tcp_sendrecv_all_ports(ucspitcp_t)
corenet_udp_sendrecv_all_ports(ucspitcp_t)
corenet_tcp_bind_generic_node(ucspitcp_t)
corenet_udp_bind_generic_node(ucspitcp_t)
corenet_sendrecv_ftp_server_packets(ucspitcp_t)
corenet_tcp_bind_ftp_port(ucspitcp_t)
corenet_sendrecv_ftp_data_server_packets(ucspitcp_t)
corenet_tcp_bind_ftp_data_port(ucspitcp_t)
corenet_sendrecv_http_server_packets(ucspitcp_t)
corenet_tcp_bind_http_port(ucspitcp_t)
corenet_sendrecv_smtp_server_packets(ucspitcp_t)
corenet_tcp_bind_smtp_port(ucspitcp_t)
corenet_sendrecv_dns_server_packets(ucspitcp_t)
corenet_tcp_bind_dns_port(ucspitcp_t)
corenet_udp_bind_dns_port(ucspitcp_t)
corenet_sendrecv_generic_server_packets(ucspitcp_t)
corenet_udp_bind_generic_port(ucspitcp_t)
files_read_etc_files(ucspitcp_t)
files_search_var(ucspitcp_t)
sysnet_read_config(ucspitcp_t)
optional_policy(`
daemontools_service_domain(ucspitcp_t, ucspitcp_exec_t)
daemontools_read_svc(ucspitcp_t)
')
|