Files
linux-stable-mirror/include/linux
Ricardo RobainaandGreg Kroah-Hartman 71da3b660b audit: add audit_log_nf_skb helper function
[ Upstream commit f19590b07c ]

Netfilter code (net/netfilter/nft_log.c and net/netfilter/xt_AUDIT.c)
have to be kept in sync. Both source files had duplicated versions of
audit_ip4() and audit_ip6() functions, which can result in lack of
consistency and/or duplicated work.

This patch adds a helper function in audit.c that can be called by
netfilter code commonly, aiming to improve maintainability and
consistency.

Suggested-by: Florian Westphal <fw@strlen.de>
Suggested-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Ricardo Robaina <rrobaina@redhat.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Stable-dep-of: 65dfde57d1 ("audit: fix potential integer overflow in audit_log_n_hex()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-24 15:55:17 +02:00
..
2026-03-04 07:19:30 -05:00
2025-09-11 17:19:15 +02:00
2026-07-24 15:54:27 +02:00
2026-07-24 15:54:17 +02:00
2026-01-11 15:19:01 +01:00
2026-07-24 15:55:16 +02:00
2026-01-11 15:18:35 +01:00
2026-06-01 17:39:24 +02:00
2026-06-19 13:37:20 +02:00
2026-01-11 15:18:48 +01:00
2026-01-11 15:19:13 +01:00