2567168dc4
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
58 lines
905 B
Makefile
58 lines
905 B
Makefile
.include <src.opts.mk>
|
|
|
|
.PATH: ${SRCTOP}/usr.bin/wall
|
|
|
|
PACKAGE= syslogd
|
|
|
|
CONFGROUPS= CONFS SYSLOGD_D
|
|
CONFS= syslog.conf
|
|
PROG= syslogd
|
|
MAN= syslog.conf.5 syslogd.8
|
|
SRCS= syslogd.c ttymsg.c
|
|
SYSLOGD_DPACAKGE= syslogd
|
|
|
|
LIBADD= util
|
|
|
|
.if ${MK_CASPER} != "no"
|
|
SRCS+= syslogd_cap.c \
|
|
syslogd_cap_config.c
|
|
CFLAGS+= -DWITH_CASPER
|
|
LIBADD+= cap_net casper nv
|
|
.endif
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
CFLAGS+= -DINET
|
|
.endif
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
CFLAGS+= -DINET6
|
|
.endif
|
|
|
|
SYSLOGD_D=
|
|
SYSLOGD_DDIR= /etc/syslog.d
|
|
.if ${MK_FTP} != "no"
|
|
CONFGROUPS+= FTP
|
|
FTP+= ftp.conf
|
|
FTPDIR= /etc/syslog.d
|
|
FTPPACKAGE= ftpd
|
|
.endif
|
|
|
|
.if ${MK_LPR} != "no"
|
|
CONFGROUPS+= LP
|
|
LP+= lpr.conf
|
|
LPDIR= /etc/syslog.d
|
|
LPPACKAGE= lp
|
|
.endif
|
|
|
|
.if ${MK_PPP} != "no"
|
|
CONFGROUPS+= PPP
|
|
PPP+= ppp.conf
|
|
PPPDIR= /etc/syslog.d
|
|
PPPPACKAGE= ppp
|
|
.endif
|
|
|
|
CFLAGS+= -I${SRCTOP}/usr.bin/wall
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.include <bsd.prog.mk>
|