Commit Diff
- Commit:
618b1d4dce6d4780943594cb278977b52001ab22
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- 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.
- Actions:
- Patch | Tree
--- logger.c +++ 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(); }