[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#575582: openssh-server: privsep directory disappeared on upgrade



Simon McVittie <smcv@debian.org> writes:
> On Fri, 19 Nov 2010 at 11:29:05 +0200, Stefano Rivera wrote:

>> The problem seems to be that /var/run/sshd is removed on unpacking but
>> only recreated in postinst. One cannot ssh in to the machine
>> in-between.  I consider this to be release-critical and am bumping the
>> bug appropriately.

> It sounds as though the solution would be to ship the directory in the
> package again, *and* create it in the init script?

This is just a one-time transition problem because older versions of the
package included the directory in the package and newer ones use the
postinst script, right?

If so, how about touching a .placeholder file in /var/run/sshd in the
preinst script of the current package on upgrades, and then removing that
file again in the postinst?  The presence of the file will prevent dpkg
from removing the directory, and then we don't have to carry the directory
in the package forever going forward.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: