Introduce logging_search_all_log_dirs interface
Support the logging_search_all_log_dirs interface for applications such as fail2ban-client, who scan through log directories. Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
This commit is contained in:
parent
48e8c08717
commit
c239a20504
|
@ -684,6 +684,25 @@ interface(`logging_rw_generic_log_dirs',`
|
|||
allow $1 var_log_t:dir rw_dir_perms;
|
||||
')
|
||||
|
||||
#######################################
|
||||
## <summary>
|
||||
## Search through all log dirs.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
## <rolecap/>
|
||||
#
|
||||
interface(`logging_search_all_log_dirs',`
|
||||
gen_require(`
|
||||
attribute logfile;
|
||||
')
|
||||
|
||||
allow $1 logfile:dir search_dir_perms;
|
||||
')
|
||||
|
||||
#######################################
|
||||
## <summary>
|
||||
## Set attributes on all log dirs.
|
||||
|
|
Loading…
Reference in New Issue