aboutsummaryrefslogtreecommitdiff
blob: 0ffe6d83a5d4d0d1e8ed139b483f923d0be8f25d (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
## <summary>Utilities for the tboot TXT module.</summary>

########################################
## <summary>
##	Execute txt-stat in the txtstat domain.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed to transition.
##	</summary>
## </param>
#
interface(`tboot_domtrans_txtstat',`
	gen_require(`
		type txtstat_t, txtstat_exec_t;
	')

	corecmd_search_bin($1)
	domtrans_pattern($1, txtstat_exec_t, txtstat_t)
')

########################################
## <summary>
##	Execute txt-stat in the txtstat domain, and
##	allow the specified role the txtstat domain.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed to transition.
##	</summary>
## </param>
## <param name="role">
##	<summary>
##	The role to be allowed the txtstat domain.
##	</summary>
## </param>
#
interface(`tboot_run_txtstat',`
	gen_require(`
		type txtstat_t;
		attribute_role txtstat_roles;
	')

	tboot_domtrans_txtstat($1)
	roleattribute $2 txtstat_roles;
')