2009-08-05 14:59:21 +00:00
|
|
|
policy_module(ucspitcp, 1.3.0)
|
2006-01-16 18:30:14 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type rblsmtpd_t;
|
|
|
|
type rblsmtpd_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_system_domain(rblsmtpd_t, rblsmtpd_exec_t)
|
2006-01-16 18:30:14 +00:00
|
|
|
role system_r types rblsmtpd_t;
|
|
|
|
|
|
|
|
type ucspitcp_t;
|
|
|
|
type ucspitcp_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_system_domain(ucspitcp_t, ucspitcp_exec_t)
|
2006-01-16 18:30:14 +00:00
|
|
|
role system_r types ucspitcp_t;
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy for rblsmtpd
|
|
|
|
#
|
|
|
|
|
|
|
|
ucspitcp_service_domain(rblsmtpd_t, rblsmtpd_exec_t)
|
|
|
|
|
|
|
|
corecmd_search_bin(rblsmtpd_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(rblsmtpd_t)
|
|
|
|
corenet_all_recvfrom_netlabel(rblsmtpd_t)
|
2009-01-06 20:24:10 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(rblsmtpd_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(rblsmtpd_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_sendrecv_generic_node(rblsmtpd_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(rblsmtpd_t)
|
2006-01-16 18:30:14 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(rblsmtpd_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(rblsmtpd_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_bind_generic_node(rblsmtpd_t)
|
2006-01-16 18:30:14 +00:00
|
|
|
corenet_udp_bind_generic_port(rblsmtpd_t)
|
|
|
|
|
|
|
|
files_read_etc_files(rblsmtpd_t)
|
|
|
|
files_search_var(rblsmtpd_t)
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-01-16 18:30:14 +00:00
|
|
|
daemontools_ipc_domain(rblsmtpd_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy for tcpserver
|
|
|
|
#
|
|
|
|
|
2006-05-30 19:46:34 +00:00
|
|
|
allow ucspitcp_t self:capability { setgid setuid };
|
2008-10-16 16:09:20 +00:00
|
|
|
allow ucspitcp_t self:fifo_file rw_fifo_file_perms;
|
2006-01-16 18:30:14 +00:00
|
|
|
allow ucspitcp_t self:tcp_socket create_stream_socket_perms;
|
2006-04-05 15:32:38 +00:00
|
|
|
allow ucspitcp_t self:udp_socket create_socket_perms;
|
2006-01-16 18:30:14 +00:00
|
|
|
|
|
|
|
corecmd_search_bin(ucspitcp_t)
|
|
|
|
|
2006-06-02 15:06:45 +00:00
|
|
|
# base networking:
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(ucspitcp_t)
|
|
|
|
corenet_all_recvfrom_netlabel(ucspitcp_t)
|
2009-01-06 20:24:10 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(ucspitcp_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(ucspitcp_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_sendrecv_generic_node(ucspitcp_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(ucspitcp_t)
|
2006-01-16 18:30:14 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(ucspitcp_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(ucspitcp_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_bind_generic_node(ucspitcp_t)
|
|
|
|
corenet_udp_bind_generic_node(ucspitcp_t)
|
2006-06-02 15:06:45 +00:00
|
|
|
|
|
|
|
# server ports:
|
2006-01-16 18:30:14 +00:00
|
|
|
corenet_tcp_bind_ftp_port(ucspitcp_t)
|
|
|
|
corenet_tcp_bind_ftp_data_port(ucspitcp_t)
|
|
|
|
corenet_tcp_bind_http_port(ucspitcp_t)
|
|
|
|
corenet_tcp_bind_smtp_port(ucspitcp_t)
|
|
|
|
corenet_tcp_bind_dns_port(ucspitcp_t)
|
|
|
|
corenet_udp_bind_dns_port(ucspitcp_t)
|
|
|
|
corenet_udp_bind_generic_port(ucspitcp_t)
|
|
|
|
|
2006-06-02 15:06:45 +00:00
|
|
|
# server packets:
|
|
|
|
corenet_sendrecv_ftp_server_packets(ucspitcp_t)
|
|
|
|
corenet_sendrecv_http_server_packets(ucspitcp_t)
|
|
|
|
corenet_sendrecv_smtp_server_packets(ucspitcp_t)
|
|
|
|
corenet_sendrecv_dns_server_packets(ucspitcp_t)
|
|
|
|
corenet_sendrecv_generic_server_packets(ucspitcp_t)
|
|
|
|
|
2006-01-16 18:30:14 +00:00
|
|
|
files_search_var(ucspitcp_t)
|
|
|
|
files_read_etc_files(ucspitcp_t)
|
|
|
|
|
|
|
|
sysnet_read_config(ucspitcp_t)
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2009-06-26 14:40:13 +00:00
|
|
|
daemontools_service_domain(ucspitcp_t, ucspitcp_exec_t)
|
2006-01-16 18:30:14 +00:00
|
|
|
daemontools_read_svc(ucspitcp_t)
|
|
|
|
')
|
2010-08-26 13:41:21 +00:00
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
daemontools_sigchld_run(ucspitcp_t)
|
|
|
|
')
|
|
|
|
|