2006-04-24 18:58:46 +00:00
|
|
|
## <summary>System backup scripts</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute backup in the backup domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`backup_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type backup_t, backup_exec_t;
|
|
|
|
')
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
domtrans_pattern($1, backup_exec_t, backup_t)
|
2006-04-24 18:58:46 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute backup in the backup domain, and
|
|
|
|
## allow the specified role the backup domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
2010-08-02 13:22:09 +00:00
|
|
|
## Domain allowed access.
|
2006-04-24 18:58:46 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <param name="role">
|
|
|
|
## <summary>
|
2010-08-03 13:20:22 +00:00
|
|
|
## Role allowed access.
|
2006-04-24 18:58:46 +00:00
|
|
|
## </summary>
|
|
|
|
## </param>
|
2006-09-06 22:07:25 +00:00
|
|
|
## <rolecap/>
|
2006-04-24 18:58:46 +00:00
|
|
|
#
|
|
|
|
interface(`backup_run',`
|
|
|
|
gen_require(`
|
|
|
|
type backup_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
backup_domtrans($1)
|
|
|
|
role $2 types backup_t;
|
|
|
|
')
|