Chris PeBenito 2e9cd9
## <summary>Open AntiVirus scannerdaemon and signature update</summary>
Chris PeBenito 2e9cd9
Chris PeBenito 2e9cd9
########################################
Chris PeBenito 2e9cd9
## <summary>
Chris PeBenito 2e9cd9
##	Execute oav_update in the oav_update domain.
Chris PeBenito 2e9cd9
## </summary>
Chris PeBenito 2e9cd9
## <param name="domain">
Chris PeBenito 2e9cd9
##	<summary>
Chris PeBenito 2e9cd9
##	Domain allowed access.
Chris PeBenito 2e9cd9
##	</summary>
Chris PeBenito 2e9cd9
## </param>
Chris PeBenito 2e9cd9
#
Chris PeBenito 2e9cd9
interface(`oav_domtrans_update',`
Chris PeBenito 2e9cd9
	gen_require(`
Chris PeBenito 2e9cd9
		type oav_update_t, oav_update_exec_t;
Chris PeBenito 2e9cd9
	')
Chris PeBenito 2e9cd9
Chris PeBenito 2e9cd9
	corecmd_search_sbin($1)
Chris PeBenito 2e9cd9
	domain_auto_trans($1,oav_update_exec_t,oav_update_t)
Chris PeBenito 2e9cd9
Chris PeBenito 2e9cd9
	allow $1 oav_update_t:fd use;
Chris PeBenito 2e9cd9
	allow oav_update_t $1:fd use;
Chris PeBenito 2e9cd9
	allow oav_update_t $1:fifo_file rw_file_perms;
Chris PeBenito 2e9cd9
	allow oav_update_t $1:process sigchld;
Chris PeBenito 2e9cd9
')
Chris PeBenito 2e9cd9
Chris PeBenito 2e9cd9
########################################
Chris PeBenito 2e9cd9
## <summary>
Chris PeBenito 2e9cd9
##	Execute oav_update in the oav_update domain, and
Chris PeBenito 2e9cd9
##	allow the specified role the oav_update domain.
Chris PeBenito 2e9cd9
## </summary>
Chris PeBenito 2e9cd9
## <param name="domain">
Chris PeBenito 2e9cd9
##	<summary>
Chris PeBenito 2e9cd9
##	Domain allowed access.
Chris PeBenito 2e9cd9
##	</summary>
Chris PeBenito 2e9cd9
## </param>
Chris PeBenito 2e9cd9
## <param name="role">
Chris PeBenito 2e9cd9
##	<summary>
Chris PeBenito 2e9cd9
##	The role to be allowed the oav_update domain.
Chris PeBenito 2e9cd9
##	</summary>
Chris PeBenito 2e9cd9
## </param>
Chris PeBenito 2e9cd9
## <param name="terminal">
Chris PeBenito 2e9cd9
##	<summary>
Chris PeBenito 2e9cd9
##	The type of the terminal allow the oav_update domain to use.
Chris PeBenito 2e9cd9
##	</summary>
Chris PeBenito 2e9cd9
## </param>
Chris PeBenito 2e9cd9
#
Chris PeBenito 2e9cd9
interface(`oav_run_update',`
Chris PeBenito 2e9cd9
	gen_require(`
Chris PeBenito 2e9cd9
		type oav_update_t;
Chris PeBenito 2e9cd9
	')
Chris PeBenito 2e9cd9
Chris PeBenito 2e9cd9
	oav_domtrans_update($1)
Chris PeBenito 2e9cd9
	role $2 types oav_update_t;
Chris PeBenito 2e9cd9
	allow oav_update_t $3:chr_file rw_term_perms;
Chris PeBenito 2e9cd9
')