apparmor: Fix regression in stacking due to label flags
authorJohn Johansen <john.johansen@canonical.com>
Tue, 20 Sep 2022 11:01:28 +0000 (04:01 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 3 Oct 2022 21:49:04 +0000 (14:49 -0700)
commit1f939c6bd1512d0b39b470396740added3cb403f
tree8d165321dc116b94fa4bbed1cd1dee7157af75e5
parent961f3e3de14467f3babe252f7b6cc44a36ebba64
apparmor: Fix regression in stacking due to label flags

The unconfined label flag is not being computed correctly. It
should only be set if all the profiles in the vector are set, which
is different than what is required for the debug and stale flag
that are set if any on the profile flags are set.

Fixes: c1ed5da19765 ("apparmor: allow label to carry debug flags")
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/label.c