Skip to content
Commit e1bbe4af authored by Phil Sutter's avatar Phil Sutter Committed by Greg Kroah-Hartman
Browse files

selftests: netfilter: Extend nft_audit.sh

[ Upstream commit 203bb9d3

 ]

Add tests for sets and elements and deletion of all kinds. Also
reorder rule reset tests: By moving the bulk rule add command up, the
two 'reset rules' tests become identical.

While at it, fix for a failing bulk rule add test's error status getting
lost due to its use in a pipe. Avoid this by using a temporary file.

Headings in diff output for failing tests contain no useful data, strip
them.

Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Stable-dep-of: 0d880dc6

 ("netfilter: nf_tables: Deduplicate nft_register_obj audit logs")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 82273f15
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment