]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
capsicum-test: Update for O_BENEATH removal
authorAlex Richardson <arichardson@FreeBSD.org>
Fri, 12 Mar 2021 17:12:10 +0000 (17:12 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Wed, 17 Mar 2021 22:22:50 +0000 (22:22 +0000)
commitc4a6d3b183af4f34ddd7637eeb8e2ad2008f914c
treeb613c1b8ee37927eea42fbd8d967deac01bfca55
parent61271e7bba67be5bff350c2ab88eed25d46ca061
capsicum-test: Update for O_BENEATH removal

Update the tests to check O_RESOLVE_BENEATH instead.
If this looks reasonable, I'll try to upstream this change.
This keeps a compat fallback for O_BENEATH since the Linux port still
has/had O_BENEATH with "no .., no absolute paths" semantics.

Test Plan: `/usr/tests/sys/capsicum/capsicum-test -u 977` passes and
runs the O_RESOLVE_BENEATH tests.
Reviewed By: markj
Differential Revision: https://reviews.freebsd.org/D29016

(cherry picked from commit 8cf5812af4b7f4933983822ff8e1e9185818fbef)
contrib/capsicum-test/openat.cc