This test case was skipped before because it was not running with root. https://ci.freebsd.org/job/FreeBSD-head-amd64-test/16739/testReport/junit/sys.capsicum/functional/Pdfork__OtherUserForked/ /usr/src/contrib/capsicum-test/procdesc.cc:538: Failure Expected equality of these values: -1 kill(pid, 9) Which is: 0 /usr/src/contrib/capsicum-test/procdesc.cc:539: Failure Expected equality of these values: 1 (* __error()) Which is: 2 /usr/src/contrib/capsicum-test/procdesc.cc:540: Failure Value of: state == 'R' || state == 'S' Actual: false Expected: true pid 22844 in state Z /usr/src/contrib/capsicum-test/procdesc.cc:522: Failure Expected equality of these values: 0 rc Which is: 1
A commit references this bug: Author: lwhsu Date: Wed Oct 7 09:53:25 UTC 2020 New revision: 366512 URL: https://svnweb.freebsd.org/changeset/base/366512 Log: Temporarily skip failing test cases in CI: sys.capsicum.functional.Capability__NoBypassDAC sys.capsicum.functional.Pdfork__OtherUserForked PR: 250178, 250179 Sponsored by: The FreeBSD Foundation Changes: head/tests/sys/capsicum/functional.sh
Failing case: 533 // Now that the second process has been pdfork()ed, change euid. 534 setuid(other_uid); 535 if (verbose) fprintf(stderr, "uid=%d euid=%d\n", getuid(), geteuid()); 536 537 // Fail to kill child with normal PID operation. 538 EXPECT_EQ(-1, kill(pid, SIGKILL)); 539 EXPECT_EQ(EPERM, errno); 540 EXPECT_PID_ALIVE(pid); 541 542 // Succeed with pdkill though. 543 EXPECT_OK(pdkill(pd, SIGKILL)); 544 EXPECT_PID_ZOMBIE(pid);
Fixed in https://github.com/google/capsicum-test/commit/906d578a00efb15ab7aa79b69121bc783045ad79 and committed to src in https://cgit.freebsd.org/src/commit/?id=955a3f9ad586f38395e66127f9f2f4afbf3d5a94