libcasper: document that most libcasper functions are not thread-safeAnd neither are most libcasper services' functions, because internallythey all use cap_xfer_nvlist. cap_xfer_nvlist sends and
libcasper: document that most libcasper functions are not thread-safeAnd neither are most libcasper services' functions, because internallythey all use cap_xfer_nvlist. cap_xfer_nvlist sends and then receivesdata over a unix domain socket and associated with the cap_channel_targument. So absent synchronization, two threads may not use the samecap_channel_t argument or they risk receiving the other's reply.Sponsored by: AxcientReviewed by: oshogboDifferential Revision: https://reviews.freebsd.org/D42928(cherry picked from commit cf037972ea8863e2bab7461d77345367d2c1e054)
show more ...
libcasper: Neuter false positive -Wuse-after-free warnings from GCC 13GCC 13 incorrectly thinks a call to free after a failed realloc is ause after free.lib/libcasper/services/cap_grp/cap_grp.c:
libcasper: Neuter false positive -Wuse-after-free warnings from GCC 13GCC 13 incorrectly thinks a call to free after a failed realloc is ause after free.lib/libcasper/services/cap_grp/cap_grp.c: In function 'group_resize':lib/libcasper/services/cap_grp/cap_grp.c:65:17: error: pointer 'buf' may be used after 'realloc' [-Werror=use-after-free] 65 | free(buf); | ^~~~~~~~~lib/libcasper/services/cap_grp/cap_grp.c:63:19: note: call to 'realloc' here 63 | gbuffer = realloc(buf, gbufsize); | ^~~~~~~~~~~~~~~~~~~~~~Reviewed by: imp, emasteDifferential Revision: https://reviews.freebsd.org/D42576(cherry picked from commit b7f7cc25c01aeacaafb86ebcffdeb258b7933b08)
Remove $FreeBSD$: two-line nroff patternRemove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
Update/fix Makefile.depend for userland
libcasper: Move helper libraries from /lib/casper to /lib.These libraries are linked to directly by applications rather thanopened at runtime via dlopen().Discussed with: oshogboReviewed by: ma
libcasper: Move helper libraries from /lib/casper to /lib.These libraries are linked to directly by applications rather thanopened at runtime via dlopen().Discussed with: oshogboReviewed by: markj, emasteDifferential Revision: https://reviews.freebsd.org/D39245
cap_netdb: Fix description styleMFC after: 1 week
libcasper: Create a minimal cap_netdb serviceCreate a casper service for netdb functions.Initially only cap_getprotobyname is implemented.This is needed for capsicumizing sockstat.Reviewed by:
libcasper: Create a minimal cap_netdb serviceCreate a casper service for netdb functions.Initially only cap_getprotobyname is implemented.This is needed for capsicumizing sockstat.Reviewed by: oshogbo, bcr (manpages)Relnotes: yesDifferential Revision: https://reviews.freebsd.org/D24832