|
Chris PeBenito |
296273 |
policy_module(rssh, 2.0.0)
|
|
Chris PeBenito |
5540e7 |
|
|
Chris PeBenito |
5540e7 |
########################################
|
|
Chris PeBenito |
5540e7 |
#
|
|
Chris PeBenito |
5540e7 |
# Declarations
|
|
Chris PeBenito |
5540e7 |
#
|
|
Chris PeBenito |
5540e7 |
|
|
Chris PeBenito |
296273 |
type rssh_t;
|
|
Chris PeBenito |
5540e7 |
type rssh_exec_t;
|
|
Chris PeBenito |
296273 |
typealias rssh_t alias { user_rssh_t staff_rssh_t sysadm_rssh_t };
|
|
Chris PeBenito |
296273 |
typealias rssh_t alias { auditadm_rssh_t secadm_rssh_t };
|
|
Chris PeBenito |
296273 |
application_domain(rssh_t, rssh_exec_t)
|
|
Chris PeBenito |
296273 |
domain_user_exemption_target(rssh_t)
|
|
Chris PeBenito |
296273 |
domain_interactive_fd(rssh_t)
|
|
Chris PeBenito |
296273 |
ubac_constrained(rssh_t)
|
|
Chris PeBenito |
296273 |
role system_r types rssh_t;
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
type rssh_devpts_t;
|
|
Chris PeBenito |
296273 |
typealias rssh_devpts_t alias { user_rssh_devpts_t staff_rssh_devpts_t sysadm_rssh_devpts_t };
|
|
Chris PeBenito |
296273 |
typealias rssh_devpts_t alias { auditadm_rssh_devpts_t secadm_rssh_devpts_t };
|
|
Chris PeBenito |
296273 |
term_user_pty(rssh_t, rssh_devpts_t)
|
|
Chris PeBenito |
296273 |
ubac_constrained(rssh_devpts_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
type rssh_ro_t;
|
|
Chris PeBenito |
296273 |
typealias rssh_ro_t alias { user_rssh_ro_t staff_rssh_ro_t sysadm_rssh_ro_t };
|
|
Chris PeBenito |
296273 |
typealias rssh_ro_t alias { auditadm_rssh_ro_t secadm_rssh_ro_t };
|
|
Chris PeBenito |
296273 |
userdom_user_home_content(rssh_ro_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
type rssh_rw_t;
|
|
Chris PeBenito |
296273 |
typealias rssh_rw_t alias { user_rssh_rw_t staff_rssh_rw_t sysadm_rssh_rw_t };
|
|
Chris PeBenito |
296273 |
typealias rssh_rw_t alias { auditadm_rssh_rw_t secadm_rssh_rw_t };
|
|
Chris PeBenito |
296273 |
userdom_user_home_content(rssh_rw_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
##############################
|
|
Chris PeBenito |
296273 |
#
|
|
Chris PeBenito |
296273 |
# Local policy
|
|
Chris PeBenito |
296273 |
#
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
allow rssh_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
|
|
Chris PeBenito |
296273 |
allow rssh_t self:fd use;
|
|
Chris PeBenito |
296273 |
allow rssh_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
296273 |
allow rssh_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
296273 |
allow rssh_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
296273 |
allow rssh_t self:unix_dgram_socket sendto;
|
|
Chris PeBenito |
296273 |
allow rssh_t self:unix_stream_socket connectto;
|
|
Chris PeBenito |
296273 |
allow rssh_t self:shm create_shm_perms;
|
|
Chris PeBenito |
296273 |
allow rssh_t self:sem create_sem_perms;
|
|
Chris PeBenito |
296273 |
allow rssh_t self:msgq create_msgq_perms;
|
|
Chris PeBenito |
296273 |
allow rssh_t self:msg { send receive };
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
allow rssh_t rssh_devpts_t:chr_file { rw_file_perms setattr };
|
|
Chris PeBenito |
296273 |
term_create_pty(rssh_t, rssh_devpts_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
allow rssh_t rssh_ro_t:dir list_dir_perms;
|
|
Chris PeBenito |
296273 |
read_files_pattern(rssh_t, rssh_ro_t, rssh_ro_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
manage_dirs_pattern(rssh_t, rssh_rw_t, rssh_rw_t)
|
|
Chris PeBenito |
296273 |
manage_files_pattern(rssh_t, rssh_rw_t, rssh_rw_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
kernel_read_system_state(rssh_t)
|
|
Chris PeBenito |
296273 |
kernel_read_kernel_sysctls(rssh_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
files_read_etc_files(rssh_t)
|
|
Chris PeBenito |
296273 |
files_read_etc_runtime_files(rssh_t)
|
|
Chris PeBenito |
296273 |
files_list_home(rssh_t)
|
|
Chris PeBenito |
296273 |
files_read_usr_files(rssh_t)
|
|
Chris PeBenito |
296273 |
files_list_var(rssh_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
fs_search_auto_mountpoints(rssh_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
logging_send_syslog_msg(rssh_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
miscfiles_read_localization(rssh_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
ssh_rw_tcp_sockets(rssh_t)
|
|
Chris PeBenito |
296273 |
ssh_rw_stream_sockets(rssh_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
optional_policy(`
|
|
Chris PeBenito |
296273 |
nis_use_ypbind(rssh_t)
|
|
Chris PeBenito |
296273 |
')
|