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.
This commit is contained in:
Omar Polo 2023-08-23 20:30:39 +00:00
parent 4d9d3093d4
commit 618b1d4dce
1 changed files with 4 additions and 0 deletions

View File

@ -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();
}