]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: netfilter: Test nf_tables audit logging
authorPhil Sutter <phil@nwl.cc>
Wed, 13 Sep 2023 13:51:37 +0000 (15:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 20:03:02 +0000 (22:03 +0200)
commit598f66b0324e052d5181bd253f6b17f9fe206b04
tree4984388c7036ac0fb9b1866098eb269576f86580
parentf3c7e620b2affa921360b0765dc65fdca1cbb75c
selftests: netfilter: Test nf_tables audit logging

[ Upstream commit e8dbde59ca3fe925d0105bfb380e8429928b16dd ]

Compare NETFILTER_CFG type audit logs emitted from kernel upon ruleset
modifications against expected output.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Stable-dep-of: 0d880dc6f032 ("netfilter: nf_tables: Deduplicate nft_register_obj audit logs")
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/netfilter/.gitignore
tools/testing/selftests/netfilter/Makefile
tools/testing/selftests/netfilter/audit_logread.c [new file with mode: 0644]
tools/testing/selftests/netfilter/config
tools/testing/selftests/netfilter/nft_audit.sh [new file with mode: 0755]