aboutsummaryrefslogtreecommitdiff
blob: cc831b6df6ca06da01893fc6383f6c3361c82dea (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
## <summary>Web server log analysis.</summary>

########################################
## <summary>
##	Execute webalizer in the webalizer domain.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed to transition.
##	</summary>
## </param>
#
interface(`webalizer_domtrans',`
	gen_require(`
		type webalizer_t, webalizer_exec_t;
	')

	corecmd_search_bin($1)
	domtrans_pattern($1, webalizer_exec_t, webalizer_t)
')

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

	webalizer_domtrans($1)
	roleattribute $2 webalizer_roles;
')

########################################
## <summary>
##	Manage webalizer usage files
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed to manage webalizer usage files
##	</summary>
## </param>
## <rolecap/>
#
interface(`manage_webalizer_var_lib',`
	gen_require(`
		type webalizer_var_lib_t;
	')

	allow $1 webalizer_var_lib_t:dir manage_dir_perms;
	allow $1 webalizer_var_lib_t:file manage_file_perms;
')