Chris PeBenito 44d5d9
Chris PeBenito 3d03a4
policy_module(ucspitcp,1.0.2)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
########################################
Chris PeBenito 44d5d9
#
Chris PeBenito 44d5d9
# Declarations
Chris PeBenito 44d5d9
#
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
type rblsmtpd_t;
Chris PeBenito 44d5d9
type rblsmtpd_exec_t;
Chris PeBenito 44d5d9
init_system_domain(rblsmtpd_t,rblsmtpd_exec_t)
Chris PeBenito 44d5d9
role system_r types rblsmtpd_t;
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
type ucspitcp_t;
Chris PeBenito 44d5d9
type ucspitcp_exec_t;
Chris PeBenito 44d5d9
init_system_domain(ucspitcp_t,ucspitcp_exec_t)
Chris PeBenito 44d5d9
role system_r types ucspitcp_t;
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
########################################
Chris PeBenito 44d5d9
#
Chris PeBenito 44d5d9
# Local policy for rblsmtpd
Chris PeBenito 44d5d9
#
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
ucspitcp_service_domain(rblsmtpd_t, rblsmtpd_exec_t)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
allow rblsmtpd_t self:process { fork sigchld };
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
corecmd_search_bin(rblsmtpd_t)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
corenet_tcp_sendrecv_all_if(rblsmtpd_t)
Chris PeBenito 44d5d9
corenet_udp_sendrecv_all_if(rblsmtpd_t)
Chris PeBenito 44d5d9
corenet_tcp_sendrecv_all_nodes(rblsmtpd_t)
Chris PeBenito 44d5d9
corenet_udp_sendrecv_all_nodes(rblsmtpd_t)
Chris PeBenito 44d5d9
corenet_tcp_sendrecv_all_ports(rblsmtpd_t)
Chris PeBenito 44d5d9
corenet_udp_sendrecv_all_ports(rblsmtpd_t)
Chris PeBenito 44d5d9
corenet_non_ipsec_sendrecv(rblsmtpd_t)
Chris PeBenito 44d5d9
corenet_tcp_bind_all_nodes(rblsmtpd_t)
Chris PeBenito 44d5d9
corenet_udp_bind_generic_port(rblsmtpd_t)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
files_read_etc_files(rblsmtpd_t)
Chris PeBenito 44d5d9
files_search_var(rblsmtpd_t)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
libs_use_ld_so(rblsmtpd_t)
Chris PeBenito 44d5d9
libs_use_shared_libs(rblsmtpd_t)
Chris PeBenito 44d5d9
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 44d5d9
	daemontools_ipc_domain(rblsmtpd_t)
Chris PeBenito 44d5d9
')
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
########################################
Chris PeBenito 44d5d9
#
Chris PeBenito 44d5d9
# Local policy for tcpserver
Chris PeBenito 44d5d9
#
Chris PeBenito 44d5d9
Chris PeBenito 141cff
allow ucspitcp_t self:capability { setgid setuid };
Chris PeBenito 44d5d9
allow ucspitcp_t self:fifo_file { read write };
Chris PeBenito 44d5d9
allow ucspitcp_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 65e131
allow ucspitcp_t self:udp_socket create_socket_perms;
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
corecmd_search_bin(ucspitcp_t)
Chris PeBenito 44d5d9
corecmd_search_sbin(ucspitcp_t)
Chris PeBenito 44d5d9
Chris PeBenito 3d03a4
# base networking:
Chris PeBenito 3d03a4
corenet_non_ipsec_sendrecv(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_tcp_sendrecv_all_if(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_udp_sendrecv_all_if(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_tcp_sendrecv_all_nodes(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_udp_sendrecv_all_nodes(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_tcp_sendrecv_all_ports(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_udp_sendrecv_all_ports(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_tcp_bind_all_nodes(ucspitcp_t)
Chris PeBenito 65e131
corenet_udp_bind_all_nodes(ucspitcp_t)
Chris PeBenito 3d03a4
Chris PeBenito 3d03a4
# server ports:
Chris PeBenito 44d5d9
corenet_tcp_bind_ftp_port(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_tcp_bind_ftp_data_port(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_tcp_bind_http_port(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_tcp_bind_smtp_port(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_tcp_bind_dns_port(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_udp_bind_dns_port(ucspitcp_t)
Chris PeBenito 44d5d9
corenet_udp_bind_generic_port(ucspitcp_t)
Chris PeBenito 44d5d9
Chris PeBenito 3d03a4
# server packets:
Chris PeBenito 3d03a4
corenet_sendrecv_ftp_server_packets(ucspitcp_t)
Chris PeBenito 3d03a4
corenet_sendrecv_http_server_packets(ucspitcp_t)
Chris PeBenito 3d03a4
corenet_sendrecv_smtp_server_packets(ucspitcp_t)
Chris PeBenito 3d03a4
corenet_sendrecv_dns_server_packets(ucspitcp_t)
Chris PeBenito 3d03a4
corenet_sendrecv_generic_server_packets(ucspitcp_t)
Chris PeBenito 3d03a4
Chris PeBenito 44d5d9
files_search_var(ucspitcp_t)
Chris PeBenito 44d5d9
files_read_etc_files(ucspitcp_t)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
libs_use_ld_so(ucspitcp_t)
Chris PeBenito 44d5d9
libs_use_shared_libs(ucspitcp_t)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
sysnet_read_config(ucspitcp_t)
Chris PeBenito 44d5d9
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 44d5d9
	daemontools_service_domain(ucspitcp_t,ucspitcp_exec_t)
Chris PeBenito 44d5d9
	daemontools_read_svc(ucspitcp_t)
Chris PeBenito 44d5d9
')