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

Re: Bug#644788: Bug#654116: RFH: screen -- terminal multiplexor with VT100/ANSI terminal emulation

Le mardi, 3 janvier 2012 16.58:08, Axel Beckert a écrit :
> Hi,
> Marco d'Itri wrote:
> > If /tmp is noexec then the administrator mounted it this way and knows
> > about it.

Another idea would be to use /usr/bin as temporary place for the old screen. 
That would be a Policy violation but not a much "bigger" than using /tmp .

1) in screen/wheezy's `preinst upgrade`:
	cp /usr/bin/screen /usr/bin/screen-old
	touch /tmp/flag-screen-has-been-upgraded-no-reboot-yet
	(+ appropriate mktemp and usual version and sanity checks)
2) This means that as long as the machine hasn't been rebooted (/tmp emptied), 
both the new /usr/bin/screen and the old /usr/bin/screen-old exist for the 
admin to use.

3) In a "screen-cleanup init script", test the inexistance of the flag and the 
existance of /usr/bin/screen-old; in that case, `rm` it.
	(+ appropriate version and sanity checks, + idempotency)

This is mostly the "put it under /tmp" idea minus the "noexec" caveat, plus 
the "init script insanity" (which can be dropped in unstable as soon as Wheezy 
is released).

Opinions ?


Attachment: signature.asc
Description: This is a digitally signed message part.

Reply to: