[Pkg-shadow-devel] Bug#474318: login: Close passwd while waiting for exit

Jörg Sommer joerg at alea.gnuu.de
Fri Apr 4 23:05:40 UTC 2008


Package: login
Version: 1:4.1.1-1
Severity: minor

Hi,

login keeps the file /etc/passwd open with waits for the return from the
shell.

% ps fax
 1846 ?        Ss+    0:00 /bin/login --
 1898 vc/1     S+     0:00  \_ /bin/bash /usr/bin/startx
 1924 vc/1     S+     0:00      \_ xinit /etc/X11/xinit/xinitrc -- /etc/X11/xini

# ls -l /proc/$(pidof login)/fd
insgesamt 0
lrwx------ 1 root root 64  5. Apr 00:46 0 -> /dev/vc/1
lrwx------ 1 root root 64  5. Apr 00:46 1 -> /dev/vc/1
lrwx------ 1 root root 64  5. Apr 00:46 2 -> /dev/vc/1
lr-x------ 1 root root 64  5. Apr 00:46 4 -> /etc/passwd
lr-x------ 1 root root 64  5. Apr 00:46 5 -> pipe:[3131]
lr-x------ 1 root root 64  5. Apr 00:46 6 -> /dev/urandom
lrwx------ 1 root root 64  5. Apr 00:46 7 -> socket:[3059]

Why does it keep this file open? Is it really necessary?

Bye, Jörg.

-- System Information:
Debian Release: unstable/experimental
  APT prefers unstable
  APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.25-rc8
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages login depends on:
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  libpam-modules                0.99.7.1-6 Pluggable Authentication Modules f
ii  libpam-runtime                0.99.7.1-6 Runtime support for the PAM librar
ii  libpam0g                      0.99.7.1-6 Pluggable Authentication Modules l

login recommends no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature http://en.wikipedia.org/wiki/OpenPGP
Url : http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20080405/6ec5f835/attachment.pgp 


More information about the Pkg-shadow-devel mailing list