]> git.ipfire.org Git - thirdparty/util-linux.git/commit
unshare: add --mount-proc for pid namespaces
authorKarel Zak <kzak@redhat.com>
Wed, 3 Jul 2013 10:28:16 +0000 (12:28 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Jul 2013 09:02:48 +0000 (11:02 +0200)
commit6728ca101e7edc223a8eb99201197831d8daa61f
treee3c5450e53c2904f1e5a9203d0fa26e3163393d2
parent5088ec338fe5dcd7e9a2d8daf7e7fa7dd6f87c27
unshare: add --mount-proc for pid namespaces

Based on patch from Mike Frysinger <vapier@gentoo.org>.

Mike Frysinger wrote:
 When it comes to pid namespaces, it's also useful for /proc to reflect
 the current namespace.  Again, this is easy to pull off, but annoying
 to force everyone to do it themselves.  So let's add a --mount-proc to
 do the magic for us.  The downside is that this also implies creating
 a mount namespace as mounting the new pid namespace /proc over top the
 system one will quickly break all other processes on the system.

Signed-off-by: Karel Zak <kzak@redhat.com>
Acked-by: Mike Frysinger <vapier@gentoo.or>
sys-utils/unshare.1
sys-utils/unshare.c