Interface to allow reading of virus signature files.
Signed-off-by: Dave Sugar <dsugar@tresys.com>
This commit is contained in:
parent
66a337eec6
commit
1941eefa13
|
@ -177,6 +177,34 @@ interface(`clamav_read_state_clamd',`
|
|||
read_lnk_files_pattern($1, clamd_t, clamd_t)
|
||||
')
|
||||
|
||||
#######################################
|
||||
## <summary>
|
||||
## Read clam virus signature files
|
||||
## </summary>
|
||||
## <desc>
|
||||
## <p>
|
||||
## Useful for when using things like 'sigtool'
|
||||
## which provides useful information about
|
||||
## ClamAV signature files.
|
||||
## </p>
|
||||
## </desc>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`clamav_read_signatures',`
|
||||
gen_require(`
|
||||
type clamd_var_lib_t;
|
||||
')
|
||||
|
||||
clamav_search_lib($1)
|
||||
allow $1 clamd_var_lib_t:dir list_dir_perms;
|
||||
read_files_pattern($1, clamd_var_lib_t, clamd_var_lib_t)
|
||||
read_lnk_files_pattern($1, clamd_var_lib_t, clamd_var_lib_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## All of the rules required to
|
||||
|
|
Loading…
Reference in New Issue