/external/selinux/semodule-utils/semodule_expand/ |
D | semodule_expand.c | 27 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/ |
D | write.c | 50 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 …]
|
D | policydb_public.c | 103 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()
|
D | policydb.c | 2039 && 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 …]
|
D | conditional.c | 599 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()
|
D | link.c | 2553 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()
|
D | services.c | 222 policydb->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES && in get_name_list()
|
D | expand.c | 2964 state.out->policyvers = POLICYDB_VERSION_MAX; in expand_module()
|
/external/selinux/secilc/ |
D | secilc.c | 98 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/ |
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()
|
/external/selinux/checkpolicy/ |
D | checkmodule.c | 50 unsigned int policyvers = MOD_POLICYDB_VERSION_MAX; variable 118 p->policyvers = policyvers; in write_binary_policy() 226 policyvers = n; in main()
|
D | checkpolicy.h | 4 extern unsigned int policyvers;
|
D | checkpolicy.c | 109 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/ |
D | secilc-fuzzer.c | 38 int policyvers = POLICYDB_VERSION_MAX; in LLVMFuzzerTestOneInput() local 53 cil_set_policy_version(db, policyvers); in LLVMFuzzerTestOneInput()
|
/external/selinux/libsemanage/src/ |
D | conf-parse.y | 142 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();
|
D | semanage_conf.h | 37 int policyvers; /* version for server generated policies */ member
|
D | semanage_store.c | 357 sh->conf->policyvers); in semanage_init_final_suffix()
|
D | direct_api.c | 1408 cil_set_policy_version(cildb, sh->conf->policyvers); in semanage_direct_commit()
|
/external/selinux/libselinux/utils/ |
D | .gitignore | 15 policyvers
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | policydb.h | 605 unsigned policyvers; member 783 && p->policyvers >= POLICYDB_VERSION_BOUNDARY) || \ 785 && p->policyvers >= MOD_POLICYDB_VERSION_BOUNDARY))
|
/external/selinux/checkpolicy/test/ |
D | dismod.c | 60 int policyvers = MOD_POLICYDB_VERSION_BASE; variable 911 printf("Policy version: %d\n\n", policydb.policyvers); in main()
|
/external/selinux/libselinux/ |
D | Android.bp | 101 "src/policyvers.c",
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 2476 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()
|