]> www.infradead.org Git - users/hch/block.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)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 24 Jul 2024 18:15:06 +0000 (11:15 -0700)
commite0ff0cff1f6cdce0aa596aac04129893201c4162
tree0761b1736f77a2e9ca2ee7dbd1eaa8b5c166bf15
parentf4fee216df7d28b87d1c9cc60bcebfecb51c1a05
apparmor: unpack transition table if dfa is not present

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>
security/apparmor/policy_unpack.c