|
@@ -903,6 +903,10 @@ struct aa_profile *aa_lookup_profile(struct aa_namespace *ns, const char *hname)
|
|
profile = aa_get_profile(__lookup_profile(&ns->base, hname));
|
|
profile = aa_get_profile(__lookup_profile(&ns->base, hname));
|
|
read_unlock(&ns->lock);
|
|
read_unlock(&ns->lock);
|
|
|
|
|
|
|
|
+ /* the unconfined profile is not in the regular profile list */
|
|
|
|
+ if (!profile && strcmp(hname, "unconfined") == 0)
|
|
|
|
+ profile = aa_get_profile(ns->unconfined);
|
|
|
|
+
|
|
/* refcount released by caller */
|
|
/* refcount released by caller */
|
|
return profile;
|
|
return profile;
|
|
}
|
|
}
|