[Pkg-sysvinit-devel] Bug#546245: sysvinit: /etc/nologin symlink deleted by /sbin/shutdown

Mark Eichin eichin at metacarta.com
Fri Sep 11 20:53:16 UTC 2009


Package: sysvinit
Version: 2.86.ds1-61
Severity: normal

When looking at some etch->lenny upgrade diffs, noticed that while the
sysvinit postinst creates a symlink from /etc/nologin to
/var/run/initscripts/nologin, the first "shutdown" after the upgrade
(or install) simply deletes the symlink.

sysvinit-2.86.ds1/src/paths.h:
        #define NOLOGIN		"/etc/nologin"		/* Stop user logging in. */
sysvinit-2.86.ds1/src/shutdown.c, shutdown():
	unlink(NOLOGIN);

(Maybe this should reopen Bug#191041 which introduced the use of
 /var/run, but that's from 2003 and archived... also, pam also looks at
 /etc/nologin directly, perhaps the symlink change should just be reverted?)


-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages sysvinit depends on:
ii  initscripts                  2.86.ds1-61 Scripts for initializing and shutt
ii  libc6                        2.7-18      GNU C Library: Shared libraries
ii  libselinux1                  2.0.65-5    SELinux shared libraries
ii  libsepol1                    2.0.30-2    Security Enhanced Linux policy lib
ii  sysv-rc                      2.86.ds1-61 System-V-like runlevel change mech
ii  sysvinit-utils               2.86.ds1-61 System-V-like utilities

sysvinit recommends no packages.

sysvinit suggests no packages.

-- no debconf information





More information about the Pkg-sysvinit-devel mailing list