[PATCH v5 0/2] audit: improve NETFILTER_PKT records

Ricardo Robaina posted 2 patches 1 month, 1 week ago
There is a newer version of this series
include/linux/audit.h    |  12 +++++
kernel/audit.c           | 114 +++++++++++++++++++++++++++++++++++++++
net/netfilter/nft_log.c  |  43 ++-------------
net/netfilter/xt_AUDIT.c |  43 ++-------------
4 files changed, 134 insertions(+), 78 deletions(-)
[PATCH v5 0/2] audit: improve NETFILTER_PKT records
Posted by Ricardo Robaina 1 month, 1 week ago
Currently, NETFILTER_PKT records lack source and destination
port information, which is often valuable for troubleshooting.
This patch series adds ports numbers, to NETFILTER_PKT records.

The first patch refactors netfilter-related code, by moving
duplicated code to audit.c, creating two helper functions:
'audit_log_packet_ip4' and 'audit_log_packet_ip6'. 
The second one, improves the NETFILTER_PKT records, by 
including source and destination ports for protocols of
interest.

Ricardo Robaina (2):
  audit: add audit_log_packet_ip4 and audit_log_packet_ip6 helper
    functions
  audit: include source and destination ports to NETFILTER_PKT

 include/linux/audit.h    |  12 +++++
 kernel/audit.c           | 114 +++++++++++++++++++++++++++++++++++++++
 net/netfilter/nft_log.c  |  43 ++-------------
 net/netfilter/xt_AUDIT.c |  43 ++-------------
 4 files changed, 134 insertions(+), 78 deletions(-)

-- 
2.51.1
Re: [PATCH v5 0/2] audit: improve NETFILTER_PKT records
Posted by Florian Westphal 1 month, 1 week ago
Ricardo Robaina <rrobaina@redhat.com> wrote:
> Currently, NETFILTER_PKT records lack source and destination
> port information, which is often valuable for troubleshooting.
> This patch series adds ports numbers, to NETFILTER_PKT records.
> 
> The first patch refactors netfilter-related code, by moving
> duplicated code to audit.c, creating two helper functions:
> 'audit_log_packet_ip4' and 'audit_log_packet_ip6'. 
> The second one, improves the NETFILTER_PKT records, by 
> including source and destination ports for protocols of
> interest.

I'll assume this will go via audit tree, so:

Acked-by: Florian Westphal <fw@strlen.de>