diff options
author | John Johansen <john.johansen@canonical.com> | 2025-06-14 13:49:02 -0700 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2025-07-15 22:39:43 -0700 |
commit | a30a9fdb66319466a7c76b455524d27c75d2b05b (patch) | |
tree | 27e5836d6979adef7799a31c282a03ae8c3efaef /security/apparmor/include/audit.h | |
parent | bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a (diff) |
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>
Diffstat (limited to 'security/apparmor/include/audit.h')
-rw-r--r-- | security/apparmor/include/audit.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/security/apparmor/include/audit.h b/security/apparmor/include/audit.h index 365bc67dd1509..1a71a94ea19c9 100644 --- a/security/apparmor/include/audit.h +++ b/security/apparmor/include/audit.h @@ -140,6 +140,10 @@ struct apparmor_audit_data { int type, protocol; void *addr; int addrlen; + struct { + void *addr; + int addrlen; + } peer; } net; }; }; |