]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: add cgroupv2 socket match test case
authorFlorian Westphal <fw@strlen.de>
Thu, 2 Jan 2025 17:08:30 +0000 (18:08 +0100)
committerFlorian Westphal <fw@strlen.de>
Mon, 6 Jan 2025 09:56:51 +0000 (10:56 +0100)
commit9fbc77c127e7d55e02f7f8a13f5ed003be8f51aa
tree9bd423aa8697c598dad84a0f9b47c6efa9809587
parente1b351300215d45a3f5a3f720e0001ec3091805a
tests: shell: add cgroupv2 socket match test case

This is a test case for nft_socket cgroupv2 matching, including
support for matching inside a cgroupv2 mount space added in kernel
commit 7f3287db6543 ("netfilter: nft_socket: make cgroupsv2 matching work with namespaces").

Test is thus run twice, once in the initial namespace and once with
a changed cgroupv2 root.

In case we can't create a cgroup or the 2nd half (unshared re-run)
fails, indicate SKIP.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/packetpath/cgroupv2 [new file with mode: 0755]
tests/shell/testcases/packetpath/dumps/cgroupv2.nodump [new file with mode: 0644]