mirror of https://github.com/omar-polo/gmid.git
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:
parent
4d9d3093d4
commit
618b1d4dce
4
logger.c
4
logger.c
|
@ -61,6 +61,10 @@ static void
|
||||||
logger_init(struct privsep *ps, struct privsep_proc *p, void *arg)
|
logger_init(struct privsep *ps, struct privsep_proc *p, void *arg)
|
||||||
{
|
{
|
||||||
p->p_shutdown = logger_shutdown;
|
p->p_shutdown = logger_shutdown;
|
||||||
|
|
||||||
|
openlog(getprogname(), LOG_NDELAY, LOG_DAEMON);
|
||||||
|
tzset();
|
||||||
|
|
||||||
sandbox_logger_process();
|
sandbox_logger_process();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue