a0108be6 | 12-Aug-2011 |
Jonathan Anderson <jonathan@FreeBSD.org> |
Test *at(2) calls with capability-mode lookup.
This commit adds regression testing for openat(), fstatat(), etc. with capability scoping ("strict relative" lookup), which applies: - in capability m
Test *at(2) calls with capability-mode lookup.
This commit adds regression testing for openat(), fstatat(), etc. with capability scoping ("strict relative" lookup), which applies: - in capability mode - when performing any *at() lookup relative to a capability
These tests will fail until the *at() code is committed; on my local instance, with the *at() changes, they all pass.
Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
show more ...
|
dbb202b3 | 11-Aug-2011 |
Jonathan Anderson <jonathan@FreeBSD.org> |
Use the right printf() format string without a cast to maxint_t.
As per kib's suggestion, we also change test_count from a size_t to an int; its value at the moment is 4, and we only expect it to go
Use the right printf() format string without a cast to maxint_t.
As per kib's suggestion, we also change test_count from a size_t to an int; its value at the moment is 4, and we only expect it to go up to 7.
Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
show more ...
|
b7f2d66a | 05-Aug-2011 |
Jonathan Anderson <jonathan@FreeBSD.org> |
Expect fchflags(2) to fail with EOPNOTSUPP on NFS.
Even if we have CAP_FCHFLAGS, fchflags(2) fails on NFS. This is normal and expected, so don't fail the test because of it.
Note that, whether or n
Expect fchflags(2) to fail with EOPNOTSUPP on NFS.
Even if we have CAP_FCHFLAGS, fchflags(2) fails on NFS. This is normal and expected, so don't fail the test because of it.
Note that, whether or not we are on NFS, fchflags(2) should always fail with ENOTCAPABLE if we are using a capability that does not have the CAP_FCHFLAGS right.
Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
show more ...
|
da749672 | 04-Aug-2011 |
Jonathan Anderson <jonathan@FreeBSD.org> |
Flesh out the cap_test regression test.
Add more regression testing, some of which is expected to fail until we commit more kernel implementation.
Approved by: re (kib), mentor (rwatson) Sponsored
Flesh out the cap_test regression test.
Add more regression testing, some of which is expected to fail until we commit more kernel implementation.
Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
show more ...
|