|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0bfccd |
policy_module(ucspitcp, 1.2.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type rblsmtpd_t;
|
|
Chris PeBenito |
17de1b |
type rblsmtpd_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_system_domain(rblsmtpd_t, rblsmtpd_exec_t)
|
|
Chris PeBenito |
17de1b |
role system_r types rblsmtpd_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type ucspitcp_t;
|
|
Chris PeBenito |
17de1b |
type ucspitcp_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_system_domain(ucspitcp_t, ucspitcp_exec_t)
|
|
Chris PeBenito |
17de1b |
role system_r types ucspitcp_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy for rblsmtpd
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ucspitcp_service_domain(rblsmtpd_t, rblsmtpd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_search_bin(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(rblsmtpd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_if(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_if(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_all_nodes(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_generic_port(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
files_search_var(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
daemontools_ipc_domain(rblsmtpd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy for tcpserver
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow ucspitcp_t self:capability { setgid setuid };
|
|
Chris PeBenito |
17de1b |
allow ucspitcp_t self:fifo_file { read write };
|
|
Chris PeBenito |
17de1b |
allow ucspitcp_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow ucspitcp_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_search_bin(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# base networking:
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(ucspitcp_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_if(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_if(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_all_nodes(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_all_nodes(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# server ports:
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_ftp_port(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_ftp_data_port(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_http_port(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_smtp_port(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_dns_port(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_dns_port(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_bind_generic_port(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# server packets:
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_ftp_server_packets(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_http_server_packets(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_smtp_server_packets(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_dns_server_packets(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_generic_server_packets(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_search_var(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
daemontools_service_domain(ucspitcp_t,ucspitcp_exec_t)
|
|
Chris PeBenito |
17de1b |
daemontools_read_svc(ucspitcp_t)
|
|
Chris PeBenito |
17de1b |
')
|