2005-08-11 14:49:58 +00:00
|
|
|
## <summary>File system quota management</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute quota management tools in the quota domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2010-08-02 13:22:09 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-11 14:49:58 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`quota_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type quota_t, quota_exec_t;
|
|
|
|
')
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
domtrans_pattern($1, quota_exec_t, quota_t)
|
2005-08-11 14:49:58 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute quota management tools in the quota domain, and
|
|
|
|
## allow the specified role the quota domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2010-08-02 13:22:09 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-11 14:49:58 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="role">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2010-08-03 13:20:22 +00:00
|
|
|
## Role allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-11 14:49:58 +00:00
|
|
|
## </param>
|
2006-09-06 22:07:25 +00:00
|
|
|
## <rolecap/>
|
2005-08-11 14:49:58 +00:00
|
|
|
#
|
|
|
|
interface(`quota_run',`
|
|
|
|
gen_require(`
|
|
|
|
type quota_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
quota_domtrans($1)
|
|
|
|
role $2 types quota_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attempts to get the attributes
|
|
|
|
## of filesystem quota data files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2005-08-11 14:49:58 +00:00
|
|
|
## Domain to not audit.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-08-11 14:49:58 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`quota_dontaudit_getattr_db',`
|
|
|
|
gen_require(`
|
|
|
|
type quota_db_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 quota_db_t:file getattr;
|
|
|
|
')
|
|
|
|
|
2006-05-10 18:09:08 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Create, read, write, and delete quota
|
|
|
|
## flag files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain to not audit.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2005-08-11 14:49:58 +00:00
|
|
|
interface(`quota_manage_flags',`
|
|
|
|
gen_require(`
|
|
|
|
type quota_flag_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
files_search_var_lib($1)
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern($1, quota_flag_t, quota_flag_t)
|
2005-08-11 14:49:58 +00:00
|
|
|
')
|