Home | History | Annotate | Download | only in src

Lines Matching refs:policydb

30 #include <sepol/policydb/policydb.h>
31 #include <sepol/policydb/services.h>
32 #include <sepol/policydb/flask.h>
33 #include <sepol/policydb/context.h>
43 const policydb_t * policydb,
50 int len = mls_compute_context_len(policydb, mls) + 1;
61 mls_sid_to_context(policydb, mls, &ptr);
79 const policydb_t * policydb,
88 if (mls_context_to_sid(policydb, '$', &tmp_cp, mls) < 0) {
109 int mls_compute_context_len(const policydb_t * policydb,
116 if (!policydb->mls)
123 strlen(policydb->
135 strlen(policydb->p_cat_val_to_name[i]) + 1;
140 strlen(policydb->
148 len += strlen(policydb->p_cat_val_to_name[i - 1]) + 1;
167 void mls_sid_to_context(const policydb_t * policydb,
175 if (!policydb->mls)
187 policydb->p_sens_val_to_name[context->range.level[l].
190 strlen(policydb->
207 policydb->p_cat_val_to_name[i]);
209 strlen(policydb->p_cat_val_to_name[i]);
219 policydb->p_cat_val_to_name[i -
222 strlen(policydb->
235 strcpy(scontextp, policydb->p_cat_val_to_name[i - 1]);
236 scontextp += strlen(policydb->p_cat_val_to_name[i - 1]);
329 int mls_context_to_sid(const policydb_t * policydb,
339 if (!policydb->mls)
357 (level_datum_t *) hashtab_search(policydb->p_levels.table,
382 (cat_datum_t *) hashtab_search(policydb->
399 hashtab_search(policydb->p_cats.
605 int mls_compute_sid(policydb_t * policydb,
612 if (!policydb->mls)
618 for (rtr = policydb->range_tr; rtr; rtr = rtr->next) {
652 sepol_policydb_t * policydb,
664 if (mls_from_string(handle, &policydb->p, mls1, ctx1) < 0)
667 if (mls_from_string(handle, &policydb->p, mls2, ctx2) < 0)
691 sepol_policydb_t * policydb, const char *mls)
703 ret = mls_from_string(handle, &policydb->p, mls, con);