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:
Sven Vermeulen 2012-10-19 20:51:24 +02:00 committed by Chris PeBenito
parent 48e8c08717
commit c239a20504
1 changed files with 19 additions and 0 deletions

View File

@ -684,6 +684,25 @@ interface(`logging_rw_generic_log_dirs',`
allow $1 var_log_t:dir rw_dir_perms; 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> ## <summary>
## Set attributes on all log dirs. ## Set attributes on all log dirs.