Changes: https://ci.freebsd.org/job/FreeBSD-head-amd64-test/16605/ Output: https://ci.freebsd.org/job/FreeBSD-head-amd64-test/16605/testReport/junit/sys.capsicum/capsicum-test/main/ [ RUN ] OpenatTest.WithFlag /usr/src/contrib/capsicum-test/openat.cc:269: Failure Expected: (0) > (result), actual: 0 vs 59 /usr/src/contrib/capsicum-test/openat.cc:279: Failure Expected equality of these values: 93 (* __error()) Which is: 2 [ FAILED ] OpenatTest.WithFlag (11 ms) [ RUN ] ForkedOpenatTest_WithFlagInCapabilityMode._ /usr/src/contrib/capsicum-test/openat.cc:269: Failure Expected: (0) > (result), actual: 0 vs 60 /usr/src/contrib/capsicum-test/openat.cc:279: Failure Expected equality of these values: 93 (* __error()) Which is: 2 /usr/src/contrib/capsicum-test/openat.cc:357: Failure Expected equality of these values: 0 rc Which is: 1 [ FAILED ] ForkedOpenatTest_WithFlagInCapabilityMode._ (22 ms)
See BENEATH changes between r366015 and r366022
A commit references this bug: Author: lwhsu Date: Tue Oct 6 12:57:54 UTC 2020 New revision: 366485 URL: https://svnweb.freebsd.org/changeset/base/366485 Log: Temporarily skip failing test cases in CI: sys.capsicum.functional.ForkedOpenatTest_WithFlagInCapabilityMode___ sys.capsicum.functional.OpenatTest__WithFlag PR: 249960 Sponsored by: The FreeBSD Foundation Changes: head/tests/sys/capsicum/functional.sh
So one of the tests seems to behave as intended, where we escape the topping dir but return to it eventually. Another one, with changed error from ENOTCAPABLE to ENOENT while escaping, ought to be fixed. https://reviews.freebsd.org/D26695
A commit references this bug: Author: kib Date: Thu Oct 8 22:31:12 UTC 2020 New revision: 366549 URL: https://svnweb.freebsd.org/changeset/base/366549 Log: Do not allow to use O_BENEATH as an oracle. Specifically, if lookup() returned any error and the topping directory was not latched, which means that (non-existent) path did not returned to the topping location, give ENOTCAPABLE a priority over the lookup() error. PR: 249960 Reviewed by: emaste, ngie Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D26695 Changes: head/sys/kern/vfs_lookup.c