summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/bogons
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2023-09-14 11:42:16 +0200
committerFlorian Westphal <fw@strlen.de>2023-09-29 12:52:13 +0200
commit999ca7dade519ad5757f07a9c488b326a5e7d785 (patch)
tree5951bcb741c31159848b689ecb8580d8708f07ad /tests/shell/testcases/bogons
parent149b1c95d129f8ec8a3df16aeca0e9063e8d45bf (diff)
scanner: restrict include directive to regular files
Similar to previous change, also check all include "foo" and reject those if they refer to named fifos, block devices etc. Directories are still skipped, I don't think we can change this anymore. Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1664 Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/bogons')
-rw-r--r--tests/shell/testcases/bogons/nft-f/include-device1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/shell/testcases/bogons/nft-f/include-device b/tests/shell/testcases/bogons/nft-f/include-device
new file mode 100644
index 00000000..1eb79773
--- /dev/null
+++ b/tests/shell/testcases/bogons/nft-f/include-device
@@ -0,0 +1 @@
+include "/dev/null"