@@ -229,10 +229,7 @@ static struct aa_namespace *aa_alloc_namespace(const char *name)
INIT_LIST_HEAD(&ns->sub_ns);
rwlock_init(&ns->lock);
- /*
- * null profile is not added to the profile list,
- * released by aa_free_namespace
- */
+ /* released by aa_free_namespace */
ns->unconfined = aa_alloc_profile("unconfined");
if (!ns->unconfined)
goto fail_unconfined;
@@ -631,7 +628,7 @@ struct aa_profile *aa_new_null_profile(struct aa_profile *parent, int hat)
profile->sid = sid;
profile->mode = APPARMOR_COMPLAIN;
- profile->flags = PFLAG_NULL | PFLAG_NO_LIST_REF;
+ profile->flags = PFLAG_NULL;
if (hat)
profile->flags |= PFLAG_HAT;