Re: [PATCH] audit: fix incomplete NETFILTER_PKT records and return void

From: Paul Moore

Date: Mon Nov 30 2026 - 19:42:13 EST


On Tue, Nov 17, 2026 at 8:35 AM jiangjiehua (A) <jiangjiehua1@xxxxxxxxxx> wrote:
>
> Separately, I changed the unknown protocol placeholder from "?" to "-1"
> because ausearch parses proto=? as proto=ip (strtoul("?") returns 0, and
> protocol 0 is "ip").

We should keep the kernel as-is with respect to "proto=?" when the
kernel is not able to determine the transport/upper-level protocol as
that is audit convention. From your description, I would suggest that
the ausearch behavior is a userspace bug; have you tried reporting it
to the audit userspace mailing list?

https://lists.linux-audit.osci.io/archives/list/linux-audit@xxxxxxxxxxxxxxxxxxxxxxxxx

--
paul-moore.com