2010-05-24 19:32:01 +00:00
|
|
|
policy_module(uucp, 1.11.0)
|
2005-09-22 16:27:52 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
type uucpd_t;
|
|
|
|
type uucpd_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
inetd_tcp_service_domain(uucpd_t, uucpd_exec_t)
|
2005-09-22 16:27:52 +00:00
|
|
|
role system_r types uucpd_t;
|
|
|
|
|
2009-03-23 14:56:43 +00:00
|
|
|
type uucpd_lock_t;
|
|
|
|
files_lock_file(uucpd_lock_t)
|
|
|
|
|
2005-09-22 16:27:52 +00:00
|
|
|
type uucpd_tmp_t;
|
|
|
|
files_tmp_file(uucpd_tmp_t)
|
|
|
|
|
|
|
|
type uucpd_var_run_t;
|
|
|
|
files_pid_file(uucpd_var_run_t)
|
|
|
|
|
|
|
|
type uucpd_rw_t;
|
|
|
|
files_type(uucpd_rw_t)
|
|
|
|
|
|
|
|
type uucpd_ro_t;
|
|
|
|
files_type(uucpd_ro_t)
|
|
|
|
|
|
|
|
type uucpd_spool_t;
|
|
|
|
files_type(uucpd_spool_t)
|
|
|
|
|
|
|
|
type uucpd_log_t;
|
|
|
|
logging_log_file(uucpd_log_t)
|
|
|
|
|
2006-12-04 20:10:56 +00:00
|
|
|
type uux_t;
|
|
|
|
type uux_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
application_domain(uux_t, uux_exec_t)
|
2006-12-04 20:10:56 +00:00
|
|
|
role system_r types uux_t;
|
|
|
|
|
2005-09-22 16:27:52 +00:00
|
|
|
########################################
|
|
|
|
#
|
2006-12-04 20:10:56 +00:00
|
|
|
# UUCPd Local policy
|
2005-09-22 16:27:52 +00:00
|
|
|
#
|
|
|
|
allow uucpd_t self:capability { setuid setgid };
|
|
|
|
allow uucpd_t self:process signal_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow uucpd_t self:fifo_file rw_fifo_file_perms;
|
2005-09-22 16:27:52 +00:00
|
|
|
allow uucpd_t self:tcp_socket connected_stream_socket_perms;
|
|
|
|
allow uucpd_t self:udp_socket create_socket_perms;
|
|
|
|
allow uucpd_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow uucpd_t uucpd_log_t:dir setattr;
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(uucpd_t, uucpd_log_t, uucpd_log_t)
|
|
|
|
logging_log_filetrans(uucpd_t, uucpd_log_t, { file dir })
|
2005-09-22 16:27:52 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow uucpd_t uucpd_ro_t:dir list_dir_perms;
|
2008-07-23 21:38:39 +00:00
|
|
|
read_files_pattern(uucpd_t, uucpd_ro_t, uucpd_ro_t)
|
|
|
|
read_lnk_files_pattern(uucpd_t, uucpd_ro_t, uucpd_ro_t)
|
2005-09-22 16:27:52 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(uucpd_t, uucpd_rw_t, uucpd_rw_t)
|
|
|
|
manage_files_pattern(uucpd_t, uucpd_rw_t, uucpd_rw_t)
|
|
|
|
manage_lnk_files_pattern(uucpd_t, uucpd_rw_t, uucpd_rw_t)
|
2005-09-22 16:27:52 +00:00
|
|
|
|
2006-12-04 20:10:56 +00:00
|
|
|
uucp_manage_spool(uucpd_t)
|
2005-09-22 16:27:52 +00:00
|
|
|
|
2009-03-23 14:56:43 +00:00
|
|
|
manage_dirs_pattern(uucpd_t, uucpd_lock_t, uucpd_lock_t)
|
|
|
|
manage_files_pattern(uucpd_t, uucpd_lock_t, uucpd_lock_t)
|
|
|
|
files_search_locks(uucpd_t)
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(uucpd_t, uucpd_tmp_t, uucpd_tmp_t)
|
|
|
|
manage_files_pattern(uucpd_t, uucpd_tmp_t, uucpd_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(uucpd_t, uucpd_tmp_t, { file dir })
|
2005-09-22 16:27:52 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(uucpd_t, uucpd_var_run_t, uucpd_var_run_t)
|
|
|
|
files_pid_filetrans(uucpd_t, uucpd_var_run_t, file)
|
2005-09-22 16:27:52 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(uucpd_t)
|
2005-09-22 16:27:52 +00:00
|
|
|
kernel_read_system_state(uucpd_t)
|
|
|
|
kernel_read_network_state(uucpd_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(uucpd_t)
|
|
|
|
corenet_all_recvfrom_netlabel(uucpd_t)
|
2009-01-06 20:24:10 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(uucpd_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(uucpd_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_sendrecv_generic_node(uucpd_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(uucpd_t)
|
2005-09-22 16:27:52 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(uucpd_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(uucpd_t)
|
2010-08-26 13:41:21 +00:00
|
|
|
corenet_tcp_connect_ssh_port(uucpd_t)
|
2005-09-22 16:27:52 +00:00
|
|
|
|
|
|
|
dev_read_urand(uucpd_t)
|
|
|
|
|
|
|
|
fs_getattr_xattr_fs(uucpd_t)
|
|
|
|
|
2007-03-23 23:24:59 +00:00
|
|
|
corecmd_exec_bin(uucpd_t)
|
2010-03-19 19:49:12 +00:00
|
|
|
corecmd_exec_shell(uucpd_t)
|
2005-09-22 16:27:52 +00:00
|
|
|
|
|
|
|
files_read_etc_files(uucpd_t)
|
|
|
|
files_search_home(uucpd_t)
|
|
|
|
files_search_spool(uucpd_t)
|
|
|
|
|
2010-01-08 15:37:47 +00:00
|
|
|
term_setattr_controlling_term(uucpd_t)
|
|
|
|
|
2007-12-04 15:05:55 +00:00
|
|
|
auth_use_nsswitch(uucpd_t)
|
|
|
|
|
2005-09-22 16:27:52 +00:00
|
|
|
logging_send_syslog_msg(uucpd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(uucpd_t)
|
|
|
|
|
2010-03-19 19:49:12 +00:00
|
|
|
mta_send_mail(uucpd_t)
|
|
|
|
|
2010-01-08 15:37:47 +00:00
|
|
|
optional_policy(`
|
|
|
|
cron_system_entry(uucpd_t, uucpd_exec_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-22 16:27:52 +00:00
|
|
|
kerberos_use(uucpd_t)
|
|
|
|
')
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
optional_policy(`
|
|
|
|
ssh_exec(uucpd_t)
|
|
|
|
')
|
|
|
|
|
2006-12-04 20:10:56 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# UUX Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow uux_t self:capability { setuid setgid };
|
2008-10-16 16:09:20 +00:00
|
|
|
allow uux_t self:fifo_file write_file_perms;
|
2006-12-04 20:10:56 +00:00
|
|
|
|
|
|
|
uucp_append_log(uux_t)
|
|
|
|
uucp_manage_spool(uux_t)
|
|
|
|
|
2007-03-23 23:24:59 +00:00
|
|
|
corecmd_exec_bin(uux_t)
|
2006-12-04 20:10:56 +00:00
|
|
|
|
|
|
|
files_read_etc_files(uux_t)
|
|
|
|
|
2008-10-08 15:50:03 +00:00
|
|
|
fs_rw_anon_inodefs_files(uux_t)
|
|
|
|
|
2006-12-04 20:10:56 +00:00
|
|
|
logging_send_syslog_msg(uux_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(uux_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
mta_send_mail(uux_t)
|
2008-12-04 15:01:12 +00:00
|
|
|
mta_read_queue(uux_t)
|
2010-01-08 15:37:47 +00:00
|
|
|
sendmail_dontaudit_rw_unix_stream_sockets(uux_t)
|
2006-12-04 20:10:56 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
nscd_socket_use(uux_t)
|
|
|
|
')
|