selinux-refpolicy/policy/modules/apps/rssh.if

67 lines
1.2 KiB
Plaintext
Raw Normal View History

2006-04-25 19:17:43 +00:00
## <summary>Restricted (scp/sftp) only shell</summary>
2008-11-05 16:10:46 +00:00
########################################
2006-04-25 19:17:43 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## Role access for rssh
2006-04-25 19:17:43 +00:00
## </summary>
2008-11-05 16:10:46 +00:00
## <param name="role">
## <summary>
## Role allowed access
## </summary>
## </param>
## <param name="domain">
2006-04-25 19:17:43 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## User domain for the role
2006-04-25 19:17:43 +00:00
## </summary>
## </param>
#
2008-11-05 16:10:46 +00:00
interface(`rssh_role',`
2008-05-22 15:24:52 +00:00
gen_require(`
2008-11-05 16:10:46 +00:00
type rssh_t;
2008-05-22 15:24:52 +00:00
')
2006-04-25 19:17:43 +00:00
2008-11-05 16:10:46 +00:00
role $1 types rssh_t;
2006-04-25 19:17:43 +00:00
2008-11-05 16:10:46 +00:00
# allow ps to show irc
ps_process_pattern($2, rssh_t)
allow $2 rssh_t:process signal;
2006-04-25 19:17:43 +00:00
')
########################################
## <summary>
## Transition to all user rssh domains.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
2006-04-25 19:17:43 +00:00
## </summary>
## </param>
#
2008-11-05 16:10:46 +00:00
interface(`rssh_spec_domtrans',`
2006-04-25 19:17:43 +00:00
gen_require(`
2008-11-05 16:10:46 +00:00
type rssh_t, rssh_exec_t;
2006-04-25 19:17:43 +00:00
')
2008-11-05 16:10:46 +00:00
spec_domtrans_pattern($1, rssh_exec_t, rssh_t)
2006-04-25 19:17:43 +00:00
')
########################################
## <summary>
## Read all users rssh read-only content.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
2008-11-05 16:10:46 +00:00
interface(`rssh_read_ro_content',`
2006-04-25 19:17:43 +00:00
gen_require(`
2008-11-05 16:10:46 +00:00
type rssh_ro_t;
2006-04-25 19:17:43 +00:00
')
2008-11-05 16:10:46 +00:00
allow $1 rssh_ro_t:dir list_dir_perms;
read_files_pattern($1, rssh_ro_t, rssh_ro_t)
read_lnk_files_pattern($1, rssh_ro_t, rssh_ro_t)
2006-04-25 19:17:43 +00:00
')