Lines Matching refs:policyvers

112 				&& p->policyvers < POLICYDB_VERSION_AVTAB);  in avtab_write_item()
226 if ((p->policyvers < POLICYDB_VERSION_XPERMS_IOCTL) && in avtab_write_item()
229 "permissions rules and one was specified", p->policyvers); in avtab_write_item()
284 && p->policyvers < POLICYDB_VERSION_AVTAB); in avtab_write()
507 p->policyvers >= POLICYDB_VERSION_ROLETRANS); in role_trans_write()
603 if (p->policyvers < POLICYDB_VERSION_FILENAME_TRANS) in filename_trans_write()
677 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_write_bool()
704 && p->policyvers < POLICYDB_VERSION_AVTAB); in cond_write_av_list()
791 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_write_node()
840 if ((p->policyvers >= POLICYDB_VERSION_MLS in context_write()
842 || (p->policyvers >= MOD_POLICYDB_VERSION_MLS in context_write()
948 (p->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES) && in write_cons_helper()
1015 && p->policyvers >= POLICYDB_VERSION_VALIDATETRANS) in class_write()
1017 && p->policyvers >= MOD_POLICYDB_VERSION_VALIDATETRANS)) { in class_write()
1032 p->policyvers >= POLICYDB_VERSION_NEW_OBJECT_DEFAULTS) || in class_write()
1034 p->policyvers >= MOD_POLICYDB_VERSION_NEW_OBJECT_DEFAULTS)) { in class_write()
1044 p->policyvers >= POLICYDB_VERSION_DEFAULT_TYPE) || in class_write()
1046 p->policyvers >= MOD_POLICYDB_VERSION_DEFAULT_TYPE)) { in class_write()
1077 p->policyvers < MOD_POLICYDB_VERSION_ROLEATTRIB))) in role_write()
1122 p->policyvers >= MOD_POLICYDB_VERSION_ROLEATTRIB) { in role_write()
1151 && p->policyvers < POLICYDB_VERSION_BOUNDARY in type_write()
1163 && p->policyvers >= MOD_POLICYDB_VERSION_BOUNDARY_ALIAS) { in type_write()
1188 if (p->policyvers >= MOD_POLICYDB_VERSION_PERMISSIVE) in type_write()
1194 p->policyvers); in type_write()
1246 if ((p->policyvers >= POLICYDB_VERSION_MLS in user_write()
1248 || (p->policyvers >= MOD_POLICYDB_VERSION_MLS in user_write()
1249 && p->policyvers < MOD_POLICYDB_VERSION_MLS_USERS in user_write()
1251 || (p->policyvers >= MOD_POLICYDB_VERSION_MLS in user_write()
1252 && p->policyvers < MOD_POLICYDB_VERSION_MLS_USERS in user_write()
1258 } else if ((p->policyvers >= MOD_POLICYDB_VERSION_MLS_USERS in user_write()
1260 || (p->policyvers >= MOD_POLICYDB_VERSION_MLS_USERS in user_write()
1321 if (p->policyvers >= POLICYDB_VERSION_XEN_DEVICETREE) { in ocontext_write_xen()
1334 p->policyvers); in ocontext_write_xen()
1626 p->policyvers >= POLICYDB_VERSION_RANGETRANS); in range_write()
1696 if (p->policyvers < MOD_POLICYDB_VERSION_XPERMS_IOCTL) { in avrule_write()
1700 p->policyvers); in avrule_write()
1778 int new_role = p->policyvers >= MOD_POLICYDB_VERSION_ROLETRANS; in role_trans_rule_write()
1943 if (p->policyvers >= MOD_POLICYDB_VERSION_FILENAME_TRANS && in avrule_decl_write()
1947 if (p->policyvers >= MOD_POLICYDB_VERSION_RANGETRANS && in avrule_decl_write()
2096 if ((p->policyvers < POLICYDB_VERSION_MLS && in policydb_write()
2098 (p->policyvers < MOD_POLICYDB_VERSION_MLS && in policydb_write()
2100 (p->policyvers < MOD_POLICYDB_VERSION_MLS && in policydb_write()
2103 p->policyvers); in policydb_write()
2132 info = policydb_lookup_compat(p->policyvers, p->policy_type, in policydb_write()
2136 "version %d", p->policyvers); in policydb_write()
2143 buf[items++] = cpu_to_le32(p->policyvers); in policydb_write()
2172 if ((p->policyvers >= POLICYDB_VERSION_POLCAP && in policydb_write()
2174 (p->policyvers >= MOD_POLICYDB_VERSION_POLCAP && in policydb_write()
2176 (p->policyvers >= MOD_POLICYDB_VERSION_POLCAP && in policydb_write()
2182 if (p->policyvers < POLICYDB_VERSION_PERMISSIVE && in policydb_write()
2190 p->policyvers); in policydb_write()
2196 if (p->policyvers >= POLICYDB_VERSION_PERMISSIVE && in policydb_write()
2214 p->policyvers < POLICYDB_VERSION_BOUNDARY && in policydb_write()
2228 p->policyvers < MOD_POLICYDB_VERSION_ROLEATTRIB))) in policydb_write()
2242 if (p->policyvers < POLICYDB_VERSION_BOOL) { in policydb_write()
2254 if (p->policyvers >= POLICYDB_VERSION_FILENAME_TRANS) { in policydb_write()
2280 if ((p->policyvers >= POLICYDB_VERSION_MLS in policydb_write()
2282 || (p->policyvers >= MOD_POLICYDB_VERSION_MLS in policydb_write()
2283 && p->policyvers < MOD_POLICYDB_VERSION_RANGETRANS in policydb_write()
2291 && p->policyvers >= POLICYDB_VERSION_AVTAB) { in policydb_write()