selinux-policy/policy/modules/services/rlogin.if

48 lines
1.0 KiB
Plaintext
Raw Normal View History

2005-09-20 17:11:53 +00:00
## <summary>Remote login daemon</summary>
########################################
## <summary>
## Execute rlogind in the rlogin domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
2005-09-20 17:11:53 +00:00
## </param>
#
interface(`rlogin_domtrans',`
gen_require(`
type rlogind_t, rlogind_exec_t;
')
2007-03-23 23:24:59 +00:00
corecmd_search_bin($1)
domtrans_pattern($1, rlogind_exec_t, rlogind_t)
2005-09-20 17:11:53 +00:00
')
2009-06-12 19:44:10 +00:00
########################################
## <summary>
## read rlogin homedir content (.config)
## </summary>
## <param name="userdomain_prefix">
## <summary>
## The prefix of the user domain (e.g., user
## is the prefix for user_t).
## </summary>
## </param>
## <param name="user_domain">
## <summary>
## The type of the user domain.
## </summary>
## </param>
#
template(`rlogin_read_home_content',`
gen_require(`
type rlogind_home_t;
')
userdom_search_user_home_dirs($1)
list_dirs_pattern($1, rlogind_home_t, rlogind_home_t)
read_files_pattern($1, rlogind_home_t, rlogind_home_t)
read_lnk_files_pattern($1, rlogind_home_t, rlogind_home_t)
')