| 0125d6a2 | 05-Dec-2023 |
Alan Somers <[email protected]> |
libcasper: document that most libcasper functions are not thread-safe
And neither are most libcasper services' functions, because internally they all use cap_xfer_nvlist. cap_xfer_nvlist sends and
libcasper: document that most libcasper functions are not thread-safe
And neither are most libcasper services' functions, because internally they all use cap_xfer_nvlist. cap_xfer_nvlist sends and then receives data over a unix domain socket and associated with the cap_channel_t argument. So absent synchronization, two threads may not use the same cap_channel_t argument or they risk receiving the other's reply.
Sponsored by: Axcient Reviewed by: oshogbo Differential Revision: https://reviews.freebsd.org/D42928
(cherry picked from commit cf037972ea8863e2bab7461d77345367d2c1e054)
show more ...
|
| 615bf03e | 30-Mar-2023 |
Mark Johnston <[email protected]> |
cap_dns tests: Convert to ATF, avoid failing when lookups don't resolve
The cap_dns tests require Internet access. Currently they fail when that's not available, which for CI purposes is undesirabl
cap_dns tests: Convert to ATF, avoid failing when lookups don't resolve
The cap_dns tests require Internet access. Currently they fail when that's not available, which for CI purposes is undesirable. Let's instead skip the tests if none of the non-casper name/addr lookups succeed.
To that end: - Convert the tests to ATF so that skipping is easier to implement. - Break up the tests into separate test cases. - If one of the system (i.e., non-casper) lookup functions fails, skip the test if all of them failed, otherwise fail the tests, since partial failure indicates something is flaky and deserves a closer look.
Reviewed by: oshogbo MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39241
show more ...
|