]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
apparmor: unpack transition table if dfa is not present
authorGeorgia Garcia <georgia.garcia@canonical.com>
Mon, 10 Jun 2024 12:51:48 +0000 (09:51 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Aug 2024 07:01:08 +0000 (09:01 +0200)
commit7b2384f7ebbf6d8eb7bb276dafd4a3dc2f78131f
tree6b72f7d2cac60be601ea504624645a8a7b86262a
parentac2d19b9ba6c889528c8ab5762b19b0f25dc3804
apparmor: unpack transition table if dfa is not present

[ Upstream commit e0ff0cff1f6cdce0aa596aac04129893201c4162 ]

Due to a bug in earlier userspaces, a transition table may be present
even when the dfa is not. Commit 7572fea31e3e
("apparmor: convert fperm lookup to use accept as an index") made the
verification check more rigourous regressing old userspaces with
the bug. For compatibility reasons allow the orphaned transition table
during unpack and discard.

Fixes: 7572fea31e3e ("apparmor: convert fperm lookup to use accept as an index")
Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/apparmor/policy_unpack.c