|
Chris PeBenito |
e9c6cd |
## <summary>Administrator's unprivileged user role</summary>
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
########################################
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Change to the staff role.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## <param name="prefix">
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## The prefix of the user role (e.g., user
|
|
Chris PeBenito |
e9c6cd |
## is the prefix for user_r).
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## </param>
|
|
Chris PeBenito |
e9c6cd |
## <rolecap/>
|
|
Chris PeBenito |
e9c6cd |
#
|
|
Chris PeBenito |
e9c6cd |
template(`staff_role_change_template',`
|
|
Chris PeBenito |
e9c6cd |
userdom_role_change_template($1, staff)
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
########################################
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Change from the staff role.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## <desc>
|
|
Chris PeBenito |
e9c6cd |
##
|
|
Chris PeBenito |
e9c6cd |
## Change from the staff role to
|
|
Chris PeBenito |
e9c6cd |
## the specified role.
|
|
Chris PeBenito |
e9c6cd |
##
|
|
Chris PeBenito |
e9c6cd |
##
|
|
Chris PeBenito |
e9c6cd |
## This is a template to support third party modules
|
|
Chris PeBenito |
e9c6cd |
## and its use is not allowed in upstream reference
|
|
Chris PeBenito |
e9c6cd |
## policy.
|
|
Chris PeBenito |
e9c6cd |
##
|
|
Chris PeBenito |
e9c6cd |
## </desc>
|
|
Chris PeBenito |
e9c6cd |
## <param name="prefix">
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## The prefix of the user role (e.g., user
|
|
Chris PeBenito |
e9c6cd |
## is the prefix for user_r).
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## </param>
|
|
Chris PeBenito |
e9c6cd |
## <rolecap/>
|
|
Chris PeBenito |
e9c6cd |
#
|
|
Chris PeBenito |
e9c6cd |
template(`staff_role_change_to_template',`
|
|
Chris PeBenito |
e9c6cd |
userdom_role_change_template(staff, $1)
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
########################################
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Search the staff users home directory.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## <param name="domain">
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Domain allowed access.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## </param>
|
|
Chris PeBenito |
e9c6cd |
#
|
|
Chris PeBenito |
e9c6cd |
interface(`staff_search_home_dirs',`
|
|
Chris PeBenito |
e9c6cd |
gen_require(`
|
|
Chris PeBenito |
e9c6cd |
type staff_home_dir_t;
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
files_search_home($1)
|
|
Chris PeBenito |
e9c6cd |
allow $1 staff_home_dir_t:dir search_dir_perms;
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
########################################
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Do not audit attempts to search the staff
|
|
Chris PeBenito |
e9c6cd |
## users home directory.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## <param name="domain">
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Domain to not audit.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## </param>
|
|
Chris PeBenito |
e9c6cd |
#
|
|
Chris PeBenito |
e9c6cd |
interface(`staff_dontaudit_search_home_dirs',`
|
|
Chris PeBenito |
e9c6cd |
gen_require(`
|
|
Chris PeBenito |
e9c6cd |
type staff_home_dir_t;
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
dontaudit $1 staff_home_dir_t:dir search_dir_perms;
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
########################################
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Create, read, write, and delete staff
|
|
Chris PeBenito |
e9c6cd |
## home directories.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## <param name="domain">
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Domain allowed access.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## </param>
|
|
Chris PeBenito |
e9c6cd |
#
|
|
Chris PeBenito |
e9c6cd |
interface(`staff_manage_home_dirs',`
|
|
Chris PeBenito |
e9c6cd |
gen_require(`
|
|
Chris PeBenito |
e9c6cd |
type staff_home_dir_t;
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
files_search_home($1)
|
|
Chris PeBenito |
e9c6cd |
allow $1 staff_home_dir_t:dir manage_dir_perms;
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
########################################
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Relabel to staff home directories.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## <param name="domain">
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Domain allowed access.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## </param>
|
|
Chris PeBenito |
e9c6cd |
#
|
|
Chris PeBenito |
e9c6cd |
interface(`staff_relabelto_home_dirs',`
|
|
Chris PeBenito |
e9c6cd |
gen_require(`
|
|
Chris PeBenito |
e9c6cd |
type staff_home_dir_t;
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
files_search_home($1)
|
|
Chris PeBenito |
e9c6cd |
allow $1 staff_home_dir_t:dir relabelto;
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
########################################
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Do not audit attempts to append to the staff
|
|
Chris PeBenito |
e9c6cd |
## users home directory.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## <param name="domain">
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Domain to not audit.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## </param>
|
|
Chris PeBenito |
e9c6cd |
#
|
|
Chris PeBenito |
e9c6cd |
interface(`staff_dontaudit_append_home_content_files',`
|
|
Chris PeBenito |
e9c6cd |
gen_require(`
|
|
Chris PeBenito |
e9c6cd |
type staff_home_t;
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
dontaudit $1 staff_home_t:file append;
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
########################################
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Read files in the staff users home directory.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## <param name="domain">
|
|
Chris PeBenito |
e9c6cd |
## <summary>
|
|
Chris PeBenito |
e9c6cd |
## Domain allowed access.
|
|
Chris PeBenito |
e9c6cd |
## </summary>
|
|
Chris PeBenito |
e9c6cd |
## </param>
|
|
Chris PeBenito |
e9c6cd |
#
|
|
Chris PeBenito |
e9c6cd |
interface(`staff_read_home_content_files',`
|
|
Chris PeBenito |
e9c6cd |
gen_require(`
|
|
Chris PeBenito |
e9c6cd |
type staff_home_dir_t, staff_home_t;
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
e9c6cd |
files_search_home($1)
|
|
Chris PeBenito |
e9c6cd |
allow $1 { staff_home_dir_t staff_home_t }:dir list_dir_perms;
|
|
Chris PeBenito |
e9c6cd |
read_files_pattern($1, { staff_home_dir_t staff_home_t }, staff_home_t)
|
|
Chris PeBenito |
e9c6cd |
read_lnk_files_pattern($1, { staff_home_dir_t staff_home_t }, staff_home_t)
|
|
Chris PeBenito |
e9c6cd |
')
|
|
Chris PeBenito |
e9c6cd |
|