You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
1.7 KiB
87 lines
1.7 KiB
(class testing (read open close write exec))
|
|
(class fooclass (read open close write exec))
|
|
|
|
(type foo_t)
|
|
(type typea_t)
|
|
(type typeb_t)
|
|
(type typec_t)
|
|
(role foo_r)
|
|
(role rolea_r)
|
|
(role roleb_r)
|
|
(user foo_u)
|
|
(user user_u)
|
|
(userrole foo_u foo_r)
|
|
|
|
(sid test_sid)
|
|
;(sidcontext test_sid (foo_u foo_r foo_t (s0 (c0)) (s0 (c0))))
|
|
;(sid test_sid_anon_l)
|
|
|
|
;(fsuse xattr ext3 con)
|
|
;(fsuse xattr ext3 con_anon_l)
|
|
|
|
;(netifcon eth0 con con_anon_l)
|
|
|
|
(ipaddr ip_v4 192.25.35.200)
|
|
(ipaddr netmask 192.168.1.1)
|
|
(ipaddr ip_v6 2001:0DB8:AC10:FE01::)
|
|
(ipaddr netmask_v6 2001:0DE0:DA88:2222::)
|
|
; will need anon levels
|
|
;(nodecon ip_v4 netmask con)
|
|
;(nodecon ip_v6 netmask_v6 con_anon_l)
|
|
|
|
;needs anon levels
|
|
;(portcon type 25 con)
|
|
|
|
;(filecon root path file con)
|
|
|
|
;(genfscon type path con)
|
|
|
|
;(netifcon eth0 con con_anon_l)
|
|
|
|
(typemember typea_t typeb_t testing typec_t)
|
|
(typechange typea_t typeb_t testing typec_t)
|
|
(typetransition typea_t typeb_t testing typec_t)
|
|
|
|
(permissionset permset (open close))
|
|
(allow typea_t typeb_t testing (write))
|
|
(allow typea_t typeb_t testing permset)
|
|
|
|
(roleallow rolea_r roleb_r)
|
|
|
|
(rolebounds rolea_r roleb_r)
|
|
|
|
(roletransition foo_r foo_t testing rolea_r)
|
|
|
|
(common fooclass (open))
|
|
(classcommon fooclass fooclass)
|
|
|
|
|
|
(nametypetransition string typea_t typeb_t fooclass foo_t)
|
|
|
|
(typepermissive foo_t)
|
|
|
|
(typebounds typea_t typeb_t)
|
|
|
|
(block test_b
|
|
(typealias .test_b.test typea_t)
|
|
(type test))
|
|
|
|
(attribute attrs)
|
|
(attributetypes attrs (foo_t))
|
|
|
|
(roletype foo_r foo_t)
|
|
|
|
(userbounds user_u foo_u)
|
|
|
|
(userrole user_u foo_r)
|
|
|
|
;(bool foo_b true)
|
|
;(bool baz_b false)
|
|
;(booleanif (&& foo_b baz_b)
|
|
; (allow typea_t typeb_t fooclass(read)))
|
|
;(class baz (read))
|
|
;(booleanif (&& foo_b baz_b)
|
|
; (allow foo_b baz_b fooclass (read)))
|
|
|
|
|