16cd6a6acSopenharmony_ci(type bin_t)
26cd6a6acSopenharmony_ci(type kernel_t)
36cd6a6acSopenharmony_ci(type security_t)
46cd6a6acSopenharmony_ci(type unlabeled_t)
56cd6a6acSopenharmony_ci
66cd6a6acSopenharmony_ci(policycap open_perms)
76cd6a6acSopenharmony_ci(sensitivity s0)
86cd6a6acSopenharmony_ci(sensitivity s1)
96cd6a6acSopenharmony_ci(sensitivityalias s0 sens0)
106cd6a6acSopenharmony_ci(dominance (s0 s1))
116cd6a6acSopenharmony_ci
126cd6a6acSopenharmony_ci(category c0)
136cd6a6acSopenharmony_ci(category c1)
146cd6a6acSopenharmony_ci(category c2)
156cd6a6acSopenharmony_ci(categoryalias c0 cat0)
166cd6a6acSopenharmony_ci(categoryset cats01 (c0 c1))
176cd6a6acSopenharmony_ci(categoryorder (c0 c1 c2))
186cd6a6acSopenharmony_ci(categoryrange catrng02 (c0 c2))
196cd6a6acSopenharmony_ci
206cd6a6acSopenharmony_ci(sensitivitycategory s0 (catrng02))
216cd6a6acSopenharmony_ci(sensitivitycategory s1 cats01)
226cd6a6acSopenharmony_ci(sensitivitycategory s1 (c2))
236cd6a6acSopenharmony_ci
246cd6a6acSopenharmony_ci(level low (s0 (c0)))
256cd6a6acSopenharmony_ci(level high (s1 (c0 c1)))
266cd6a6acSopenharmony_ci(levelrange low_high (low high))
276cd6a6acSopenharmony_ci
286cd6a6acSopenharmony_ci(permissionset file_perms (execute_no_trans entrypoint execmod open
296cd6a6acSopenharmony_ci				audit_access))
306cd6a6acSopenharmony_ci(class file (execute_no_trans entrypoint execmod open audit_access))
316cd6a6acSopenharmony_ci(class process (open))
326cd6a6acSopenharmony_ci(common file (ioctl read write create getattr setattr lock relabelfrom
336cd6a6acSopenharmony_ci		relabelto append unlink link rename execute swapon
346cd6a6acSopenharmony_ci		quotaon mounton))
356cd6a6acSopenharmony_ci(classcommon file file)
366cd6a6acSopenharmony_ci
376cd6a6acSopenharmony_ci(classpermissionset file_rw (file (read write getattr setattr lock append)))
386cd6a6acSopenharmony_ci
396cd6a6acSopenharmony_ci(class char (foo transition))
406cd6a6acSopenharmony_ci(classcommon char file)
416cd6a6acSopenharmony_ci
426cd6a6acSopenharmony_ci(classpermissionset char_w (char (write setattr)))
436cd6a6acSopenharmony_ci
446cd6a6acSopenharmony_ci(classmap files (read))
456cd6a6acSopenharmony_ci(classmapping files read
466cd6a6acSopenharmony_ci	(file (open read getattr))
476cd6a6acSopenharmony_ci	char_w)
486cd6a6acSopenharmony_ci
496cd6a6acSopenharmony_ci(type auditadm_t)
506cd6a6acSopenharmony_ci(type console_t)
516cd6a6acSopenharmony_ci(type console_device_t)
526cd6a6acSopenharmony_ci(type user_tty_device_t)		
536cd6a6acSopenharmony_ci(type device_t)
546cd6a6acSopenharmony_ci(type getty_t)
556cd6a6acSopenharmony_ci(type exec_t)
566cd6a6acSopenharmony_ci
576cd6a6acSopenharmony_ci(allow console_t console_device_t file_rw)
586cd6a6acSopenharmony_ci(allow console_t console_device_t (files (read)))
596cd6a6acSopenharmony_ci
606cd6a6acSopenharmony_ci(boolean secure_mode false)
616cd6a6acSopenharmony_ci(boolean console_login true)
626cd6a6acSopenharmony_ci
636cd6a6acSopenharmony_ci
646cd6a6acSopenharmony_ci(sid kernel)
656cd6a6acSopenharmony_ci(sid security)
666cd6a6acSopenharmony_ci(sid unlabeled)
676cd6a6acSopenharmony_ci	
686cd6a6acSopenharmony_ci(typeattribute exec_type)
696cd6a6acSopenharmony_ci(typeattribute foo_type)
706cd6a6acSopenharmony_ci(typeattribute bar_type)
716cd6a6acSopenharmony_ci(typeattribute baz_type)
726cd6a6acSopenharmony_ci(typeattributeset exec_type (or bin_t kernel_t))
736cd6a6acSopenharmony_ci(typeattributeset foo_type (and exec_type kernel_t))
746cd6a6acSopenharmony_ci(typeattributeset bar_type (xor exec_type foo_type))
756cd6a6acSopenharmony_ci(typeattributeset baz_type (not bin_t))
766cd6a6acSopenharmony_ci(typealias bin_t sbin_t)
776cd6a6acSopenharmony_ci(typepermissive device_t) 
786cd6a6acSopenharmony_ci(typebounds device_t bin_t)
796cd6a6acSopenharmony_ci(typemember device_t bin_t file exec_t)
806cd6a6acSopenharmony_ci(typetransition device_t console_t file console_device_t)
816cd6a6acSopenharmony_ci
826cd6a6acSopenharmony_ci(rangetransition device_t console_t file low_high)
836cd6a6acSopenharmony_ci
846cd6a6acSopenharmony_ci(nametypetransition some_file device_t console_t file getty_t)
856cd6a6acSopenharmony_ci
866cd6a6acSopenharmony_ci(allow foo_type self (file (execute)))
876cd6a6acSopenharmony_ci(allow bin_t device_t (file (execute)))
886cd6a6acSopenharmony_ci		
896cd6a6acSopenharmony_ci(booleanif secure_mode
906cd6a6acSopenharmony_ci	(true
916cd6a6acSopenharmony_ci		(auditallow device_t exec_t (file (read write)))
926cd6a6acSopenharmony_ci	)
936cd6a6acSopenharmony_ci)
946cd6a6acSopenharmony_ci
956cd6a6acSopenharmony_ci(booleanif console_login
966cd6a6acSopenharmony_ci	(true
976cd6a6acSopenharmony_ci		(typechange auditadm_t console_device_t file user_tty_device_t)
986cd6a6acSopenharmony_ci		(allow getty_t console_device_t (file (getattr open read write append)))
996cd6a6acSopenharmony_ci	)
1006cd6a6acSopenharmony_ci	(false
1016cd6a6acSopenharmony_ci		(dontaudit getty_t console_device_t (file (getattr open read write append)))
1026cd6a6acSopenharmony_ci	)
1036cd6a6acSopenharmony_ci)
1046cd6a6acSopenharmony_ci
1056cd6a6acSopenharmony_ci(booleanif (not (xor (eq secure_mode console_login) 
1066cd6a6acSopenharmony_ci			(and (or secure_mode console_login) secure_mode ) ) )
1076cd6a6acSopenharmony_ci	(true
1086cd6a6acSopenharmony_ci		(allow bin_t exec_t (file (execute)))
1096cd6a6acSopenharmony_ci	)
1106cd6a6acSopenharmony_ci)
1116cd6a6acSopenharmony_ci
1126cd6a6acSopenharmony_ci(tunable allow_execfile true)
1136cd6a6acSopenharmony_ci(tunable allow_userexec false)
1146cd6a6acSopenharmony_ci
1156cd6a6acSopenharmony_ci(tunableif (not (xor (eq allow_execfile allow_userexec)
1166cd6a6acSopenharmony_ci			(and (or allow_execfile allow_userexec)
1176cd6a6acSopenharmony_ci				(and allow_execfile allow_userexec) ) ) )
1186cd6a6acSopenharmony_ci	(true
1196cd6a6acSopenharmony_ci		(allow bin_t exec_t (file (execute)))
1206cd6a6acSopenharmony_ci	)
1216cd6a6acSopenharmony_ci)
1226cd6a6acSopenharmony_ci
1236cd6a6acSopenharmony_ci(optional allow_rules 
1246cd6a6acSopenharmony_ci	(allow user_t exec_t (bins (execute)))
1256cd6a6acSopenharmony_ci)
1266cd6a6acSopenharmony_ci
1276cd6a6acSopenharmony_ci(dontaudit device_t auditadm_t (file (read)))
1286cd6a6acSopenharmony_ci(auditallow device_t auditadm_t (file (open)))
1296cd6a6acSopenharmony_ci
1306cd6a6acSopenharmony_ci(user system_u)
1316cd6a6acSopenharmony_ci(user user_u)
1326cd6a6acSopenharmony_ci(userprefix user_u user)
1336cd6a6acSopenharmony_ci(userprefix system_u user)
1346cd6a6acSopenharmony_ci
1356cd6a6acSopenharmony_ci(selinuxuser name user_u low_high)
1366cd6a6acSopenharmony_ci(selinuxuserdefault user_u low_high)
1376cd6a6acSopenharmony_ci
1386cd6a6acSopenharmony_ci(role system_r)
1396cd6a6acSopenharmony_ci(role user_r)
1406cd6a6acSopenharmony_ci
1416cd6a6acSopenharmony_ci(roletype system_r bin_t)
1426cd6a6acSopenharmony_ci(roletype system_r kernel_t)
1436cd6a6acSopenharmony_ci(roletype system_r security_t)
1446cd6a6acSopenharmony_ci(roletype system_r unlabeled_t)
1456cd6a6acSopenharmony_ci(roleallow system_r user_r)
1466cd6a6acSopenharmony_ci(rolebounds system_r user_r)
1476cd6a6acSopenharmony_ci(roletransition system_r bin_t process user_r)
1486cd6a6acSopenharmony_ci
1496cd6a6acSopenharmony_ci(userrole system_u system_r)
1506cd6a6acSopenharmony_ci(userlevel system_u low)
1516cd6a6acSopenharmony_ci(userrange system_u low_high)
1526cd6a6acSopenharmony_ci(userbounds system_u user_u)
1536cd6a6acSopenharmony_ci(userrole user_u user_r)
1546cd6a6acSopenharmony_ci(userlevel user_u low)
1556cd6a6acSopenharmony_ci(userrange user_u (low low))
1566cd6a6acSopenharmony_ci
1576cd6a6acSopenharmony_ci(sidcontext kernel (system_u system_r kernel_t (low high)))
1586cd6a6acSopenharmony_ci(sidcontext security (system_u system_r security_t (low high)))
1596cd6a6acSopenharmony_ci(sidcontext unlabeled (system_u system_r unlabeled_t (low high)))
1606cd6a6acSopenharmony_ci
1616cd6a6acSopenharmony_ci(context system_u_bin_t_l2h (system_u system_r bin_t (low high)))
1626cd6a6acSopenharmony_ci
1636cd6a6acSopenharmony_ci(ipaddr ip_v4 192.25.35.200)
1646cd6a6acSopenharmony_ci(ipaddr netmask 192.168.1.1)
1656cd6a6acSopenharmony_ci(ipaddr ip_v6 2001:0DB8:AC10:FE01::)
1666cd6a6acSopenharmony_ci(ipaddr netmask_v6 2001:0DE0:DA88:2222::)
1676cd6a6acSopenharmony_ci
1686cd6a6acSopenharmony_ci(filecon "/usr/bin/" "foo" file system_u_bin_t_l2h)
1696cd6a6acSopenharmony_ci(filecon "/usr/bin/" "bar" file ())
1706cd6a6acSopenharmony_ci(filecon "/usr/bin/" "baz" any ())
1716cd6a6acSopenharmony_ci(nodecon ip_v4 netmask system_u_bin_t_l2h)
1726cd6a6acSopenharmony_ci(nodecon ip_v6 netmask_v6 system_u_bin_t_l2h)
1736cd6a6acSopenharmony_ci(portcon udp 25 system_u_bin_t_l2h)
1746cd6a6acSopenharmony_ci(portcon tcp 22 system_u_bin_t_l2h)
1756cd6a6acSopenharmony_ci(genfscon - "/usr/bin" system_u_bin_t_l2h)
1766cd6a6acSopenharmony_ci(netifcon eth0 system_u_bin_t_l2h system_u_bin_t_l2h) ;different contexts?
1776cd6a6acSopenharmony_ci(fsuse xattr ext3 system_u_bin_t_l2h)
1786cd6a6acSopenharmony_ci
1796cd6a6acSopenharmony_ci; XEN
1806cd6a6acSopenharmony_ci(pirqcon 256 system_u_bin_t_l2h)
1816cd6a6acSopenharmony_ci(iomemcon (0 255) system_u_bin_t_l2h)
1826cd6a6acSopenharmony_ci(ioportcon (22 22) system_u_bin_t_l2h)
1836cd6a6acSopenharmony_ci(pcidevicecon 345 system_u_bin_t_l2h)
1846cd6a6acSopenharmony_ci
1856cd6a6acSopenharmony_ci(constrain (files (read)) (not (or (and (eq t1 exec_t) (eq t2 bin_t)) (eq r1 r2))))
1866cd6a6acSopenharmony_ci(constrain char_w (not (or (and (eq t1 exec_t) (eq t2 bin_t)) (eq r1 r2))))
1876cd6a6acSopenharmony_ci
1886cd6a6acSopenharmony_ci(constrain (file (read)) (or (and (eq t1 exec_t) (neq t2 bin_t) ) (eq u1 u2) ) )
1896cd6a6acSopenharmony_ci(constrain (file (open)) (dom r1 r2))
1906cd6a6acSopenharmony_ci(constrain (file (open)) (domby r1 r2))
1916cd6a6acSopenharmony_ci(constrain (file (open)) (incomp r1 r2))
1926cd6a6acSopenharmony_ci
1936cd6a6acSopenharmony_ci(validatetrans file (eq t1 exec_t))
1946cd6a6acSopenharmony_ci
1956cd6a6acSopenharmony_ci(mlsconstrain (file (open)) (not (or (and (eq l1 l2) (eq u1 u2)) (eq r1 r2))))
1966cd6a6acSopenharmony_ci(mlsconstrain (file (open)) (or (and (eq l1 l2) (eq u1 u2)) (neq r1 r2)))
1976cd6a6acSopenharmony_ci(mlsconstrain (file (open)) (dom h1 l2))
1986cd6a6acSopenharmony_ci(mlsconstrain (file (open)) (domby l1 h2))
1996cd6a6acSopenharmony_ci(mlsconstrain (file (open)) (incomp l1 l2))
2006cd6a6acSopenharmony_ci
2016cd6a6acSopenharmony_ci(mlsvalidatetrans file (domby l1 h2))
2026cd6a6acSopenharmony_ci
2036cd6a6acSopenharmony_ci(macro all ((type x))
2046cd6a6acSopenharmony_ci	(allow x bin_t (file (execute)))
2056cd6a6acSopenharmony_ci)
2066cd6a6acSopenharmony_ci(call all (bin_t))
2076cd6a6acSopenharmony_ci
2086cd6a6acSopenharmony_ci(type a_t)
2096cd6a6acSopenharmony_ci(type b_t)
2106cd6a6acSopenharmony_ci(boolean b1 false)
2116cd6a6acSopenharmony_ci(tunable tun1 true)
2126cd6a6acSopenharmony_ci(macro m ((boolean b))
2136cd6a6acSopenharmony_ci	(tunableif tun1
2146cd6a6acSopenharmony_ci		(true
2156cd6a6acSopenharmony_ci			(allow a_t b_t (file (write))))
2166cd6a6acSopenharmony_ci		(false
2176cd6a6acSopenharmony_ci			(allow a_t b_t (file (execute)))))
2186cd6a6acSopenharmony_ci	(booleanif b
2196cd6a6acSopenharmony_ci		(true
2206cd6a6acSopenharmony_ci			(allow a_t b_t (file (read))))))
2216cd6a6acSopenharmony_ci
2226cd6a6acSopenharmony_ci(call m (b1))
2236cd6a6acSopenharmony_ci
224