| 1 |
(class testing (read open close write exec)) |
| 2 |
(class fooclass (read open close write exec)) |
| 3 |
|
| 4 |
(category c0) |
| 5 |
(category c1) |
| 6 |
(category c2) |
| 7 |
(category c3) |
| 8 |
(category c4) |
| 9 |
(categoryalias c0 cat) |
| 10 |
(categoryorder (c0 c1 c2 c3 c4)) |
| 11 |
(categoryset catset (c0 c2 c3)) |
| 12 |
(sensitivity s0) |
| 13 |
(sensitivity s1) |
| 14 |
(sensitivity s2) |
| 15 |
(sensitivity s3) |
| 16 |
(sensitivityalias s3 sens) |
| 17 |
(dominance (s0 s1 s2 s3)) |
| 18 |
(sensitivitycategory s0 (c0 c2 c3)) |
| 19 |
(sensitivitycategory s0 (cat)) |
| 20 |
; the following causes a segfault |
| 21 |
;(sensitivitycategory sens (c2)) |
| 22 |
(type foo_t) |
| 23 |
(type typea_t) |
| 24 |
(type typeb_t) |
| 25 |
(type typec_t) |
| 26 |
(role foo_r) |
| 27 |
(role rolea_r) |
| 28 |
(role roleb_r) |
| 29 |
(user foo_u) |
| 30 |
(user user_u) |
| 31 |
(userrole foo_u foo_r) |
| 32 |
(level low (s0 catset)) |
| 33 |
(level high (s0 (c0))) |
| 34 |
(level test_l (s0 (cat))) |
| 35 |
|
| 36 |
(sid test_sid) |
| 37 |
(sidcontext test_sid (foo_u foo_r foo_t (s0 (c0)) (s0 (c0)))) |
| 38 |
(sid test_sid_anon_l) |
| 39 |
(sidcontext test_sid_anon_l (foo_u foo_r foo_t low high)) |
| 40 |
|
| 41 |
(context con (foo_u foo_r foo_t low high)) |
| 42 |
(context con_anon_l (foo_u foo_r foo_t (s0 (c0)) high)) |
| 43 |
(fsuse xattr ext3 con) |
| 44 |
(fsuse xattr ext3 con_anon_l) |
| 45 |
|
| 46 |
(netifcon eth0 con con_anon_l) |
| 47 |
|
| 48 |
(ipaddr ip_v4 192.25.35.200) |
| 49 |
(ipaddr netmask 192.168.1.1) |
| 50 |
(ipaddr ip_v6 2001:0DB8:AC10:FE01::) |
| 51 |
(ipaddr netmask_v6 2001:0DE0:DA88:2222::) |
| 52 |
; will need anon levels |
| 53 |
(nodecon ip_v4 netmask con) |
| 54 |
(nodecon ip_v6 netmask_v6 con_anon_l) |
| 55 |
|
| 56 |
;needs anon levels |
| 57 |
(portcon type 25 con) |
| 58 |
|
| 59 |
(filecon root path file con) |
| 60 |
|
| 61 |
(genfscon type path con) |
| 62 |
|
| 63 |
(netifcon eth0 con con_anon_l) |
| 64 |
|
| 65 |
(typemember typea_t typeb_t testing typec_t) |
| 66 |
(typechange typea_t typeb_t testing typec_t) |
| 67 |
(typetransition typea_t typeb_t testing typec_t) |
| 68 |
|
| 69 |
(permissionset permset (open close)) |
| 70 |
(allow typea_t typeb_t testing (write)) |
| 71 |
(allow typea_t typeb_t testing permset) |
| 72 |
|
| 73 |
(roleallow rolea_r roleb_r) |
| 74 |
|
| 75 |
(rolebounds rolea_r roleb_r) |
| 76 |
|
| 77 |
(roletransition foo_r foo_t testing rolea_r) |
| 78 |
|
| 79 |
(level l2 (s0 (c0))) |
| 80 |
(level h2 (s0 (c0))) |
| 81 |
(mlsconstrain (fooclass testing)(open close)(eq l2 h2)) |
| 82 |
|
| 83 |
(common fooclass (open)) |
| 84 |
(classcommon fooclass fooclass) |
| 85 |
|
| 86 |
(rangetransition typea_t typeb_t fooclass low high) |
| 87 |
|
| 88 |
(nametypetransition string typea_t typeb_t fooclass foo_t) |
| 89 |
|
| 90 |
(typepermissive foo_t) |
| 91 |
(typeneveraudit foo_t) |
| 92 |
|
| 93 |
(typebounds typea_t typeb_t) |
| 94 |
|
| 95 |
(block test_b |
| 96 |
(typealias .test_b.test typea_t) |
| 97 |
(type test)) |
| 98 |
|
| 99 |
(attribute attrs) |
| 100 |
(attributetypes attrs (foo_t)) |
| 101 |
|
| 102 |
(roletype foo_r foo_t) |
| 103 |
|
| 104 |
(userbounds user_u foo_u) |
| 105 |
|
| 106 |
(userrole user_u foo_r) |
| 107 |
|
| 108 |
(bool foo_b true) |
| 109 |
(bool baz_b false) |
| 110 |
(booleanif (&& foo_b baz_b) |
| 111 |
(allow typea_t typeb_t fooclass(read))) |
| 112 |
;(class baz (read)) |
| 113 |
;(booleanif (&& foo_b baz_b) |
| 114 |
; (allow foo_b baz_b fooclass (read))) |
| 115 |
|
| 116 |
|