HomeFreeBSD

syslogd: Refresh configuration using libcasper

Description

syslogd: Refresh configuration using libcasper

When a SIGHUP signal is sent to syslogd, the configuration is reparsed,
leading to new resource acquisition.

If syslogd is running in capability mode and a SIGHUP is received, new
resources cannot be acquired. To mitigate this issue, libcasper is used
to parse the configuration.

The libcasper process runs outside of capability mode and is capable of
parsing syslogd's configuration and obtaining new resources. These
resources are then sent to the syslogd process via nvlist.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D41464

Details

Provenance
jfreeAuthored on Nov 27 2024, 10:25 PM
Reviewer
markj
Differential Revision
D41464: syslogd: Refresh configuration using libcasper
Parents
rGad607893c9a3: syslogd: Use anonymous union in struct filed
Branches
Unknown
Tags
Unknown