|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
7a5e2d |
policy_module(uucp,1.6.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 |
d6d16b |
type uux_t;
|
|
Chris PeBenito |
d6d16b |
type uux_exec_t;
|
|
Chris PeBenito |
d46cfe |
application_domain(uux_t,uux_exec_t)
|
|
Chris PeBenito |
d6d16b |
role system_r types uux_t;
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
d6d16b |
# UUCPd 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 |
c0868a |
allow uucpd_t self:fifo_file rw_fifo_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 |
c0868a |
allow uucpd_t uucpd_log_t:dir setattr;
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(uucpd_t,uucpd_log_t,uucpd_log_t)
|
|
Chris PeBenito |
17de1b |
logging_log_filetrans(uucpd_t,uucpd_log_t,{ file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow uucpd_t uucpd_ro_t:dir list_dir_perms;
|
|
Chris PeBenito |
c0868a |
read_files_pattern(uucpd_t,uucpd_ro_t,uucpd_ro_t)
|
|
Chris PeBenito |
c0868a |
read_lnk_files_pattern(uucpd_t,uucpd_ro_t,uucpd_ro_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(uucpd_t,uucpd_rw_t,uucpd_rw_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(uucpd_t,uucpd_rw_t,uucpd_rw_t)
|
|
Chris PeBenito |
c0868a |
manage_lnk_files_pattern(uucpd_t,uucpd_rw_t,uucpd_rw_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d6d16b |
uucp_manage_spool(uucpd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(uucpd_t,uucpd_tmp_t,uucpd_tmp_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(uucpd_t,uucpd_tmp_t,uucpd_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(uucpd_t, uucpd_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(uucpd_t,uucpd_var_run_t,uucpd_var_run_t)
|
|
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 |
190066 |
corenet_all_recvfrom_unlabeled(uucpd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(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 |
8021cb |
corecmd_exec_bin(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 |
c0cf6e |
auth_use_nsswitch(uucpd_t)
|
|
Chris PeBenito |
c0cf6e |
|
|
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 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
kerberos_use(uucpd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d6d16b |
########################################
|
|
Chris PeBenito |
d6d16b |
#
|
|
Chris PeBenito |
d6d16b |
# UUX Local policy
|
|
Chris PeBenito |
d6d16b |
#
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
allow uux_t self:capability { setuid setgid };
|
|
Chris PeBenito |
d6d16b |
allow uux_t self:fifo_file { getattr write };
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
uucp_append_log(uux_t)
|
|
Chris PeBenito |
d6d16b |
uucp_manage_spool(uux_t)
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
8021cb |
corecmd_exec_bin(uux_t)
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
files_read_etc_files(uux_t)
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
libs_use_ld_so(uux_t)
|
|
Chris PeBenito |
d6d16b |
libs_use_shared_libs(uux_t)
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
logging_send_syslog_msg(uux_t)
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
miscfiles_read_localization(uux_t)
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
optional_policy(`
|
|
Chris PeBenito |
d6d16b |
mta_send_mail(uux_t)
|
|
Chris PeBenito |
d6d16b |
')
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
optional_policy(`
|
|
Chris PeBenito |
d6d16b |
nscd_socket_use(uux_t)
|
|
Chris PeBenito |
d6d16b |
')
|