summaryrefslogtreecommitdiff
path: root/tests/policies/test-expander/base-base-only.conf
blob: 80b87cc92326c9cde3dc668fe704319b4cd4efda (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
class security
class file

sid kernel

common file
{
	read
}

class file
inherits file
{
	entrypoint
}

class security
{
	compute_av
}

ifdef(`enable_mls',`
sensitivity s0;

dominance { s0 }

category c0;

level s0:c0;

mlsconstrain file { read }
	( h1 dom h2 );
')

attribute myattr;
type mytype_t;
role myrole_r types mytype_t;
bool mybool true;
gen_user(myuser_u,, myrole_r, s0, s0 - s0:c0)

sid kernel	gen_context(myuser_u:myrole_r:mytype_t, s0)