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.
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 Disposition: inline
Content-Type: text/plain; charset=us-ascii
Content-
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 pgp-signature; name="signature .asc" Description: Digital signature Disposition: inline
Content-Type: application/
Content-
Content-
-----BEGIN PGP SIGNATURE----- gnupg.org/ for details.
PIYfdYgoRArTlAJ 4882Fuw94wn2kSP f8Sec9pOtkq4ACf fEFR L1Amj9CU=
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: This is a digitally signed email. See http://
iD8DBQFCHPVuD4j
MTG34SOKEPUpacn
=Ljrj
-----END PGP SIGNATURE-----
--jI8keyz6grp/ JLjh--