Comment 15 for bug 13131

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 23 Feb 2005 22:28:14 +0100
From: Stephan Niemz <email address hidden>
To: Andreas Barth <email address hidden>
Cc: Justin Pryzby <email address hidden>,
 <email address hidden>, Tyler MacDonald <email address hidden>
Subject: Re: Bug#296201: mount: unprivileged user can mount partition without updating mtab

--jI8keyz6grp/JLjh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

There is quite a simple solution to this problem:

  ln -sf ../proc/mounts mtab

    Maybe this could be added to postinst or similar. Of course this
only works when procfs is mounted to /proc, but is anyone really not
doing this nowadays?

The other advantage is that "mount" and "df" show the correct file
systems even when "/" is mounted read-only, e. g. in single user mode.

Cheers,

    - Stephan.

--jI8keyz6grp/JLjh
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: This is a digitally signed email. See http://gnupg.org/ for details.

iD8DBQFCHPVuD4jPIYfdYgoRArTlAJ4882Fuw94wn2kSPf8Sec9pOtkq4ACffEFR
MTG34SOKEPUpacnL1Amj9CU=
=Ljrj
-----END PGP SIGNATURE-----

--jI8keyz6grp/JLjh--