/proc/self/mounts in chroot vs lxc

From: Harald Dunkel
Date: Sun Feb 05 2012 - 03:50:40 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks,

AFAIK /proc/mounts (-> self/mounts) is supposed to replace
/etc/mtab. Problem is: In a chroot it contains too much
(invalid) information about the parent's mount points. It is
very hard to figure out which lines are correct.

For lxc there seems to be no such problem, so I wonder if it
would be possible to extend this scheme to chroot?

I am not sure if this is a kernel or libc issue. Any helpful
comment would be highly appreciated.


Regards

Harri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk8uQSAACgkQUTlbRTxpHjebAACcDv8p76s834XRmt24Abyi2lei
Bg4An2zTYIvKz8uD7iYZ3f46fymZ+Guk
=pYTm
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/