jail: only mess with rootfs if CLONE_NEWNS was set
authorDaniel Golle <daniel@makrotopia.org>
Sun, 12 Apr 2020 14:51:49 +0000 (15:51 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 12 Apr 2020 18:51:50 +0000 (19:51 +0100)
commit32c717e18ee3f73a68ac854cfc5ba9e7cbf8c3b1
tree149f3e8bc10c2300a9a470510a7caf8290112001
parent28a06e55cd4235faf52638dd85709e3da04c5c06
jail: only mess with rootfs if CLONE_NEWNS was set

Avoid messing up rootfs of the parent/only mount namespace for the
unusual case of a jailed process which does use namespaces, but
doesn't make use of mount namespaces.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c