git: 32ec9d87ce9e - main - bpf/tests: Run tests in an execenv jail
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 12 Jan 2026 15:34:54 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=32ec9d87ce9e6328408036af921369b7bf30f00c
commit 32ec9d87ce9e6328408036af921369b7bf30f00c
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-01-12 15:27:26 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-01-12 15:34:43 +0000
bpf/tests: Run tests in an execenv jail
Otherwise the tests cannot be run in parallel since they create
identically named jails.
Fixes: dd49816b0d66 ("bpf: avoid panic on multiple readers")
---
tests/sys/net/bpf/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/sys/net/bpf/Makefile b/tests/sys/net/bpf/Makefile
index 641d1aaef676..cee27b550434 100644
--- a/tests/sys/net/bpf/Makefile
+++ b/tests/sys/net/bpf/Makefile
@@ -14,4 +14,7 @@ LIBADD.pcap-test+= pcap
ATF_TESTS_SH= bpf
+TEST_METADATA.bpf+= execenv="jail" \
+ execenv_jail_params="vnet allow.raw_sockets"
+
.include <bsd.test.mk>