Lines Matching refs:policyvers
1068 if (p->policyvers >= POLICYDB_VERSION_MLS) { in context_read_and_validate()
1288 if (p->policyvers >= in read_cons_helper()
1372 if (p->policyvers >= POLICYDB_VERSION_VALIDATETRANS) { in class_read()
1384 if (p->policyvers >= POLICYDB_VERSION_NEW_OBJECT_DEFAULTS) { in class_read()
1394 if (p->policyvers >= POLICYDB_VERSION_DEFAULT_TYPE) { in class_read()
1424 if (p->policyvers >= POLICYDB_VERSION_BOUNDARY) in role_read()
1433 if (p->policyvers >= POLICYDB_VERSION_BOUNDARY) in role_read()
1481 if (p->policyvers >= POLICYDB_VERSION_BOUNDARY) in type_read()
1490 if (p->policyvers >= POLICYDB_VERSION_BOUNDARY) { in type_read()
1555 if (p->policyvers >= POLICYDB_VERSION_BOUNDARY) in user_read()
1564 if (p->policyvers >= POLICYDB_VERSION_BOUNDARY) in user_read()
1575 if (p->policyvers >= POLICYDB_VERSION_MLS) { in user_read()
1789 if (p->policyvers < POLICYDB_VERSION_BOUNDARY) in policydb_bounds_sanity_check()
1847 if (p->policyvers < POLICYDB_VERSION_MLS) in range_read()
1872 if (p->policyvers >= POLICYDB_VERSION_RANGETRANS) { in range_read()
2096 if (p->policyvers < POLICYDB_VERSION_FILENAME_TRANS) in filename_trans_read()
2104 if (p->policyvers < POLICYDB_VERSION_COMP_FTRANS) { in filename_trans_read()
2513 p->policyvers = le32_to_cpu(buf[0]); in policydb_read()
2514 if (p->policyvers < POLICYDB_VERSION_MIN || in policydb_read()
2515 p->policyvers > POLICYDB_VERSION_MAX) { in policydb_read()
2527 if (p->policyvers < POLICYDB_VERSION_MLS) { in policydb_read()
2530 p->policyvers); in policydb_read()
2537 if (p->policyvers >= POLICYDB_VERSION_POLCAP) { in policydb_read()
2543 if (p->policyvers >= POLICYDB_VERSION_PERMISSIVE) { in policydb_read()
2550 info = policydb_lookup_compat(p->policyvers); in policydb_read()
2554 p->policyvers); in policydb_read()
2605 if (p->policyvers >= POLICYDB_VERSION_BOOL) { in policydb_read()
2637 if (p->policyvers >= POLICYDB_VERSION_ROLETRANS) { in policydb_read()
2736 if (p->policyvers >= POLICYDB_VERSION_AVTAB) { in policydb_read()
2890 if (p->policyvers >= POLICYDB_VERSION_ROLETRANS) { in role_trans_write_one()
3068 if (p->policyvers >= in write_cons_helper()
3149 if (p->policyvers >= POLICYDB_VERSION_NEW_OBJECT_DEFAULTS) { in class_write()
3159 if (p->policyvers >= POLICYDB_VERSION_DEFAULT_TYPE) { in class_write()
3184 if (p->policyvers >= POLICYDB_VERSION_BOUNDARY) in role_write()
3223 if (p->policyvers >= POLICYDB_VERSION_BOUNDARY) { in type_write()
3264 if (p->policyvers >= POLICYDB_VERSION_BOUNDARY) in user_write()
3507 if (p->policyvers >= POLICYDB_VERSION_RANGETRANS) { in range_write_helper()
3634 if (p->policyvers < POLICYDB_VERSION_FILENAME_TRANS) in filename_trans_write()
3637 if (p->policyvers < POLICYDB_VERSION_COMP_FTRANS) { in filename_trans_write()
3676 if (p->policyvers < POLICYDB_VERSION_AVTAB) { in policydb_write()
3679 p->policyvers, POLICYDB_VERSION_AVTAB); in policydb_write()
3704 info = policydb_lookup_compat(p->policyvers); in policydb_write()
3708 p->policyvers); in policydb_write()
3712 buf[0] = cpu_to_le32(p->policyvers); in policydb_write()
3721 if (p->policyvers >= POLICYDB_VERSION_POLCAP) { in policydb_write()
3727 if (p->policyvers >= POLICYDB_VERSION_PERMISSIVE) { in policydb_write()