]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: skip flowtable-uaf if we lack table owner support
authorFlorian Westphal <fw@strlen.de>
Fri, 22 Sep 2023 09:47:42 +0000 (11:47 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 22 Sep 2023 09:53:48 +0000 (11:53 +0200)
Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/features/table_flag_owner.nft [new file with mode: 0644]
tests/shell/testcases/owner/0001-flowtable-uaf

diff --git a/tests/shell/features/table_flag_owner.nft b/tests/shell/features/table_flag_owner.nft
new file mode 100644 (file)
index 0000000..6e6f608
--- /dev/null
@@ -0,0 +1,5 @@
+# 6001a930ce03 ("netfilter: nftables: introduce table ownership")
+# v5.12-rc1~200^2~6^2
+table t {
+       flag owner;
+}
index 8b7a551cc69e9af005a0a3a11b12a53114aa4760..c07e8d6a0ab9a919530b88c6e892b5a5f0da2f44 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_table_flag_owner)
+
 set -e
 
 $NFT -f - <<EOF