If /var/empty is missing then /etc/init.d/sshd will create it but then sshd will complain about group write permissions on /var/empty and refuses to start. /etc/init.d/sshd: checkpath --directory "${RC_PREFIX%/}/var/empty" should be: checkpath --directory --mode 0755 "${RC_PREFIX%/}/var/empty"
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c4d1ad673a50b2ed24b8b8a4242c9de81ea9ce9 commit 4c4d1ad673a50b2ed24b8b8a4242c9de81ea9ce9 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2018-08-22 14:54:12 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2018-08-22 15:00:06 +0000 net-misc/openssh: create /var/empty with correct permission Closes: https://bugs.gentoo.org/664192 Package-Manager: Portage-2.3.48, Repoman-2.3.10 net-misc/openssh/files/sshd.initd | 89 ++++++ net-misc/openssh/openssh-7.7_p1-r9.ebuild | 444 ++++++++++++++++++++++++++++++ 2 files changed, 533 insertions(+)