apparmor: fix: accept2 being specifie even when permission table is presnt
authorJohn Johansen <john.johansen@canonical.com>
Thu, 22 May 2025 20:54:05 +0000 (13:54 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 20 Jul 2025 09:31:13 +0000 (02:31 -0700)
commit4d9d1a08b796efd54f1e29b42bd95879109fe448
treec5932a04c5d4dd9d3730378e891cf31331b2ed25
parent9afdc6abb007d5a86f54e9f10870ac1468155ca5
apparmor: fix: accept2 being specifie even when permission table is presnt

The transition to the perms32 permission table dropped the need for
the accept2 table as permissions. However accept2 can be used for
flags and may be present even when the perms32 table is present. So
instead of checking on version, check whether the table is present.

Fixes: 2e12c5f06017 ("apparmor: add additional flags to extended permission.")
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/policy_unpack.c