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