|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
policy_module(rshd,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 |
545b0c |
domain_subj_id_change_exempt(rshd_t)
|
|
Chris PeBenito |
545b0c |
domain_role_change_exempt(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 |
545b0c |
kernel_read_kernel_sysctl(rshd_t)
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
corenet_raw_sendrecv_all_if(rshd_t)
|
|
Chris PeBenito |
545b0c |
corenet_tcp_sendrecv_all_if(rshd_t)
|
|
Chris PeBenito |
545b0c |
corenet_raw_sendrecv_all_nodes(rshd_t)
|
|
Chris PeBenito |
545b0c |
corenet_tcp_sendrecv_all_nodes(rshd_t)
|
|
Chris PeBenito |
545b0c |
corenet_tcp_sendrecv_all_ports(rshd_t)
|
|
Chris PeBenito |
545b0c |
corenet_tcp_bind_all_nodes(rshd_t)
|
|
Chris PeBenito |
545b0c |
corenet_tcp_bind_reserved_port(rshd_t)
|
|
Chris PeBenito |
545b0c |
corenet_dontaudit_tcp_bind_all_reserved_ports(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 |
545b0c |
corecmd_read_bin_symlink(rshd_t)
|
|
Chris PeBenito |
545b0c |
corecmd_read_sbin_symlink(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 |
545b0c |
logging_send_syslog_msg(inetd_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 |
545b0c |
unconfined_domain_template(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 |
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 |
optional_policy(`kerberos.te',`
|
|
Chris PeBenito |
545b0c |
kerberos_use(rshd_t)
|
|
Chris PeBenito |
545b0c |
')
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
optional_policy(`nis.te',`
|
|
Chris PeBenito |
545b0c |
nis_use_ypbind(rshd_t)
|
|
Chris PeBenito |
545b0c |
')
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
ifdef(`TODO',`
|
|
Chris PeBenito |
545b0c |
optional_policy(`rlogind.te', `
|
|
Chris PeBenito |
545b0c |
allow rshd_t rlogind_tmp_t:file rw_file_perms;
|
|
Chris PeBenito |
545b0c |
')
|
|
Chris PeBenito |
545b0c |
|
|
Chris PeBenito |
545b0c |
allow rshd_t selinux_config_t:lnk_file { getattr read };
|
|
Chris PeBenito |
545b0c |
allow rshd_t default_context_t:lnk_file { getattr read };
|
|
Chris PeBenito |
545b0c |
')
|