Add interface clamav_run

Signed-off-by: Dave Sugar <dsugar@tresys.com>
This commit is contained in:
Sugar, David 2019-01-19 16:19:15 +00:00 committed by Chris PeBenito
parent 7d93336024
commit 53ea0b2288
1 changed files with 26 additions and 0 deletions

View File

@ -19,6 +19,32 @@ interface(`clamav_domtrans',`
domtrans_pattern($1, clamd_exec_t, clamd_t)
')
########################################
## <summary>
## Execute clamd programs in the clamd
## domain and allow the specified role
## the clamd domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
## <param name="role">
## <summary>
## Role allowed access.
## </summary>
## </param>
#
interface(`clamav_run',`
gen_require(`
type clamd_t;
')
clamav_domtrans($1)
role $2 types clamd_t;
')
########################################
## <summary>
## Connect to clamd using a unix