From 5f5910ba3826435391d3e5b9ba9155376ec0b39d Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Fri, 28 Aug 2026 11:35:54 +0300 Subject: [PATCH] tests/sys/kern/pdwait: adjust test for the addition of CAP_PTRACE Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D58586 --- tests/sys/kern/pdwait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/kern/pdwait.c b/tests/sys/kern/pdwait.c index 8489dd4ef894..aae0891129e7 100644 --- a/tests/sys/kern/pdwait.c +++ b/tests/sys/kern/pdwait.c @@ -206,7 +206,7 @@ ATF_TC_BODY(enotcap, tc) CAP_ALL(&rights); cap_rights_clear(&rights, CAP_PDWAIT); - pid = pdfork(&fdp, 0); + pid = pdfork(&fdp, PD_PTRACE_CAP); if (pid == 0) _exit(42); ATF_REQUIRE_MSG(pid >= 0, "pdfork failed: %s", strerror(errno));