Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177 - baselayout /etc/mtab fix
Summary: baselayout /etc/mtab fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-15 10:17 UTC by Daniel Robbins (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Robbins (RETIRED) gentoo-dev 2002-01-15 10:17:48 UTC
Hey Azarah,

I have found two reasons why we need a non-symlinked /etc/mtab:

1) (as we already knew) the symlink to /proc/mounts messes up loopback device
handling

2) the symlink messes up filesystems mounted with the "user" option in
/etc/fstab.  With the symlink, any user can mount the filesystem (correct), but
any user can also unmount the filesystem.  With a real file at /etc/mtab, only
the user that mounted the filesystem can unmount it.  This is the correct
behavior and our current behavior could be considered a security hole.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-01-18 22:51:09 UTC
I'm fixing this in baselayout 1.7.0