## File system quota management
########################################
##
## Execute quota management tools in the quota domain.
##
##
##
## Domain allowed to transition.
##
##
#
interface(`quota_domtrans',`
gen_require(`
type quota_t, quota_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, quota_exec_t, quota_t)
')
########################################
##
## Execute quota management tools in the quota domain, and
## allow the specified role the quota domain.
##
##
##
## Domain allowed to transition.
##
##
##
##
## Role allowed access.
##
##
##
#
interface(`quota_run',`
gen_require(`
type quota_t;
')
quota_domtrans($1)
role $2 types quota_t;
')
########################################
##
## Do not audit attempts to get the attributes
## of filesystem quota data files.
##
##
##
## Domain to not audit.
##
##
#
interface(`quota_dontaudit_getattr_db',`
gen_require(`
type quota_db_t;
')
dontaudit $1 quota_db_t:file getattr_file_perms;
')
########################################
##
## Create, read, write, and delete quota
## flag files.
##
##
##
## Domain allowed access.
##
##
#
interface(`quota_manage_flags',`
gen_require(`
type quota_flag_t;
')
files_search_var_lib($1)
manage_files_pattern($1, quota_flag_t, quota_flag_t)
')