|
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 |
885b83 |
## <summary>
|
|
Chris PeBenito |
44fc06 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
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 |
885b83 |
## <summary>
|
|
Chris PeBenito |
44fc06 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
44fc06 |
## </param>
|
|
Chris PeBenito |
44fc06 |
## <param name="role">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
44fc06 |
## The role to be allowed the amanda_recover domain.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
44fc06 |
## </param>
|
|
Chris PeBenito |
44fc06 |
## <param name="terminal">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
44fc06 |
## The type of the terminal allow the amanda_recover domain to use.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
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 |
885b83 |
## <summary>
|
|
Chris PeBenito |
44fc06 |
## The type of the process performing this action.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
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 |
')
|
|
Chris PeBenito |
757207 |
|
|
Chris PeBenito |
757207 |
########################################
|
|
Chris PeBenito |
757207 |
## <summary>
|
|
Chris PeBenito |
757207 |
## Do not audit attempts to read /etc/dumpdates.
|
|
Chris PeBenito |
757207 |
## </summary>
|
|
Chris PeBenito |
757207 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
757207 |
## Domain to not audit.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
757207 |
## </param>
|
|
Chris PeBenito |
757207 |
#
|
|
Chris PeBenito |
757207 |
interface(`amanda_dontaudit_read_dumpdates',`
|
|
Chris PeBenito |
757207 |
gen_require(`
|
|
Chris PeBenito |
757207 |
type amanda_dumpdates_t;
|
|
Chris PeBenito |
757207 |
')
|
|
Chris PeBenito |
757207 |
|
|
Chris PeBenito |
757207 |
dontaudit $1 amanda_dumpdates_t:file { getattr read };
|
|
Chris PeBenito |
757207 |
')
|
|
Chris PeBenito |
46c69c |
|
|
Chris PeBenito |
46c69c |
########################################
|
|
Chris PeBenito |
46c69c |
## <summary>
|
|
Chris PeBenito |
46c69c |
## Allow read/writing /etc/dumpdates.
|
|
Chris PeBenito |
46c69c |
## </summary>
|
|
Chris PeBenito |
46c69c |
## <param name="domain">
|
|
Chris PeBenito |
46c69c |
## <summary>
|
|
Chris PeBenito |
46c69c |
## Domain to allow
|
|
Chris PeBenito |
46c69c |
## </summary>
|
|
Chris PeBenito |
46c69c |
## </param>
|
|
Chris PeBenito |
46c69c |
#
|
|
Chris PeBenito |
46c69c |
interface(`amanda_rw_dumpdates_files',`
|
|
Chris PeBenito |
46c69c |
gen_require(`
|
|
Chris PeBenito |
46c69c |
type amanda_dumpdates_t;
|
|
Chris PeBenito |
46c69c |
')
|
|
Chris PeBenito |
46c69c |
|
|
Chris PeBenito |
46c69c |
allow $1 amanda_dumpdates_t:file rw_file_perms;
|
|
Chris PeBenito |
46c69c |
')
|
|
Chris PeBenito |
46c69c |
########################################
|
|
Chris PeBenito |
46c69c |
## <summary>
|
|
Chris PeBenito |
46c69c |
## Allow read/writing amanda logs
|
|
Chris PeBenito |
46c69c |
## </summary>
|
|
Chris PeBenito |
46c69c |
## <param name="domain">
|
|
Chris PeBenito |
46c69c |
## <summary>
|
|
Chris PeBenito |
46c69c |
## Domain to allow
|
|
Chris PeBenito |
46c69c |
## </summary>
|
|
Chris PeBenito |
46c69c |
## </param>
|
|
Chris PeBenito |
46c69c |
#
|
|
Chris PeBenito |
46c69c |
interface(`amanda_append_log_files',`
|
|
Chris PeBenito |
46c69c |
gen_require(`
|
|
Chris PeBenito |
46c69c |
type amanda_log_t;
|
|
Chris PeBenito |
46c69c |
')
|
|
Chris PeBenito |
46c69c |
|
|
Chris PeBenito |
46c69c |
allow $1 amanda_log_t:file ra_file_perms;
|
|
Chris PeBenito |
46c69c |
')
|
|
Chris PeBenito |
46c69c |
|
|
Chris PeBenito |
46c69c |
|