/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 | 112 && p->policyvers < POLICYDB_VERSION_AVTAB); in avtab_write_item() 226 if ((p->policyvers < POLICYDB_VERSION_XPERMS_IOCTL) && in avtab_write_item() 229 "permissions rules and one was specified", p->policyvers); in avtab_write_item() 284 && p->policyvers < POLICYDB_VERSION_AVTAB); in avtab_write() 507 p->policyvers >= POLICYDB_VERSION_ROLETRANS); in role_trans_write() 603 if (p->policyvers < POLICYDB_VERSION_FILENAME_TRANS) in filename_trans_write() 677 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_write_bool() 704 && p->policyvers < POLICYDB_VERSION_AVTAB); in cond_write_av_list() 791 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_write_node() 840 if ((p->policyvers >= POLICYDB_VERSION_MLS in context_write() [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 | 2021 && p->policyvers >= POLICYDB_VERSION_MLS) in context_read_and_validate() 2023 && p->policyvers >= MOD_POLICYDB_VERSION_MLS)) { in context_read_and_validate() 2208 p->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES && in read_cons_helper() 2290 && p->policyvers >= POLICYDB_VERSION_VALIDATETRANS) in class_read() 2292 && p->policyvers >= MOD_POLICYDB_VERSION_VALIDATETRANS)) { in class_read() 2303 p->policyvers >= POLICYDB_VERSION_NEW_OBJECT_DEFAULTS) || in class_read() 2305 p->policyvers >= MOD_POLICYDB_VERSION_NEW_OBJECT_DEFAULTS)) { in class_read() 2315 p->policyvers >= POLICYDB_VERSION_DEFAULT_TYPE) || in class_read() 2317 p->policyvers >= MOD_POLICYDB_VERSION_DEFAULT_TYPE)) { in class_read() 2381 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 | 2581 if (mods[i]->policyvers > b->policyvers) { in link_modules() 2583 "Upgrading policy version from %u to %u\n", b->policyvers, mods[i]->policyvers); in link_modules() 2584 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 | 3007 state.out->policyvers = POLICYDB_VERSION_MAX; in expand_module()
|
/external/selinux/secilc/ |
D | secilc.c | 97 int policyvers = POLICYDB_VERSION_MAX; in main() local 155 policyvers = strtol(optarg, &endptr, 10); in main() 160 if (policyvers > POLICYDB_VERSION_MAX || policyvers < POLICYDB_VERSION_MIN) { in main() 244 cil_set_policy_version(db, policyvers); in main() 298 int size = snprintf(NULL, 0, "policy.%d", policyvers); in main() 305 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() 197 policyvers = MOD_POLICYDB_VERSION_MAX; in main()
|
D | checkpolicy.h | 18 extern unsigned int policyvers;
|
D | checkpolicy.c | 109 unsigned int policyvers = POLICYDB_VERSION_MAX; variable 498 if (policyvers != n) in main() 499 policyvers = n; in main() 509 printf("%d (compatibility range %d-%d)\n", policyvers, in main() 635 policydb.policyvers = policyvers; in main()
|
/external/selinux/libsemanage/src/ |
D | conf-parse.y | 141 current_conf->policyvers = atoi($3); 143 if (current_conf->policyvers < sepol_policy_kern_vers_min() || 144 current_conf->policyvers > sepol_policy_kern_vers_max()) { 345 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 | 604 unsigned policyvers; member 778 && p->policyvers >= POLICYDB_VERSION_BOUNDARY) || \ 780 && p->policyvers >= MOD_POLICYDB_VERSION_BOUNDARY))
|
/external/selinux/libselinux/ |
D | Android.bp | 70 "src/policyvers.c",
|
/external/selinux/checkpolicy/test/ |
D | dismod.c | 60 int policyvers = MOD_POLICYDB_VERSION_BASE; variable
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 2537 if (pdb->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES) { in __cil_constrain_expr_datum_to_sepol_expr() 4189 pdb->policyvers = db->policy_version; in __cil_policydb_create()
|