|
Chris PeBenito |
9570b2 |
policy_module(rlogin, 1.9.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type rlogind_t;
|
|
Chris PeBenito |
17de1b |
type rlogind_exec_t;
|
|
Chris PeBenito |
8242f5 |
inetd_service_domain(rlogind_t, rlogind_exec_t)
|
|
Chris PeBenito |
17de1b |
role system_r types rlogind_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type rlogind_devpts_t; #, userpty_type;
|
|
Chris PeBenito |
17de1b |
term_login_pty(rlogind_devpts_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
455155 |
type rlogind_home_t;
|
|
Chris PeBenito |
455155 |
userdom_user_home_content(rlogind_home_t)
|
|
Chris PeBenito |
455155 |
|
|
Chris PeBenito |
17de1b |
type rlogind_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(rlogind_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type rlogind_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(rlogind_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow rlogind_t self:capability { fsetid chown fowner sys_tty_config dac_override };
|
|
Chris PeBenito |
17de1b |
allow rlogind_t self:process signal_perms;
|
|
Chris PeBenito |
c0868a |
allow rlogind_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
allow rlogind_t self:tcp_socket connected_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
# for identd; cjp: this should probably only be inetd_child rules?
|
|
Chris PeBenito |
17de1b |
allow rlogind_t self:netlink_tcpdiag_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow rlogind_t self:capability { setuid setgid };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow rlogind_t rlogind_devpts_t:chr_file { rw_chr_file_perms setattr };
|
|
Chris PeBenito |
0bfccd |
term_create_pty(rlogind_t, rlogind_devpts_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# for /usr/lib/telnetlogin
|
|
Chris PeBenito |
17de1b |
can_exec(rlogind_t, rlogind_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8242f5 |
manage_dirs_pattern(rlogind_t, rlogind_tmp_t, rlogind_tmp_t)
|
|
Chris PeBenito |
8242f5 |
manage_files_pattern(rlogind_t, rlogind_tmp_t, rlogind_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8242f5 |
manage_files_pattern(rlogind_t, rlogind_var_run_t, rlogind_var_run_t)
|
|
Chris PeBenito |
8242f5 |
files_pid_filetrans(rlogind_t, rlogind_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(rlogind_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(rlogind_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_network_state(rlogind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(rlogind_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(rlogind_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(rlogind_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(rlogind_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(rlogind_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(rlogind_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(rlogind_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(rlogind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_urand(rlogind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8152a7 |
domain_interactive_fd(rlogind_t)
|
|
Chris PeBenito |
8152a7 |
|
|
Chris PeBenito |
17de1b |
fs_getattr_xattr_fs(rlogind_t)
|
|
Chris PeBenito |
6b19be |
fs_search_auto_mountpoints(rlogind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
auth_domtrans_chk_passwd(rlogind_t)
|
|
Chris PeBenito |
17de1b |
auth_rw_login_records(rlogind_t)
|
|
Chris PeBenito |
6b19be |
auth_use_nsswitch(rlogind_t)
|
|
Dan Walsh |
a66812 |
auth_login_pgm_domain(rlogind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(rlogind_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(rlogind_t)
|
|
Chris PeBenito |
17de1b |
files_search_home(rlogind_t)
|
|
Chris PeBenito |
17de1b |
files_search_default(rlogind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_rw_utmp(rlogind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(rlogind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(rlogind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8152a7 |
seutil_read_config(rlogind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
userdom_setattr_user_ptys(rlogind_t)
|
|
Chris PeBenito |
17de1b |
# cjp: this is egregious
|
|
Chris PeBenito |
296273 |
userdom_read_user_home_content_files(rlogind_t)
|
|
Dan Walsh |
3eaa99 |
userdom_search_admin_dir(rlogind_t)
|
|
Dan Walsh |
3eaa99 |
userdom_manage_user_tmp_files(rlogind_t)
|
|
Dan Walsh |
3eaa99 |
userdom_tmp_filetrans_user_tmp(rlogind_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
remotelogin_domtrans(rlogind_t)
|
|
Chris PeBenito |
8152a7 |
remotelogin_signal(rlogind_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
455155 |
rlogin_read_home_content(rlogind_t)
|
|
Chris PeBenito |
455155 |
|
|
Chris PeBenito |
8f800d |
tunable_policy(`use_nfs_home_dirs',`
|
|
Chris PeBenito |
8f800d |
fs_list_nfs(rlogind_t)
|
|
Chris PeBenito |
8f800d |
fs_read_nfs_files(rlogind_t)
|
|
Chris PeBenito |
8f800d |
fs_read_nfs_symlinks(rlogind_t)
|
|
Chris PeBenito |
8f800d |
')
|
|
Chris PeBenito |
8f800d |
|
|
Chris PeBenito |
8f800d |
tunable_policy(`use_samba_home_dirs',`
|
|
Chris PeBenito |
8f800d |
fs_list_cifs(rlogind_t)
|
|
Chris PeBenito |
8f800d |
fs_read_cifs_files(rlogind_t)
|
|
Chris PeBenito |
8f800d |
fs_read_cifs_symlinks(rlogind_t)
|
|
Chris PeBenito |
8f800d |
')
|
|
Chris PeBenito |
8f800d |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
8f800d |
kerberos_keytab_template(rlogind, rlogind_t)
|
|
Chris PeBenito |
8f800d |
kerberos_manage_host_rcache(rlogind_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8242f5 |
optional_policy(`
|
|
Chris PeBenito |
8242f5 |
tcpd_wrapped_domain(rlogind_t, rlogind_exec_t)
|
|
Chris PeBenito |
8242f5 |
')
|