Bug 2230

Summary: Make /etc/mtab a symlink to /proc/self/mounts in Mageia 2
Product: Mageia Reporter: Christiaan Welvaart <cjw>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: dmorganec
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: setup CVE:
Status comment:
Bug Depends on:    
Bug Blocks: 1157, 1994    

Description Christiaan Welvaart 2011-07-22 00:52:59 CEST
Mageia 2 technical spec #024
see also https://mageia.org/wiki/doku.php?id=iso2:technical_specification

Currenctly, /etc/mtab is updated by mount and /sbin/mount.* . This does not always works reliably and requires all these programs to be setuid-root. Symlinking /etc/mtab to /proc/self/mounts which is maintained by the kernel provides a correct and up-to-date list of mounted filesystems to each running process (even in chroots). It allows removing the setuid bit of the mount helper programs, fixing bug #1157 . Systemd apparently requires /etc/mtab to be such a symlink.

I have always symlinked /etc/mtab to /proc/mounts and never encountered any serious problem.

This bug was reported on the setup package because it 'owns' /etc/mtab, but everything that must be fixed is probably in other packages.
Manuel Hiebel 2011-07-22 01:04:13 CEST

Blocks: (none) => 1994

Comment 1 Christiaan Welvaart 2011-07-22 02:19:35 CEST
debian bugreport for this: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494001
Christiaan Welvaart 2011-07-24 12:08:45 CEST

Blocks: (none) => 1157

Comment 2 D Morgan 2011-10-23 21:49:25 CEST
fixed in SVN ( util-linux ).

will be pushed on cauldron soon.

Status: NEW => RESOLVED
CC: (none) => dmorganec
Resolution: (none) => FIXED