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 ...
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
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
libcasper(3): Correct some warnings found by mandoc- inserting missing end of block: Sh breaks Bl- moving content out of list: Pp- missing comma before name: Nm cap_*- comma in function argument
libcasper(3): Correct some warnings found by mandoc- inserting missing end of block: Sh breaks Bl- moving content out of list: Pp- missing comma before name: Nm cap_*- comma in function argument: cap_*- skipping paragraph macro: Pp after Sh- sections out of conventional order: Sh AUTHORSReviewed by: bcrMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D31144
libcasper(3): Document HISTORY within the manpagesReviewed by: bcr (mentor)Approved by: bcr (mentor)MFC after: 7 daysDifferential Revision: https://reviews.freebsd.org/D24695
libcasper(3): Export functions to C++We must wrap C declarations in __BEGIN / __END_DECLS to avoid C++ name-manglingof the declaration when including the C header; name-mangling causes the linker
libcasper(3): Export functions to C++We must wrap C declarations in __BEGIN / __END_DECLS to avoid C++ name-manglingof the declaration when including the C header; name-mangling causes the linkerto attempt to locate the wrong (C++ ABI) symbol name.Reviewed by: markj, oshogbo (earlier version both)Differential Revision: https://reviews.freebsd.org/D24323
Update Makefile.depend filesUpdate a bunch of Makefile.depend files asa result of adding Makefile.depend.options filesReviewed by: bdreweryMFC after: 1 weekSponsored by: Juniper NetworksDi
Update Makefile.depend filesUpdate a bunch of Makefile.depend files asa result of adding Makefile.depend.options filesReviewed by: bdreweryMFC after: 1 weekSponsored by: Juniper NetworksDifferential Revision: https://reviews.freebsd.org/D22494
pkgbase: Move libcap_ to FreeBSD-runtimeA lot of binaries present in FreeBSD-runtime depend on it so movethe libs there.Reviewed by: bapt, gjbDifferential Revision: https://reviews.freebsd.org/
pkgbase: Move libcap_ to FreeBSD-runtimeA lot of binaries present in FreeBSD-runtime depend on it so movethe libs there.Reviewed by: bapt, gjbDifferential Revision: https://reviews.freebsd.org/D21501
r341692 changed cap_syslog(3) to preserve the stdio descriptors inheritedfrom its parent so that LOG_PERROR would work. However, this causeddhclient(8)'s stdio streams to remain open across daemon
r341692 changed cap_syslog(3) to preserve the stdio descriptors inheritedfrom its parent so that LOG_PERROR would work. However, this causeddhclient(8)'s stdio streams to remain open across daemonization, breakingthe ability to capture its foreground output as done in netconfig_ipv4.Fix this by reverting r341692 and instead passing the parent's stderrdescriptor as an argument to cap_openlog() only when LOG_PERROR is specifiedin logopt.PR: 234514Suggested by: markjReported by: Shawn WebbReviewed by: markj, oshogboMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D18989
Let the cap_syslog capability inherit stdio descriptors.Otherwise cap_openlog(LOG_PERROR) doesn't work.Reviewed by: oshogboMFC after: 1 weekSponsored by: The FreeBSD FoundationDifferential Rev
Let the cap_syslog capability inherit stdio descriptors.Otherwise cap_openlog(LOG_PERROR) doesn't work.Reviewed by: oshogboMFC after: 1 weekSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D18457
nv was moved to the 9 section.Fix reference to it.
Introduce channel flags in libcasper.Instead of passing flags (which describe a type of nvlist)every send/recv we remember them in channel.It's enough for use to extract them only during unwrap.
Introduce channel flags in libcasper.Instead of passing flags (which describe a type of nvlist)every send/recv we remember them in channel.It's enough for use to extract them only during unwrap.This simplify use of Casper.Reviewed by: bruffer@, bcr@ (both man page)Differential Revision: https://reviews.freebsd.org/D14196 (man page)
The name of the library is exactly the same like one of name the name of thefunctions.We should not create MLINKS for that one, because it's break a build.Submitted by: lwhsu@
Document the syslog Casper service.Reviewed by: bcr@Differential Revision: https://reviews.freebsd.org/D14084
Add SPDX tags for libcasper(3) and services.MFC after: 2 weeks
Introduce syslog service for Casper.syslog in libc secretly reconnects to the daemon.Another issue is that we don't have any information from openlog(3) if wesucceeded to open log or not so we do
Introduce syslog service for Casper.syslog in libc secretly reconnects to the daemon.Another issue is that we don't have any information from openlog(3) if wesucceeded to open log or not so we don't know if we are readyto enter cabability mode.Because all of that we decided we need a syslog service for Caspser.Reviewed by: bapt@Differential Revision: https://reviews.freebsd.org/D12824