/external/selinux/policycoreutils/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 | 110 && p->policyvers < POLICYDB_VERSION_AVTAB); in avtab_write_item() 224 if ((p->policyvers < POLICYDB_VERSION_XPERMS_IOCTL) && in avtab_write_item() 227 "permissions rules and one was specified", p->policyvers); in avtab_write_item() 282 && p->policyvers < POLICYDB_VERSION_AVTAB); in avtab_write() 505 p->policyvers >= POLICYDB_VERSION_ROLETRANS); in role_trans_write() 660 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_write_bool() 687 && p->policyvers < POLICYDB_VERSION_AVTAB); in cond_write_av_list() 774 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_write_node() 823 if ((p->policyvers >= POLICYDB_VERSION_MLS in context_write() 825 || (p->policyvers >= MOD_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 | 1871 && p->policyvers >= POLICYDB_VERSION_MLS) in context_read_and_validate() 1873 && p->policyvers >= MOD_POLICYDB_VERSION_MLS)) { in context_read_and_validate() 2060 p->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES && in read_cons_helper() 2138 && p->policyvers >= POLICYDB_VERSION_VALIDATETRANS) in class_read() 2140 && p->policyvers >= MOD_POLICYDB_VERSION_VALIDATETRANS)) { in class_read() 2151 p->policyvers >= POLICYDB_VERSION_NEW_OBJECT_DEFAULTS) || in class_read() 2153 p->policyvers >= MOD_POLICYDB_VERSION_NEW_OBJECT_DEFAULTS)) { in class_read() 2163 p->policyvers >= POLICYDB_VERSION_DEFAULT_TYPE) || in class_read() 2165 p->policyvers >= MOD_POLICYDB_VERSION_DEFAULT_TYPE)) { in class_read() 2228 p->policyvers >= MOD_POLICYDB_VERSION_ROLEATTRIB) { in role_read() [all …]
|
D | conditional.c | 602 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_read_bool() 736 rc = avtab_read_item(fp, p->policyvers, &p->te_cond_avtab, in cond_read_av_list() 824 p->policyvers >= MOD_POLICYDB_VERSION_TUNABLE_SEP) { in cond_read_node()
|
D | services.c | 221 policydb->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES && in get_name_list()
|
D | expand.c | 2952 state.out->policyvers = POLICYDB_VERSION_MAX; in expand_module()
|
/external/selinux/secilc/ |
D | secilc.c | 92 int policyvers = POLICYDB_VERSION_MAX; in main() local 145 policyvers = strtol(optarg, &endptr, 10); in main() 150 if (policyvers > POLICYDB_VERSION_MAX || policyvers < POLICYDB_VERSION_MIN) { in main() 212 cil_set_policy_version(db, policyvers); in main() 260 int size = snprintf(NULL, 0, "policy.%d", policyvers); in main() 267 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 | 49 unsigned int policyvers = MOD_POLICYDB_VERSION_MAX; variable 117 p->policyvers = policyvers; in write_binary_policy() 196 policyvers = MOD_POLICYDB_VERSION_MAX; in main() 297 argv[0], policyvers, file); in main()
|
D | checkpolicy.h | 18 extern unsigned int policyvers;
|
D | checkpolicy.c | 103 unsigned int policyvers = POLICYDB_VERSION_MAX; variable 484 if (policyvers != n) in main() 485 policyvers = n; in main() 495 printf("%d (compatibility range %d-%d)\n", policyvers, in main() 621 policydb.policyvers = policyvers; in main() 626 argv[0], policyvers, outfile); 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 | 331 sh->conf->policyvers); in semanage_init_final_suffix()
|
D | direct_api.c | 1236 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 | 586 unsigned policyvers; member 750 && p->policyvers >= POLICYDB_VERSION_BOUNDARY) || \ 752 && p->policyvers >= MOD_POLICYDB_VERSION_BOUNDARY))
|
/external/libselinux/ |
D | Android.mk | 16 src/policyvers.c \
|
/external/selinux/checkpolicy/test/ |
D | dismod.c | 60 int policyvers = MOD_POLICYDB_VERSION_BASE; variable
|
/external/selinux/libselinux/ |
D | ChangeLog | 1180 * Merged policyvers errno patch from Chris PeBenito. 1212 * Add functions to provide access to enforce and policyvers.
|
/external/selinux/libsepol/ |
D | ChangeLog | 625 4) policydb_write uses the policy_type and policyvers from the
|
/external/selinux/libsepol/cil/src/ |
D | cil_binary.c | 2340 if (pdb->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES) { in __cil_constrain_expr_datum_to_sepol_expr() 3901 pdb->policyvers = db->policy_version; in __cil_policydb_create()
|