Home
last modified time | relevance | path

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

/external/selinux/policycoreutils/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.c110 && 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 …]
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.c1871 && 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 …]
Dconditional.c602 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()
Dservices.c221 policydb->policyvers >= POLICYDB_VERSION_CONSTRAINT_NAMES && in get_name_list()
Dexpand.c2952 state.out->policyvers = POLICYDB_VERSION_MAX; in expand_module()
/external/selinux/secilc/
Dsecilc.c92 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/
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.c49 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()
Dcheckpolicy.h18 extern unsigned int policyvers;
Dcheckpolicy.c103 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/
Dconf-parse.y141 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();
Dsemanage_conf.h37 int policyvers; /* version for server generated policies */ member
Dsemanage_store.c331 sh->conf->policyvers); in semanage_init_final_suffix()
Ddirect_api.c1236 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.h586 unsigned policyvers; member
750 && p->policyvers >= POLICYDB_VERSION_BOUNDARY) || \
752 && p->policyvers >= MOD_POLICYDB_VERSION_BOUNDARY))
/external/libselinux/
DAndroid.mk16 src/policyvers.c \
/external/selinux/checkpolicy/test/
Ddismod.c60 int policyvers = MOD_POLICYDB_VERSION_BASE; variable
/external/selinux/libselinux/
DChangeLog1180 * Merged policyvers errno patch from Chris PeBenito.
1212 * Add functions to provide access to enforce and policyvers.
/external/selinux/libsepol/
DChangeLog625 4) policydb_write uses the policy_type and policyvers from the
/external/selinux/libsepol/cil/src/
Dcil_binary.c2340 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()