Home | History | Annotate | Download | only in src

Lines Matching refs:mls

12 #include "mls.h"
158 const char *mls = sepol_context_get_mls(record);
194 /* MLS */
195 if (mls && !policydb->mls) {
196 ERR(handle, "MLS is disabled, but MLS context \"%s\" found",
197 mls);
199 } else if (!mls && policydb->mls) {
200 ERR(handle, "MLS is enabled, but no MLS context found");
203 if (mls && (mls_from_string(handle, policydb, mls, scontext) < 0))
208 if (mls) {
211 user, role, type, mls);
249 char *mls = NULL;
269 if (policydb->mls) {
270 if (mls_to_string(handle, policydb, context, &mls) < 0)
273 if (sepol_context_set_mls(handle, tmp_record, mls) < 0)
277 free(mls);
284 free(mls);