From 76f4db8655d7a4a42cd58874aba187d65de568d6 Mon Sep 17 00:00:00 2001 From: Anil Madhavapeddy Date: Thu, 31 Jul 2003 18:20:08 +0000 Subject: Privilege separated syslog daemon. The child listening to log requests drops to user _syslogd and chroots itself, while the privileged parent grants it access to open logfiles and other calls it needs. The only difference from existing behaviour is that if syslog.conf changes and syslogd receives a HUP, it will re-exec itself and have two new PIDs. A HUP with an unchanged config will make syslogd reopen logfiles as before. Lots of help and code from deraadt@ , and advice from millert@ Various versions tested by todd, cloder, mpech, markus, tdeval and others --- usr.sbin/syslogd/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.sbin/syslogd/Makefile') diff --git a/usr.sbin/syslogd/Makefile b/usr.sbin/syslogd/Makefile index 8c9d47e4278..2cefbabc26a 100644 --- a/usr.sbin/syslogd/Makefile +++ b/usr.sbin/syslogd/Makefile @@ -1,8 +1,7 @@ -# $OpenBSD: Makefile,v 1.3 1997/09/21 11:44:29 deraadt Exp $ +# $OpenBSD: Makefile,v 1.4 2003/07/31 18:20:07 avsm Exp $ PROG= syslogd -SRCS= syslogd.c ttymsg.c -.PATH: ${.CURDIR}/../../usr.bin/wall +SRCS= syslogd.c ttymsg.c privsep.c privsep_fdpass.c MAN= syslogd.8 syslog.conf.5 .include -- cgit v1.2.3