I'm not convinced this behaviour is correct. I feel like cap_enter()
should have the same effect whether O_BENEATH is passed or not.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 37022 Build 33911: arc lint + arc unit
Event Timeline
Comment Actions
I'm not convinced this behaviour is correct.
It is not. In capability mode we must return ENOTCAPABLE for openat(sub_fd, "../subdir/...", ...)
Comment Actions
I'll submit the contrib/capsicum-test/capsicum-test.h debugging changes upstream and will close this once the kernel has been updated.
I guess adding the extra EXPECT_FAIL checks also makes sense upstream.
Comment Actions
I am not sure what is going on with this test. With patched kernel I see faiures on open of relative symlinks that go out of the topping directory, as I would suppose things should work. But the tests are not marked for failure.
Anyway, please see D28698 D28699. I believe a discussion of how to proceed is required.