Chris PeBenito 17de1b
Chris PeBenito 17de1b
policy_module(uucp,1.1.1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
type uucpd_t;
Chris PeBenito 17de1b
type uucpd_exec_t;
Chris PeBenito 17de1b
inetd_tcp_service_domain(uucpd_t,uucpd_exec_t)
Chris PeBenito 17de1b
role system_r types uucpd_t;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type uucpd_tmp_t;
Chris PeBenito 17de1b
files_tmp_file(uucpd_tmp_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type uucpd_var_run_t;
Chris PeBenito 17de1b
files_pid_file(uucpd_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type uucpd_rw_t;
Chris PeBenito 17de1b
files_type(uucpd_rw_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type uucpd_ro_t;
Chris PeBenito 17de1b
files_type(uucpd_ro_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type uucpd_spool_t;
Chris PeBenito 17de1b
files_type(uucpd_spool_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type uucpd_log_t;
Chris PeBenito 17de1b
logging_log_file(uucpd_log_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
allow uucpd_t self:capability { setuid setgid };
Chris PeBenito 17de1b
allow uucpd_t self:process signal_perms;
Chris PeBenito 17de1b
allow uucpd_t self:fifo_file rw_file_perms;
Chris PeBenito 17de1b
allow uucpd_t self:tcp_socket connected_stream_socket_perms;
Chris PeBenito 17de1b
allow uucpd_t self:udp_socket create_socket_perms;
Chris PeBenito 17de1b
allow uucpd_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow uucpd_t uucpd_log_t:file create_file_perms;
Chris PeBenito 17de1b
allow uucpd_t uucpd_log_t:dir { rw_dir_perms setattr };
Chris PeBenito 17de1b
logging_log_filetrans(uucpd_t,uucpd_log_t,{ file dir })
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow uucpd_t uucpd_ro_t:dir r_dir_perms;
Chris PeBenito 17de1b
allow uucpd_t uucpd_ro_t:file r_file_perms;
Chris PeBenito 17de1b
allow uucpd_t uucpd_ro_t:lnk_file { getattr read };
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow uucpd_t uucpd_rw_t:dir create_dir_perms;
Chris PeBenito 17de1b
allow uucpd_t uucpd_rw_t:file create_file_perms;
Chris PeBenito 17de1b
allow uucpd_t uucpd_rw_t:lnk_file create_lnk_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow uucpd_t uucpd_spool_t:dir create_dir_perms;
Chris PeBenito 17de1b
allow uucpd_t uucpd_spool_t:file create_file_perms;
Chris PeBenito 17de1b
allow uucpd_t uucpd_spool_t:lnk_file create_lnk_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow uucpd_t uucpd_tmp_t:dir create_dir_perms;
Chris PeBenito 17de1b
allow uucpd_t uucpd_tmp_t:file create_file_perms;
Chris PeBenito 17de1b
files_tmp_filetrans(uucpd_t, uucpd_tmp_t, { file dir })
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow uucpd_t uucpd_var_run_t:file create_file_perms;
Chris PeBenito 17de1b
allow uucpd_t uucpd_var_run_t:dir rw_dir_perms;
Chris PeBenito 17de1b
files_pid_filetrans(uucpd_t,uucpd_var_run_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(uucpd_t)
Chris PeBenito 17de1b
kernel_read_system_state(uucpd_t)
Chris PeBenito 17de1b
kernel_read_network_state(uucpd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
corenet_non_ipsec_sendrecv(uucpd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_if(uucpd_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_if(uucpd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_nodes(uucpd_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_nodes(uucpd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_ports(uucpd_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_ports(uucpd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_urand(uucpd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_xattr_fs(uucpd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
corecmd_exec_sbin(uucpd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(uucpd_t)
Chris PeBenito 17de1b
files_search_home(uucpd_t)
Chris PeBenito 17de1b
files_search_spool(uucpd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(uucpd_t)
Chris PeBenito 17de1b
libs_use_shared_libs(uucpd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(uucpd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(uucpd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
sysnet_read_config(uucpd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	kerberos_use(uucpd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	nis_use_ypbind(uucpd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	nscd_socket_use(uucpd_t)
Chris PeBenito 17de1b
')