apparmor: fix dbus permission queries to v9 ABI
authorJohn Johansen <john.johansen@canonical.com>
Fri, 17 Jan 2025 13:02:33 +0000 (05:02 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Sat, 18 Jan 2025 14:47:13 +0000 (06:47 -0800)
commite6b087676954e36a7b1ed51249362bb499f8c1c2
treed79f4c0f66dc4f0c4a9bb1435c4e26aa7f6270ef
parentdcd7a559411e8e1cd627ad20ac70faee77329380
apparmor: fix dbus permission queries to v9 ABI

dbus permission queries need to be synced with fine grained unix
mediation to avoid potential policy regressions. To ensure that
dbus queries don't result in a case where fine grained unix mediation
is not being applied but dbus mediation is check the loaded policy
support ABI and abort the query if policy doesn't support the
v9 ABI.

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