aboutsummaryrefslogtreecommitdiff
blob: 0e759a263e7860927f13eb3be9079064bebdbf0e (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
## <summary>Check and feed random data from hardware device to kernel random device.</summary>

########################################
## <summary>
##	All of the rules required to
##	administrate an rng environment.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
## <param name="role">
##	<summary>
##	Role allowed access.
##	</summary>
## </param>
## <rolecap/>
#
interface(`rngd_admin',`
	gen_require(`
		type rngd_t, rngd_initrc_exec_t;
	')

	allow $1 rngd_t:process { ptrace signal_perms };
	ps_process_pattern($1, rngd_t)

	init_labeled_script_domtrans($1, rngd_initrc_exec_t)
	domain_system_change_exemption($1)
	role_transition $2 rngd_initrc_exec_t system_r;
	allow $2 system_r;
')