]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
apparmor: fix af_unix auditing to include all address information
authorJohn Johansen <john.johansen@canonical.com>
Sat, 14 Jun 2025 20:49:02 +0000 (13:49 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 16 Jul 2025 05:39:43 +0000 (22:39 -0700)
commita30a9fdb66319466a7c76b455524d27c75d2b05b
tree27e5836d6979adef7799a31c282a03ae8c3efaef
parentbc6e5f6933b8e7b74858ac830d5b9b4ca10a099a
apparmor: fix af_unix auditing to include all address information

The auditing of addresses currently doesn't include the source address
and mixes source and foreign/peer under the same audit name. Fix this
so source is always addr, and the foreign/peer is peer_addr.

Fixes: c05e705812d1 ("apparmor: add fine grained af_unix mediation")
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/af_unix.c
security/apparmor/include/audit.h
security/apparmor/net.c