Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664192 - net-misc/openssh-7.7_p1-r6 creates /var/empty with incorrect permissions
Summary: net-misc/openssh-7.7_p1-r6 creates /var/empty with incorrect permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-21 17:47 UTC by A. Person
Modified: 2018-08-22 15:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A. Person 2018-08-21 17:47:10 UTC
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"
Comment 1 Larry the Git Cow gentoo-dev 2018-08-22 15:00:24 UTC
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(+)