From 618b1d4dce6d4780943594cb278977b52001ab22 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Wed, 23 Aug 2023 20:30:39 +0000 Subject: [PATCH] resurrect openlog() + tzset() in the logger They're not needed on OpenBSD nor in other systems... except under sandbox. These were added for capsicum() if I remember correctly, but also with landlock it's better to initialize these things earlier. --- logger.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/logger.c b/logger.c index 7949bd5..36ccaa3 100644 --- a/logger.c +++ b/logger.c @@ -61,6 +61,10 @@ static void logger_init(struct privsep *ps, struct privsep_proc *p, void *arg) { p->p_shutdown = logger_shutdown; + + openlog(getprogname(), LOG_NDELAY, LOG_DAEMON); + tzset(); + sandbox_logger_process(); }