It is useful to continue to write the logs after chroot to the directory which do not contain the syslog socket in the chroot environment.
Created attachment 1680 [details] Patch solving the problem
Comment on attachment 1680 [details] Patch solving the problem This patch doesn't work on platforms that use syslog_r
What is the problem? Where it can be reproduced? Solaris?
Oh I see poor broken system with disconnectlog_r.... From the manual page can be read: SYSLOG ( 3 ) OpenBSD Programmer’sManual SYSLOG(3) ..... LOG_NDELAY Open the connection tosyslogd(8) immediately. Normally the open is delayed until the first message is logged. Useful for programs that need to manage the order in which file descriptors are allocated. This option must be used in programs that call chroot(2) where the newroot does not have its own log socket. ......
OpenSSH 5.9 passes log messages from the preauth privsep slave to the monitor for logging, so any chroot /dev/log workarounds are no longer necessary.
close resolved bugs now that openssh-5.9 has been released