HomeFreeBSD

libcasper: document that most libcasper functions are not thread-safe

Description

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.

MFC after: 2 weeks
Sponsored by: Axcient
Reviewed by: oshogbo
Differential Revision: https://reviews.freebsd.org/D42928

Details

Provenance
asomersAuthored on Dec 5 2023, 11:24 PM
Reviewer
oshogbo
Differential Revision
D42928: casper: document that most libcasper and cap_net functions are not thread-safe
Parents
rG3494f7c019fc: Notable upstream pull request merges:
Branches
Unknown
Tags
Unknown