Lines Matching defs:mls
40 #include "mls.h"
44 const context_struct_t * mls, char **str)
50 int len = mls_compute_context_len(policydb, mls) + 1;
61 mls_sid_to_context(policydb, mls, &ptr);
70 ERR(handle, "out of memory, could not convert mls context to string");
80 const char *str, context_struct_t * mls)
88 if (mls_context_to_sid(policydb, '$', &tmp_cp, mls) < 0) {
101 ERR(handle, "could not construct mls context structure");
116 if (!policydb->mls)
175 if (!policydb->mls)
267 if (!p->mls)
339 if (!policydb->mls)
510 context_struct_t * usercon, int mls)
512 if (mls) {
561 if (!oldp->mls)
614 if (!policydb->mls)
697 ERR(handle, "could not check if mls context %s contains %s",
707 const sepol_policydb_t * policydb, const char *mls)
714 "mls context %s is valid", mls);
719 ret = mls_from_string(handle, &policydb->p, mls, con);