|
Chris PeBenito |
44fc06 |
## <summary>Automated backup program.</summary>
|
|
Chris PeBenito |
44fc06 |
|
|
Chris PeBenito |
44fc06 |
########################################
|
|
Chris PeBenito |
44fc06 |
## <summary>
|
|
Chris PeBenito |
44fc06 |
## Execute amrecover in the amanda_recover domain.
|
|
Chris PeBenito |
44fc06 |
## </summary>
|
|
Chris PeBenito |
44fc06 |
## <param name="domain">
|
|
Chris PeBenito |
44fc06 |
## The type of the process performing this action.
|
|
Chris PeBenito |
44fc06 |
## </param>
|
|
Chris PeBenito |
44fc06 |
#
|
|
Chris PeBenito |
44fc06 |
interface(`amanda_domtrans_recover',`
|
|
Chris PeBenito |
44fc06 |
gen_require(`
|
|
Chris PeBenito |
44fc06 |
type amanda_recover_t, amanda_recover_exec_t;
|
|
Chris PeBenito |
44fc06 |
')
|
|
Chris PeBenito |
44fc06 |
|
|
Chris PeBenito |
44fc06 |
domain_auto_trans($1,amanda_recover_exec_t,amanda_recover_t)
|
|
Chris PeBenito |
44fc06 |
|
|
Chris PeBenito |
44fc06 |
allow $1 amanda_recover_t:fd use;
|
|
Chris PeBenito |
44fc06 |
allow amanda_recover_t $1:fd use;
|
|
Chris PeBenito |
44fc06 |
allow amanda_recover_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
44fc06 |
allow amanda_recover_t $1:process sigchld;
|
|
Chris PeBenito |
44fc06 |
')
|
|
Chris PeBenito |
44fc06 |
|
|
Chris PeBenito |
44fc06 |
########################################
|
|
Chris PeBenito |
44fc06 |
## <summary>
|
|
Chris PeBenito |
44fc06 |
## Execute amrecover in the amanda_recover domain, and
|
|
Chris PeBenito |
44fc06 |
## allow the specified role the amanda_recover domain.
|
|
Chris PeBenito |
44fc06 |
## </summary>
|
|
Chris PeBenito |
44fc06 |
## <param name="domain">
|
|
Chris PeBenito |
44fc06 |
## The type of the process performing this action.
|
|
Chris PeBenito |
44fc06 |
## </param>
|
|
Chris PeBenito |
44fc06 |
## <param name="role">
|
|
Chris PeBenito |
44fc06 |
## The role to be allowed the amanda_recover domain.
|
|
Chris PeBenito |
44fc06 |
## </param>
|
|
Chris PeBenito |
44fc06 |
## <param name="terminal">
|
|
Chris PeBenito |
44fc06 |
## The type of the terminal allow the amanda_recover domain to use.
|
|
Chris PeBenito |
44fc06 |
## </param>
|
|
Chris PeBenito |
44fc06 |
#
|
|
Chris PeBenito |
44fc06 |
interface(`amanda_run_recover',`
|
|
Chris PeBenito |
44fc06 |
gen_require(`
|
|
Chris PeBenito |
44fc06 |
type amanda_recover_t;
|
|
Chris PeBenito |
44fc06 |
')
|
|
Chris PeBenito |
44fc06 |
|
|
Chris PeBenito |
44fc06 |
amanda_domtrans_recover($1)
|
|
Chris PeBenito |
44fc06 |
role $2 types amanda_recover_t;
|
|
Chris PeBenito |
44fc06 |
allow amanda_recover_t $3:chr_file rw_term_perms;
|
|
Chris PeBenito |
44fc06 |
')
|
|
Chris PeBenito |
44fc06 |
|
|
Chris PeBenito |
44fc06 |
########################################
|
|
Chris PeBenito |
44fc06 |
## <summary>
|
|
Chris PeBenito |
44fc06 |
## Search amanda library directories.
|
|
Chris PeBenito |
44fc06 |
## </summary>
|
|
Chris PeBenito |
44fc06 |
## <param name="domain">
|
|
Chris PeBenito |
44fc06 |
## The type of the process performing this action.
|
|
Chris PeBenito |
44fc06 |
## </param>
|
|
Chris PeBenito |
44fc06 |
#
|
|
Chris PeBenito |
44fc06 |
interface(`amanda_search_lib',`
|
|
Chris PeBenito |
44fc06 |
gen_require(`
|
|
Chris PeBenito |
44fc06 |
type amanda_usr_lib_t;
|
|
Chris PeBenito |
44fc06 |
')
|
|
Chris PeBenito |
44fc06 |
|
|
Chris PeBenito |
44fc06 |
allow $1 amanda_usr_lib_t:dir search;
|
|
Chris PeBenito |
44fc06 |
files_search_usr($1)
|
|
Chris PeBenito |
44fc06 |
')
|