[Pkg-sysvinit-devel] Bug#673446: initscripts: symlinking /etc/mtab to /proc/mounts breaks user umount

hriase1 at post-ist-da.de hriase1 at post-ist-da.de
Fri May 18 18:42:36 UTC 2012


Package: initscripts
Version: 2.88dsf-22.1
Severity: important

Given the following line in fstab:

/dev/sdb1  /mnt.d/sdb1  auto  noauto,user,rw,noatime,nodiratime

This allows an ordinary user to mount the FS. Unmounting as the same user
however fails:

# echo $UID
1000

# mount /mnt.d/sdb1
# umount /mnt.d/sdb1
umount: only root can unmount /dev/sdb1 from /mnt.d/sdb1

# grep /mnt.d/sdb1 /proc/mounts
/dev/sdb1 /mnt.d/sdb1 vfat rw,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0

When /etc/mtab is a normal writable file, umount works.


-- System Information:
Debian Release: 6.0.5
  APT prefers stable
  APT policy: (950, 'stable'), (800, 'testing'), (500, 'oldstable')
Architecture: i386 (x86_64)

Kernel: Linux 3.2.17-x86_64 (SMP w/4 CPU cores)
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages initscripts depends on:
ii  coreutils          8.5-1                 GNU core utilities
ii  debianutils        4.3                   Miscellaneous utilities specific t
ii  libc6              2.13-32               Embedded GNU C Library: Shared lib
ii  lsb-base           3.2-23.2squeeze1      Linux Standard Base 3.2 init scrip
ii  mount              2.17.2-9              Tools for mounting and manipulatin
ii  sysv-rc            2.88dsf-22.1          System-V-like runlevel change mech
ii  sysvinit-utils     2.88dsf-13.1+squeeze1 System-V-like utilities
ii  ucf                3.0025+nmu3           Update Configuration File: preserv

Versions of packages initscripts recommends:
ii  e2fsprogs               1.41.12-4stable1 ext2/ext3/ext4 file system utiliti
ii  psmisc                  22.11-1          utilities that use the proc file s

initscripts suggests no packages.

-- no debconf information





More information about the Pkg-sysvinit-devel mailing list