Debian Codegraph @

cil/test/integration_testing/nonmls.cil

raw
1 (class testing (read open close write exec))
2 (class fooclass (read open close write exec))
3
4 (type foo_t)
5 (type typea_t)
6 (type typeb_t)
7 (type typec_t)
8 (role foo_r)
9 (role rolea_r)
10 (role roleb_r)
11 (user foo_u)
12 (user user_u)
13 (userrole foo_u foo_r)
14
15 (sid test_sid)
16 ;(sidcontext test_sid (foo_u foo_r foo_t (s0 (c0)) (s0 (c0))))
17 ;(sid test_sid_anon_l)
18
19 ;(fsuse xattr ext3 con)
20 ;(fsuse xattr ext3 con_anon_l)
21
22 ;(netifcon eth0 con con_anon_l)
23
24 (ipaddr ip_v4 192.25.35.200)
25 (ipaddr netmask 192.168.1.1)
26 (ipaddr ip_v6 2001:0DB8:AC10:FE01::)
27 (ipaddr netmask_v6 2001:0DE0:DA88:2222::)
28 ; will need anon levels
29 ;(nodecon ip_v4 netmask con)
30 ;(nodecon ip_v6 netmask_v6 con_anon_l)
31
32 ;needs anon levels
33 ;(portcon type 25 con)
34
35 ;(filecon root path file con)
36
37 ;(genfscon type path con)
38
39 ;(netifcon eth0 con con_anon_l)
40
41 (typemember typea_t typeb_t testing typec_t)
42 (typechange typea_t typeb_t testing typec_t)
43 (typetransition typea_t typeb_t testing typec_t)
44
45 (permissionset permset (open close))
46 (allow typea_t typeb_t testing (write))
47 (allow typea_t typeb_t testing permset)
48
49 (roleallow rolea_r roleb_r)
50
51 (rolebounds rolea_r roleb_r)
52
53 (roletransition foo_r foo_t testing rolea_r)
54
55 (common fooclass (open))
56 (classcommon fooclass fooclass)
57
58
59 (nametypetransition string typea_t typeb_t fooclass foo_t)
60
61 (typepermissive foo_t)
62 (typeneveraudit foo_t)
63
64 (typebounds typea_t typeb_t)
65
66 (block test_b
67 (typealias .test_b.test typea_t)
68 (type test))
69
70 (attribute attrs)
71 (attributetypes attrs (foo_t))
72
73 (roletype foo_r foo_t)
74
75 (userbounds user_u foo_u)
76
77 (userrole user_u foo_r)
78
79 ;(bool foo_b true)
80 ;(bool baz_b false)
81 ;(booleanif (&& foo_b baz_b)
82 ; (allow typea_t typeb_t fooclass(read)))
83 ;(class baz (read))
84 ;(booleanif (&& foo_b baz_b)
85 ; (allow foo_b baz_b fooclass (read)))
86
87