Home
last modified time | relevance | path

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

/external/selinux/semodule-utils/semodule_expand/
Dsemodule_expand.c27 int policyvers = 0; variable
76 policyvers = n; in main()
89 if (policyvers) in main()
90 printf("Building version %d policy\n", policyvers); in main()
159 if (policyvers) { in main()
160 if (sepol_policydb_set_vers(out, policyvers)) { in main()
162 policyvers); in main()
/external/selinux/libsepol/src/
Dwrite.c50 p->policyvers >= POLICYDB_VERSION_GLBLUB) || \
52 p->policyvers >= MOD_POLICYDB_VERSION_GLBLUB))
117 && p->policyvers < POLICYDB_VERSION_AVTAB); in avtab_write_item()
231 if ((p->policyvers < POLICYDB_VERSION_XPERMS_IOCTL) && in avtab_write_item()
234 "permissions rules and one was specified", p->policyvers); in avtab_write_item()
289 && p->policyvers < POLICYDB_VERSION_AVTAB); in avtab_write()
512 p->policyvers >= POLICYDB_VERSION_ROLETRANS); in role_trans_write()
608 if (p->policyvers < POLICYDB_VERSION_FILENAME_TRANS) in filename_trans_write()
682 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_write_bool()
709 && p->policyvers < POLICYDB_VERSION_AVTAB); in cond_write_av_list()
[all …]
Dpolicydb_public.c103 p->policyvers = POLICYDB_VERSION_MAX; in sepol_policydb_set_typevers()
107 p->policyvers = MOD_POLICYDB_VERSION_MAX; in sepol_policydb_set_typevers()
133 p->policyvers = vers; in sepol_policydb_set_vers()
Dpolicydb.c2039 && p->policyvers >= POLICYDB_VERSION_MLS) in context_read_and_validate()
2041 && p->policyvers >= MOD_POLICYDB_VERSION_MLS)) { in context_read_and_validate()
2226 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 …]
Dconditional.c599 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_read_bool()
733 rc = avtab_read_item(fp, p->policyvers, &p->te_cond_avtab, in cond_read_av_list()
821 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_read_node()
Dlink.c2553 if (mods[i]->policyvers > b->policyvers) { in link_modules()
2555 "Upgrading policy version from %u to %u\n", b->policyvers, mods[i]->policyvers); in link_modules()
2556 b->policyvers = mods[i]->policyvers; in link_modules()
Dservices.c222 policydb->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES && in get_name_list()
Dexpand.c2964 state.out->policyvers = POLICYDB_VERSION_MAX; in expand_module()
/external/selinux/secilc/
Dsecilc.c98 int policyvers = POLICYDB_VERSION_MAX; in main() local
158 policyvers = strtol(optarg, &endptr, 10); in main()
163 if (policyvers > POLICYDB_VERSION_MAX || policyvers < POLICYDB_VERSION_MIN) { in main()
250 cil_set_policy_version(db, policyvers); in main()
318 int size = snprintf(NULL, 0, "policy.%d", policyvers); in main()
325 if (snprintf(output, size + 1, "policy.%d", policyvers) != size) { in main()
/external/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()
/external/selinux/checkpolicy/
Dcheckmodule.c50 unsigned int policyvers = MOD_POLICYDB_VERSION_MAX; variable
118 p->policyvers = policyvers; in write_binary_policy()
226 policyvers = n; in main()
Dcheckpolicy.h4 extern unsigned int policyvers;
Dcheckpolicy.c109 unsigned int policyvers = POLICYDB_VERSION_MAX; variable
503 if (policyvers != n) in main()
504 policyvers = n; in main()
514 printf("%d (compatibility range %d-%d)\n", policyvers, in main()
653 policydb.policyvers = policyvers; in main()
/external/oss-fuzz/projects/selinux/
Dsecilc-fuzzer.c38 int policyvers = POLICYDB_VERSION_MAX; in LLVMFuzzerTestOneInput() local
53 cil_set_policy_version(db, policyvers); in LLVMFuzzerTestOneInput()
/external/selinux/libsemanage/src/
Dconf-parse.y142 current_conf->policyvers = atoi($3);
144 if (current_conf->policyvers < sepol_policy_kern_vers_min() ||
145 current_conf->policyvers > sepol_policy_kern_vers_max()) {
357 conf->policyvers = sepol_policy_kern_vers_max();
Dsemanage_conf.h37 int policyvers; /* version for server generated policies */ member
Dsemanage_store.c357 sh->conf->policyvers); in semanage_init_final_suffix()
Ddirect_api.c1408 cil_set_policy_version(cildb, sh->conf->policyvers); in semanage_direct_commit()
/external/selinux/libselinux/utils/
D.gitignore15 policyvers
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h605 unsigned policyvers; member
783 && p->policyvers >= POLICYDB_VERSION_BOUNDARY) || \
785 && p->policyvers >= MOD_POLICYDB_VERSION_BOUNDARY))
/external/selinux/checkpolicy/test/
Ddismod.c60 int policyvers = MOD_POLICYDB_VERSION_BASE; variable
911 printf("Policy version: %d\n\n", policydb.policyvers); in main()
/external/selinux/libselinux/
DAndroid.bp101 "src/policyvers.c",
/external/selinux/libsepol/cil/src/
Dcil_binary.c2476 if (pdb->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES) { in __cil_constrain_expr_datum_to_sepol_expr()
4104 pdb->policyvers = db->policy_version; in __cil_policydb_create()