/third_party/selinux/libsepol/src/ |
D | write.c | 49 p->policyvers >= POLICYDB_VERSION_GLBLUB) || \ 51 p->policyvers >= MOD_POLICYDB_VERSION_GLBLUB)) 116 && p->policyvers < POLICYDB_VERSION_AVTAB); in avtab_write_item() 230 if ((p->policyvers < POLICYDB_VERSION_XPERMS_IOCTL) && in avtab_write_item() 233 "permissions rules and one was specified", p->policyvers); in avtab_write_item() 288 && p->policyvers < POLICYDB_VERSION_AVTAB); in avtab_write() 511 p->policyvers >= POLICYDB_VERSION_ROLETRANS); in role_trans_write() 662 if (p->policyvers < POLICYDB_VERSION_FILENAME_TRANS) in filename_trans_write() 665 if (p->policyvers < POLICYDB_VERSION_COMP_FTRANS) { in filename_trans_write() 742 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_write_bool() [all …]
|
D | policydb_public.c | 102 p->policyvers = POLICYDB_VERSION_MAX; in sepol_policydb_set_typevers() 106 p->policyvers = MOD_POLICYDB_VERSION_MAX; in sepol_policydb_set_typevers() 132 p->policyvers = vers; in sepol_policydb_set_vers()
|
D | policydb.c | 2033 && p->policyvers >= POLICYDB_VERSION_MLS) in context_read_and_validate() 2035 && p->policyvers >= MOD_POLICYDB_VERSION_MLS)) { in context_read_and_validate() 2224 p->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES && in read_cons_helper() 2308 && p->policyvers >= POLICYDB_VERSION_VALIDATETRANS) in class_read() 2310 && p->policyvers >= MOD_POLICYDB_VERSION_VALIDATETRANS)) { in class_read() 2321 p->policyvers >= POLICYDB_VERSION_NEW_OBJECT_DEFAULTS) || in class_read() 2323 p->policyvers >= MOD_POLICYDB_VERSION_NEW_OBJECT_DEFAULTS)) { in class_read() 2333 p->policyvers >= POLICYDB_VERSION_DEFAULT_TYPE) || in class_read() 2335 p->policyvers >= MOD_POLICYDB_VERSION_DEFAULT_TYPE)) { in class_read() 2399 p->policyvers >= MOD_POLICYDB_VERSION_ROLEATTRIB) { in role_read() [all …]
|
D | policydb_validate.c | 57 if (p->policyvers < POLICYDB_VERSION_AVTAB || p->policyvers > POLICYDB_VERSION_PERMISSIVE) { in validate_array_init() 702 if (p->policyvers < POLICYDB_VERSION_AVTAB || p->policyvers > POLICYDB_VERSION_PERMISSIVE) { in validate_datum_array_gaps() 1436 if (p->policyvers < POLICYDB_VERSION_MIN || p->policyvers > POLICYDB_VERSION_MAX) in validate_properties() 1441 if (p->policyvers < MOD_POLICYDB_VERSION_MIN || p->policyvers > MOD_POLICYDB_VERSION_MAX) in validate_properties() 1505 if (p->policyvers >= POLICYDB_VERSION_BOOL) in policydb_validate() 1512 if (p->policyvers >= POLICYDB_VERSION_FILENAME_TRANS) in policydb_validate() 1541 if (p->policyvers >= POLICYDB_VERSION_AVTAB) { in policydb_validate()
|
D | optimize.c | 447 if (p->policyvers >= POLICYDB_VERSION_AVTAB && p->policyvers <= POLICYDB_VERSION_PERMISSIVE) { in policydb_optimize()
|
D | conditional.c | 596 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_read_bool() 720 rc = avtab_read_item(fp, p->policyvers, &p->te_cond_avtab, in cond_read_av_list() 807 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_read_node()
|
D | link.c | 2506 if (mods[i]->policyvers > b->policyvers) { in link_modules() 2508 "Upgrading policy version from %u to %u", b->policyvers, mods[i]->policyvers); in link_modules() 2509 b->policyvers = mods[i]->policyvers; in link_modules()
|
D | kernel_to_conf.c | 3104 if (pdb->policyvers >= POLICYDB_VERSION_AVTAB && pdb->policyvers <= POLICYDB_VERSION_PERMISSIVE) { in sepol_kernel_policydb_to_conf()
|
D | kernel_to_cil.c | 3232 if (pdb->policyvers >= POLICYDB_VERSION_AVTAB && pdb->policyvers <= POLICYDB_VERSION_PERMISSIVE) { in sepol_kernel_policydb_to_cil()
|
D | services.c | 219 policydb->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES && in get_name_list()
|
D | expand.c | 2993 state.out->policyvers = POLICYDB_VERSION_MAX; in expand_module()
|
/third_party/selinux/secilc/ |
D | secilc.c | 102 int policyvers = POLICYDB_VERSION_MAX; in main() local 163 policyvers = strtol(optarg, &endptr, 10); in main() 168 if (policyvers > POLICYDB_VERSION_MAX || policyvers < POLICYDB_VERSION_MIN) { in main() 261 cil_set_policy_version(db, policyvers); in main() 329 int size = snprintf(NULL, 0, "policy.%d", policyvers); in main() 336 if (snprintf(output, size + 1, "policy.%d", policyvers) != size) { in main()
|
/third_party/selinux/checkpolicy/ |
D | checkpolicy.c | 106 unsigned int policyvers = 0; variable 502 policyvers = n; in main() 516 policyvers ? policyvers : POLICYDB_VERSION_MAX , in main() 590 if (policydbp->policyvers <= POLICYDB_VERSION_PERMISSIVE) { in main() 591 if (policyvers > policydbp->policyvers) { in main() 593 } else if (policyvers) { in main() 594 policydbp->policyvers = policyvers; in main() 597 policydbp->policyvers = policyvers ? policyvers : POLICYDB_VERSION_MAX; in main() 641 policydbp->policyvers = policyvers ? policyvers : POLICYDB_VERSION_MAX; in main()
|
D | checkmodule.c | 47 unsigned int policyvers = MOD_POLICYDB_VERSION_MAX; variable 115 p->policyvers = policyvers; in write_binary_policy() 228 policyvers = n; in main()
|
D | checkpolicy.h | 4 extern unsigned int policyvers;
|
/third_party/selinux/libsepol/tests/ |
D | test-downgrade.c | 146 for (hi = policydb.policyvers; hi >= POLICYDB_VERSION_MIN; hi--) { in do_downgrade_test() 148 version = policydb.policyvers; in do_downgrade_test() 154 policydb.policyvers = lo; in do_downgrade_test() 184 policydb.policyvers = version; in do_downgrade_test()
|
/third_party/selinux/libsepol/fuzz/ |
D | secilc-fuzzer.c | 24 int policyvers = POLICYDB_VERSION_MAX; in LLVMFuzzerTestOneInput() local 40 cil_set_policy_version(db, policyvers); in LLVMFuzzerTestOneInput()
|
/third_party/selinux/libselinux/utils/ |
D | .gitignore | 16 policyvers
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 608 unsigned policyvers; member 798 && (p)->policyvers >= POLICYDB_VERSION_BOUNDARY) || \ 800 && (p)->policyvers >= MOD_POLICYDB_VERSION_BOUNDARY))
|
/third_party/selinux/checkpolicy/test/ |
D | dismod.c | 59 int policyvers = MOD_POLICYDB_VERSION_BASE; variable 912 printf("Policy version: %d\n\n", policydb.policyvers); in main()
|
/third_party/selinux/ |
D | BUILD.gn | 200 "$LIBSELINUX_ROOT_DIR/src/policyvers.c",
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_binary.c | 2593 if (pdb->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES) { in __cil_constrain_expr_datum_to_sepol_expr() 4323 pdb->policyvers = db->policy_version; in __cil_policydb_create()
|
/third_party/libbpf/.github/actions/build-selftests/ |
D | vmlinux.h | 54253 unsigned int policyvers; member
|