summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2023-09-22 11:47:42 +0200
committerFlorian Westphal <fw@strlen.de>2023-09-22 11:53:48 +0200
commit10373f0936cd35de107d9e45e4151d98f9ca306f (patch)
tree458feaacbd2f5a2a2c926313a22a0b7fdf7f9b38 /tests
parent343006f5e0a6cdf907877218a354505dcc9d9864 (diff)
tests: shell: skip flowtable-uaf if we lack table owner support
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/shell/features/table_flag_owner.nft5
-rwxr-xr-xtests/shell/testcases/owner/0001-flowtable-uaf2
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/shell/features/table_flag_owner.nft b/tests/shell/features/table_flag_owner.nft
new file mode 100644
index 00000000..6e6f608a
--- /dev/null
+++ b/tests/shell/features/table_flag_owner.nft
@@ -0,0 +1,5 @@
+# 6001a930ce03 ("netfilter: nftables: introduce table ownership")
+# v5.12-rc1~200^2~6^2
+table t {
+ flag owner;
+}
diff --git a/tests/shell/testcases/owner/0001-flowtable-uaf b/tests/shell/testcases/owner/0001-flowtable-uaf
index 8b7a551c..c07e8d6a 100755
--- a/tests/shell/testcases/owner/0001-flowtable-uaf
+++ b/tests/shell/testcases/owner/0001-flowtable-uaf
@@ -1,5 +1,7 @@
#!/bin/bash
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_table_flag_owner)
+
set -e
$NFT -f - <<EOF