Modified amanda
This commit is contained in:
parent
09154bd53e
commit
8f4ec142d7
@ -1,9 +1,8 @@
|
|||||||
## <summary>Advanced Maryland Automatic Network Disk Archiver.</summary>
|
## <summary>Automated backup program.</summary>
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
## <summary>
|
## <summary>
|
||||||
## Execute a domain transition to
|
## Execute amrecover in the amanda_recover domain.
|
||||||
## run Amanda Recover.
|
|
||||||
## </summary>
|
## </summary>
|
||||||
## <param name="domain">
|
## <param name="domain">
|
||||||
## <summary>
|
## <summary>
|
||||||
@ -17,15 +16,12 @@ interface(`amanda_domtrans_recover',`
|
|||||||
')
|
')
|
||||||
|
|
||||||
domtrans_pattern($1, amanda_recover_exec_t, amanda_recover_t)
|
domtrans_pattern($1, amanda_recover_exec_t, amanda_recover_t)
|
||||||
corecmd_search_bin($1)
|
|
||||||
')
|
')
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
## <summary>
|
## <summary>
|
||||||
## Execute a domain transition to
|
## Execute amrecover in the amanda_recover domain, and
|
||||||
## run Amanda Recover and allow the
|
## allow the specified role the amanda_recover domain.
|
||||||
## specified role the Amanda Recover
|
|
||||||
## domain.
|
|
||||||
## </summary>
|
## </summary>
|
||||||
## <param name="domain">
|
## <param name="domain">
|
||||||
## <summary>
|
## <summary>
|
||||||
@ -50,7 +46,7 @@ interface(`amanda_run_recover',`
|
|||||||
|
|
||||||
########################################
|
########################################
|
||||||
## <summary>
|
## <summary>
|
||||||
## Search Amanda lib directories.
|
## Search amanda library directories.
|
||||||
## </summary>
|
## </summary>
|
||||||
## <param name="domain">
|
## <param name="domain">
|
||||||
## <summary>
|
## <summary>
|
||||||
@ -65,13 +61,11 @@ interface(`amanda_search_lib',`
|
|||||||
|
|
||||||
allow $1 amanda_usr_lib_t:dir search_dir_perms;
|
allow $1 amanda_usr_lib_t:dir search_dir_perms;
|
||||||
files_search_usr($1)
|
files_search_usr($1)
|
||||||
libs_search_lib($1)
|
|
||||||
')
|
')
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
## <summary>
|
## <summary>
|
||||||
## Do not audit attempts to read
|
## Do not audit attempts to read /etc/dumpdates.
|
||||||
## dumpdates files.
|
|
||||||
## </summary>
|
## </summary>
|
||||||
## <param name="domain">
|
## <param name="domain">
|
||||||
## <summary>
|
## <summary>
|
||||||
@ -84,12 +78,12 @@ interface(`amanda_dontaudit_read_dumpdates',`
|
|||||||
type amanda_dumpdates_t;
|
type amanda_dumpdates_t;
|
||||||
')
|
')
|
||||||
|
|
||||||
dontaudit $1 amanda_dumpdates_t:file read_file_perms;
|
dontaudit $1 amanda_dumpdates_t:file { getattr read };
|
||||||
')
|
')
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
## <summary>
|
## <summary>
|
||||||
## Read and write dumpdates files.
|
## Allow read/writing /etc/dumpdates.
|
||||||
## </summary>
|
## </summary>
|
||||||
## <param name="domain">
|
## <param name="domain">
|
||||||
## <summary>
|
## <summary>
|
||||||
@ -103,12 +97,11 @@ interface(`amanda_rw_dumpdates_files',`
|
|||||||
')
|
')
|
||||||
|
|
||||||
allow $1 amanda_dumpdates_t:file rw_file_perms;
|
allow $1 amanda_dumpdates_t:file rw_file_perms;
|
||||||
files_search_etc($1)
|
|
||||||
')
|
')
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
## <summary>
|
## <summary>
|
||||||
## Search Amanda lib directories.
|
## Search amanda library directories.
|
||||||
## </summary>
|
## </summary>
|
||||||
## <param name="domain">
|
## <param name="domain">
|
||||||
## <summary>
|
## <summary>
|
||||||
@ -123,12 +116,11 @@ interface(`amanda_manage_lib',`
|
|||||||
|
|
||||||
allow $1 amanda_usr_lib_t:dir manage_dir_perms;
|
allow $1 amanda_usr_lib_t:dir manage_dir_perms;
|
||||||
files_search_usr($1)
|
files_search_usr($1)
|
||||||
libs_search_lib($1)
|
|
||||||
')
|
')
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
## <summary>
|
## <summary>
|
||||||
## Read and write Amanda logs.
|
## Allow read/writing amanda logs
|
||||||
## </summary>
|
## </summary>
|
||||||
## <param name="domain">
|
## <param name="domain">
|
||||||
## <summary>
|
## <summary>
|
||||||
@ -142,12 +134,11 @@ interface(`amanda_append_log_files',`
|
|||||||
')
|
')
|
||||||
|
|
||||||
allow $1 amanda_log_t:file { read_file_perms append_file_perms };
|
allow $1 amanda_log_t:file { read_file_perms append_file_perms };
|
||||||
logging_search_logs($1)
|
|
||||||
')
|
')
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
## <summary>
|
## <summary>
|
||||||
## Search Amanda lib directories.
|
## Search amanda var library directories.
|
||||||
## </summary>
|
## </summary>
|
||||||
## <param name="domain">
|
## <param name="domain">
|
||||||
## <summary>
|
## <summary>
|
||||||
@ -160,6 +151,7 @@ interface(`amanda_search_var_lib',`
|
|||||||
type amanda_var_lib_t;
|
type amanda_var_lib_t;
|
||||||
')
|
')
|
||||||
|
|
||||||
allow $1 amanda_var_lib_t:dir search_dir_perms;
|
|
||||||
files_search_var_lib($1)
|
files_search_var_lib($1)
|
||||||
|
allow $1 amanda_var_lib_t:dir search_dir_perms;
|
||||||
|
|
||||||
')
|
')
|
||||||
|
Loading…
Reference in New Issue
Block a user