]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: shell: skip secmark tests if kernel does not support it
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 Nov 2023 20:16:38 +0000 (21:16 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Nov 2023 09:14:10 +0000 (10:14 +0100)
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/features/secmark.nft [new file with mode: 0644]
tests/shell/testcases/json/0005secmark_objref_0

diff --git a/tests/shell/features/secmark.nft b/tests/shell/features/secmark.nft
new file mode 100644 (file)
index 0000000..ccbb572
--- /dev/null
@@ -0,0 +1,7 @@
+# fb961945457f ("netfilter: nf_tables: add SECMARK support")
+# v4.20-rc1~14^2~125^2~5
+table inet x {
+       secmark ssh_server {
+               "system_u:object_r:ssh_server_packet_t:s0"
+       }
+}
index 992d1b000d8654cdb6135a258ab985e12374caca..5c44f09337be1969ba7681bfc105b70c39c89776 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 # NFT_TEST_REQUIRES(NFT_TEST_HAVE_json)
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_secmark)
 
 set -e