Lines Matching refs:mls
158 const char *mls = sepol_context_get_mls(record); in context_from_record() local
195 if (mls && !policydb->mls) { in context_from_record()
197 mls); in context_from_record()
199 } else if (!mls && policydb->mls) { in context_from_record()
203 if (mls && (mls_from_string(handle, policydb, mls, scontext) < 0)) in context_from_record()
208 if (mls) { in context_from_record()
211 user, role, type, mls); in context_from_record()
249 char *mls = NULL; in context_to_record() local
269 if (policydb->mls) { in context_to_record()
270 if (mls_to_string(handle, policydb, context, &mls) < 0) in context_to_record()
273 if (sepol_context_set_mls(handle, tmp_record, mls) < 0) in context_to_record()
277 free(mls); in context_to_record()
284 free(mls); in context_to_record()