Home
last modified time | relevance | path

Searched refs:policyvers (Results 1 – 23 of 23) sorted by relevance

/third_party/selinux/libsepol/src/
Dwrite.c49 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 …]
Dpolicydb_public.c102 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()
Dpolicydb.c2033 && 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 …]
Dpolicydb_validate.c57 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()
Doptimize.c447 if (p->policyvers >= POLICYDB_VERSION_AVTAB && p->policyvers <= POLICYDB_VERSION_PERMISSIVE) { in policydb_optimize()
Dconditional.c596 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()
Dlink.c2506 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()
Dkernel_to_conf.c3104 if (pdb->policyvers >= POLICYDB_VERSION_AVTAB && pdb->policyvers <= POLICYDB_VERSION_PERMISSIVE) { in sepol_kernel_policydb_to_conf()
Dkernel_to_cil.c3232 if (pdb->policyvers >= POLICYDB_VERSION_AVTAB && pdb->policyvers <= POLICYDB_VERSION_PERMISSIVE) { in sepol_kernel_policydb_to_cil()
Dservices.c219 policydb->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES && in get_name_list()
Dexpand.c2993 state.out->policyvers = POLICYDB_VERSION_MAX; in expand_module()
/third_party/selinux/secilc/
Dsecilc.c102 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/
Dcheckpolicy.c106 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()
Dcheckmodule.c47 unsigned int policyvers = MOD_POLICYDB_VERSION_MAX; variable
115 p->policyvers = policyvers; in write_binary_policy()
228 policyvers = n; in main()
Dcheckpolicy.h4 extern unsigned int policyvers;
/third_party/selinux/libsepol/tests/
Dtest-downgrade.c146 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/
Dsecilc-fuzzer.c24 int policyvers = POLICYDB_VERSION_MAX; in LLVMFuzzerTestOneInput() local
40 cil_set_policy_version(db, policyvers); in LLVMFuzzerTestOneInput()
/third_party/selinux/libselinux/utils/
D.gitignore16 policyvers
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h608 unsigned policyvers; member
798 && (p)->policyvers >= POLICYDB_VERSION_BOUNDARY) || \
800 && (p)->policyvers >= MOD_POLICYDB_VERSION_BOUNDARY))
/third_party/selinux/checkpolicy/test/
Ddismod.c59 int policyvers = MOD_POLICYDB_VERSION_BASE; variable
912 printf("Policy version: %d\n\n", policydb.policyvers); in main()
/third_party/selinux/
DBUILD.gn200 "$LIBSELINUX_ROOT_DIR/src/policyvers.c",
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c2593 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/
Dvmlinux.h54253 unsigned int policyvers; member