|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
5ea24b |
policy_module(rshd,1.1.0)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
########################################
|
|
Chris PeBenito |
545b0c |
#
|
|
Chris PeBenito |
545b0c |
# Declarations
|
|
Chris PeBenito |
545b0c |
#
|
|
Chris PeBenito |
545b0c |
type rshd_t;
|
|
Chris PeBenito |
545b0c |
type rshd_exec_t;
|
|
Chris PeBenito |
545b0c |
inetd_tcp_service_domain(rshd_t,rshd_exec_t)
|
|
Chris PeBenito |
1815ba |
domain_subj_id_change_exemption(rshd_t)
|
|
Chris PeBenito |
1815ba |
domain_role_change_exemption(rshd_t)
|
|
Chris PeBenito |
545b0c |
role system_r types rshd_t;
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
########################################
|
|
Chris PeBenito |
545b0c |
#
|
|
Chris PeBenito |
545b0c |
# Local policy
|
|
Chris PeBenito |
545b0c |
#
|
|
Chris PeBenito |
545b0c |
allow rshd_t self:capability { setuid setgid fowner fsetid chown dac_override};
|
|
Chris PeBenito |
545b0c |
allow rshd_t self:process { signal_perms fork setsched setpgid setexec };
|
|
Chris PeBenito |
545b0c |
allow rshd_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
545b0c |
allow rshd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
445522 |
kernel_read_kernel_sysctls(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
09741b |
corenet_tcp_sendrecv_generic_if(rshd_t)
|
|
Chris PeBenito |
09741b |
corenet_udp_sendrecv_generic_if(rshd_t)
|
|
Chris PeBenito |
09741b |
corenet_raw_sendrecv_generic_if(rshd_t)
|
|
Chris PeBenito |
545b0c |
corenet_tcp_sendrecv_all_nodes(rshd_t)
|
|
Chris PeBenito |
09741b |
corenet_udp_sendrecv_all_nodes(rshd_t)
|
|
Chris PeBenito |
09741b |
corenet_raw_sendrecv_all_nodes(rshd_t)
|
|
Chris PeBenito |
545b0c |
corenet_tcp_sendrecv_all_ports(rshd_t)
|
|
Chris PeBenito |
09741b |
corenet_udp_sendrecv_all_ports(rshd_t)
|
|
Chris PeBenito |
bd7037 |
corenet_non_ipsec_sendrecv(rshd_t)
|
|
Chris PeBenito |
545b0c |
corenet_tcp_bind_all_nodes(rshd_t)
|
|
Chris PeBenito |
0907bd |
corenet_tcp_bind_rsh_port(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
dev_read_urand(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
selinux_get_fs_mount(rshd_t)
|
|
Chris PeBenito |
545b0c |
selinux_validate_context(rshd_t)
|
|
Chris PeBenito |
545b0c |
selinux_compute_access_vector(rshd_t)
|
|
Chris PeBenito |
545b0c |
selinux_compute_create_context(rshd_t)
|
|
Chris PeBenito |
545b0c |
selinux_compute_relabel_context(rshd_t)
|
|
Chris PeBenito |
545b0c |
selinux_compute_user_contexts(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
auth_domtrans_chk_passwd(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
1815ba |
corecmd_read_bin_symlinks(rshd_t)
|
|
Chris PeBenito |
1815ba |
corecmd_read_sbin_symlinks(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
files_list_home(rshd_t)
|
|
Chris PeBenito |
545b0c |
files_read_etc_files(rshd_t)
|
|
Chris PeBenito |
545b0c |
files_search_tmp(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
libs_use_ld_so(rshd_t)
|
|
Chris PeBenito |
545b0c |
libs_use_shared_libs(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
09741b |
logging_send_syslog_msg(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
miscfiles_read_localization(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
seutil_read_config(rshd_t)
|
|
Chris PeBenito |
545b0c |
seutil_read_default_contexts(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
sysnet_read_config(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
userdom_search_all_users_home(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
955019 |
unconfined_domain(rshd_t)
|
|
Chris PeBenito |
545b0c |
unconfined_shell_domtrans(rshd_t)
|
|
Chris PeBenito |
545b0c |
')
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
tunable_policy(`use_nfs_home_dirs',`
|
|
Chris PeBenito |
545b0c |
fs_read_nfs_files(rshd_t)
|
|
Chris PeBenito |
545b0c |
fs_read_nfs_symlinks(rshd_t)
|
|
Chris PeBenito |
545b0c |
')
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
tunable_policy(`use_samba_home_dirs',`
|
|
Chris PeBenito |
725926 |
fs_read_cifs_files(rshd_t)
|
|
Chris PeBenito |
725926 |
fs_read_cifs_symlinks(rshd_t)
|
|
Chris PeBenito |
545b0c |
')
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
132880 |
optional_policy(`kerberos',`
|
|
Chris PeBenito |
545b0c |
kerberos_use(rshd_t)
|
|
Chris PeBenito |
545b0c |
')
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
132880 |
optional_policy(`nscd',`
|
|
Chris PeBenito |
1815ba |
nscd_socket_use(rshd_t)
|
|
Chris PeBenito |
e11d2e |
')
|
|
Chris PeBenito |
e11d2e |
|
|
Chris PeBenito |
545b0c |
ifdef(`TODO',`
|
|
Chris PeBenito |
132880 |
optional_policy(`rlogind',`
|
|
Chris PeBenito |
545b0c |
allow rshd_t rlogind_tmp_t:file rw_file_perms;
|
|
Chris PeBenito |
545b0c |
')
|
|
Chris PeBenito |
545b0c |
')
|