Commit ee2351e4 authored by John Johansen's avatar John Johansen

apparmor: track ns level so it can be used to help in view checks

Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent a71ada30
......@@ -204,6 +204,7 @@ static struct aa_ns *__aa_create_ns(struct aa_ns *parent, const char *name,
return ERR_PTR(error);
}
ns->parent = aa_get_ns(parent);
ns->level = parent->level + 1;
list_add_rcu(&ns->base.list, &parent->sub_ns);
/* add list ref */
aa_get_ns(ns);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment