Bug#645788: openssh-server: /run on tmpfs breaks sshd started from inetd
On Wed, Aug 27, 2014 at 12:07:05PM +0200, Paul Millar wrote:
> The solution is that the openssh-server package updates it's initrd and systemd
> entries so that, on start up, it checks the /var/run/sshd directory and creates
> it if it doesn't already exists.
The sysvinit script does this:
check_privsep_dir() {
# Create the PrivSep empty dir if necessary
if [ ! -d /var/run/sshd ]; then
mkdir /var/run/sshd
chmod 0755 /var/run/sshd
fi
}
[...]
case "$1" in
start)
check_for_upstart 1
check_privsep_dir
So does the Upstart job:
pre-start script
test -x /usr/sbin/sshd || { stop; exit 0; }
test -e /etc/ssh/sshd_not_to_be_run && { stop; exit 0; }
mkdir -p -m0755 /var/run/sshd
end script
And for systemd this should be handled by a tmpfiles.d script:
d /var/run/sshd 0755 root root
So it's not sufficient to simply state that we need to handle this,
because as far as I can see we already do. Could you please investigate
why the respective handling for whatever init system you have as pid 1
is not working for you? Please then take this to a separate bug report,
as this is not at all the same issue as the original one filed as
#645788, and it is not usually good to conflate multiple issues into a
single bug report.
Thanks,
--
Colin Watson [cjwatson@debian.org]
Reply to: