2005-08-17 15:23:24 +00:00
|
|
|
|
2005-12-09 16:38:39 +00:00
|
|
|
policy_module(rshd,1.1.0)
|
2005-08-17 15:23:24 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
type rshd_t;
|
|
|
|
type rshd_exec_t;
|
|
|
|
inetd_tcp_service_domain(rshd_t,rshd_exec_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
domain_subj_id_change_exemption(rshd_t)
|
|
|
|
domain_role_change_exemption(rshd_t)
|
2005-08-17 15:23:24 +00:00
|
|
|
role system_r types rshd_t;
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
allow rshd_t self:capability { setuid setgid fowner fsetid chown dac_override};
|
|
|
|
allow rshd_t self:process { signal_perms fork setsched setpgid setexec };
|
|
|
|
allow rshd_t self:fifo_file rw_file_perms;
|
|
|
|
allow rshd_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(rshd_t)
|
2005-08-17 15:23:24 +00:00
|
|
|
|
2005-11-25 19:38:45 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(rshd_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(rshd_t)
|
|
|
|
corenet_raw_sendrecv_generic_if(rshd_t)
|
2005-08-17 15:23:24 +00:00
|
|
|
corenet_tcp_sendrecv_all_nodes(rshd_t)
|
2005-11-25 19:38:45 +00:00
|
|
|
corenet_udp_sendrecv_all_nodes(rshd_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(rshd_t)
|
2005-08-17 15:23:24 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(rshd_t)
|
2005-11-25 19:38:45 +00:00
|
|
|
corenet_udp_sendrecv_all_ports(rshd_t)
|
2005-12-06 19:59:50 +00:00
|
|
|
corenet_non_ipsec_sendrecv(rshd_t)
|
2005-08-17 15:23:24 +00:00
|
|
|
corenet_tcp_bind_all_nodes(rshd_t)
|
2005-09-13 13:06:07 +00:00
|
|
|
corenet_tcp_bind_rsh_port(rshd_t)
|
2005-08-17 15:23:24 +00:00
|
|
|
|
|
|
|
dev_read_urand(rshd_t)
|
|
|
|
|
|
|
|
selinux_get_fs_mount(rshd_t)
|
|
|
|
selinux_validate_context(rshd_t)
|
|
|
|
selinux_compute_access_vector(rshd_t)
|
|
|
|
selinux_compute_create_context(rshd_t)
|
|
|
|
selinux_compute_relabel_context(rshd_t)
|
|
|
|
selinux_compute_user_contexts(rshd_t)
|
|
|
|
|
|
|
|
auth_domtrans_chk_passwd(rshd_t)
|
|
|
|
|
2006-02-02 21:08:12 +00:00
|
|
|
corecmd_read_bin_symlinks(rshd_t)
|
|
|
|
corecmd_read_sbin_symlinks(rshd_t)
|
2005-08-17 15:23:24 +00:00
|
|
|
|
|
|
|
files_list_home(rshd_t)
|
|
|
|
files_read_etc_files(rshd_t)
|
|
|
|
files_search_tmp(rshd_t)
|
|
|
|
|
|
|
|
libs_use_ld_so(rshd_t)
|
|
|
|
libs_use_shared_libs(rshd_t)
|
|
|
|
|
2005-11-25 19:38:45 +00:00
|
|
|
logging_send_syslog_msg(rshd_t)
|
2005-08-17 15:23:24 +00:00
|
|
|
|
|
|
|
miscfiles_read_localization(rshd_t)
|
|
|
|
|
|
|
|
seutil_read_config(rshd_t)
|
|
|
|
seutil_read_default_contexts(rshd_t)
|
|
|
|
|
|
|
|
sysnet_read_config(rshd_t)
|
|
|
|
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_search_all_users_home_content(rshd_t)
|
2005-08-17 15:23:24 +00:00
|
|
|
|
|
|
|
ifdef(`targeted_policy',`
|
2006-02-06 22:47:46 +00:00
|
|
|
unconfined_domain(rshd_t)
|
2005-08-17 15:23:24 +00:00
|
|
|
unconfined_shell_domtrans(rshd_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
tunable_policy(`use_nfs_home_dirs',`
|
|
|
|
fs_read_nfs_files(rshd_t)
|
|
|
|
fs_read_nfs_symlinks(rshd_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
tunable_policy(`use_samba_home_dirs',`
|
2005-11-08 22:00:30 +00:00
|
|
|
fs_read_cifs_files(rshd_t)
|
|
|
|
fs_read_cifs_symlinks(rshd_t)
|
2005-08-17 15:23:24 +00:00
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`kerberos',`
|
2005-08-17 15:23:24 +00:00
|
|
|
kerberos_use(rshd_t)
|
|
|
|
')
|
|
|
|
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`nscd',`
|
2006-02-02 21:08:12 +00:00
|
|
|
nscd_socket_use(rshd_t)
|
2005-10-25 18:28:41 +00:00
|
|
|
')
|
|
|
|
|
2005-08-17 15:23:24 +00:00
|
|
|
ifdef(`TODO',`
|
2005-11-23 20:24:27 +00:00
|
|
|
optional_policy(`rlogind',`
|
2005-08-17 15:23:24 +00:00
|
|
|
allow rshd_t rlogind_tmp_t:file rw_file_perms;
|
|
|
|
')
|
|
|
|
')
|