]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: x_tables: allow initial table replace without emitting audit log message
authorFlorian Westphal <fw@strlen.de>
Wed, 6 May 2026 10:07:13 +0000 (12:07 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 7 May 2026 23:30:16 +0000 (01:30 +0200)
commit8e72510db9fa2d41f2b06d5c01fe9020e076fee4
treed61d53a9b6439981dbc8fa8cc829f645109ceb11
parentfcee7d82f27d6a8b1ddc5bbefda59b4e441e9bc0
netfilter: x_tables: allow initial table replace without emitting audit log message

At the moment we emit the audit log a bit too early, which makes it
necessary to also emit an unregister log in case we have to unwind
errors after possible hook register failure.

Followup patch will be slightly simpler if we can delay the
register message until after the hooks have been wired up.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/x_tables.c