Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4545 - Openssh: emerge clean may remove /var/empty
Summary: Openssh: emerge clean may remove /var/empty
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-04 15:37 UTC by Jim Marshall
Modified: 2015-07-20 11:53 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 Jim Marshall 2002-07-04 15:37:34 UTC
I upgraded my openssh installation from openssh-3.4_p1 to openssh-3.4_p1-r1 
("emerge --update openssh"). The installation went fine, but doing "emerge 
clean openssh" afterwards removed the "/var/empty" directory, which is needed 
for the default-enabled privilege separation. The absence of this directory 
makes the sshd fail to start if privilege separation is enabled. This was 
easily fixed by manually  creating the directory with ownership and 
permissions as seen in the build (root.root, 0755).

The solution would be to make the ebuild somehow mark the directory as needed 
so that clean doesn't take it out even if it's empty (as it should be).
Comment 1 Brandon Low (RETIRED) gentoo-dev 2002-07-05 01:06:04 UTC
new revision hitting portage shortly should fix this issue for you.  Enjoy.
Comment 2 Max Kalika (RETIRED) gentoo-dev 2003-12-15 13:27:23 UTC
This looks to be broken again in 3.7.1_p2-r1.  I just upgraded and all new connections didn't work (this is without even restarting sshd) because /var/empty went away.
Comment 3 John Robinson 2003-12-16 03:01:18 UTC
Confirmed what Max said. Very annoying it was too, having to get physical access to the machine after upgrading. Is this one of those directories which needs a .keep file?
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-01-04 18:20:01 UTC
is this still a problem?
Comment 5 Christian Jiresjö 2004-01-08 05:03:12 UTC
It was still a problem with the latest ebuild i think since my server lost its /var/empty and i could not get in via ssh anymore
Comment 6 Michael Kefeder 2004-01-20 09:07:08 UTC
Yes this is definitely a problem - i wasn't able to login into my housed-elsewhere-server after updating to

net-misc/openssh-3.7.1_p2-r1

by running `emerge -U world`. It's strange though that the very same -U world procedure done on my client-box (i do this always _before_ i update the far away housed server, to check for errors in advance) didn't have that problem. The contents of /var/empty on my client machine (much older gentoo setup than the server has) is

# ls -a /var/empty/
.  ..  .keep  .keep.backup

if that's of any help chasing the bug.
Comment 7 Brandon Low (RETIRED) gentoo-dev 2004-02-10 12:38:26 UTC
Have you had this problem with -r2?  I'm closing this bug pending further comments, it looks like install was not doing it's job, but on 1/10/2004 brad_mssw fixed it.