aboutsummaryrefslogtreecommitdiff
blob: b096e3fb8e7aae3043da32adae7882a3cabf8b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## <summary>Open AntiVirus scannerdaemon and signature update.</summary>

########################################
## <summary>
##	Execute oav_update in the oav_update domain.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed to transition.
##	</summary>
## </param>
#
interface(`oav_domtrans_update',`
	gen_require(`
		type oav_update_t, oav_update_exec_t;
	')

	corecmd_search_bin($1)
	domtrans_pattern($1, oav_update_exec_t, oav_update_t)
')

########################################
## <summary>
##	Execute oav_update in the oav update
##	domain, and allow the specified role
##	the oav_update domain.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed to transition.
##	</summary>
## </param>
## <param name="role">
##	<summary>
##	Role allowed access.
##	</summary>
## </param>
## <rolecap/>
#
interface(`oav_run_update',`
	gen_require(`
		attribute_role oav_update_roles;
	')

	oav_domtrans_update($1)
	roleattribute $2 oav_update_roles;
')