Re: Get rid of /etc/mtab ?
Wichert Akkerman <wichert@wiggy.net> writes:
> Previously Goswin Brederlow wrote:
> > Can someone summarise the reasons against
> >
> > ln -s /proc/mounts /etc/mtab
>
> * Not everymount mounts /proc
They don't have to use the link
> * /proc is not mounted early in the boot sequence
Doesn't seem to hurt anything. Also one can provide a /proc/mtab file
on / for mount (and others) to fall back to until /proc is mounted.
> * not all mount options are listed in /proc/mounts
Which options are missing and where does that matter?
> * Not all operating systems have /proc (afaik only Linux has /proc/mounts)
Again, you don't have to use the link.
> * Using /proc/mounts in a chroot means leaking lots of information about
> the host system into the chroot (the info is there anyway via /proc
> but with different paths which don't exist in the chroot. Also chroots
> don't always have /proc mounted but may very well mount other things)
Again, use /etc/mtab in a chroot. Also /proc in a chroot should be
fixed to show only information from inside the chroot. I would
consider the leakage a kernel bug thats there anyway and not a problem
with the link.
> Now someone please summarise the reasons not to have a seperate /etc/mtab
> file.
/ and thus /etc read only.
The link would be optional and apart from the missing options in
/proc/mounts (of wich I only know of problems with loopback mounts) I
don't see any reason against supporting the link along with the normal
mtab file.
MfG
Goswin
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: