]> git.ipfire.org Git - thirdparty/linux.git/commit
apparmor: ensure labels with more than one entry have correct flags
authorJohn Johansen <john.johansen@canonical.com>
Fri, 19 Jan 2024 08:12:16 +0000 (00:12 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Sat, 18 Jan 2025 14:47:12 +0000 (06:47 -0800)
commitcd769b05cc87fb527dbab547e65b934b45705d6b
treef75630f95f98e0b2f0dd32a144c534f8a7deeaaf
parent0bc8c6862faaa80a2c89c73cc3936cbe2d35235c
apparmor: ensure labels with more than one entry have correct flags

labels containing more than one entry need to accumulate flag info
from profiles that the label is constructed from. This is done
correctly for labels created by a merge but is not being done for
labels created by an update or directly created via a parse.

This technically is a bug fix, however the effect in current code is
to cause early unconfined bail out to not happen (ie. without the fix
it is slower) on labels that were created via update or a parse.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/label.c