• Ronald G. Minnich's avatar
    syscall: fix ordering of Unshare and chroot on Linux · 67399c62
    Ronald G. Minnich authored
    When unshare specifies a new namespace, the syscall
    package changes / to make namespace changes private.
    
    If a chroot is specified, the unshare must be done first.
    If the chroot is done first then the unshare will
    not specify the correct /.
    
    A new test is included which test combining chroot
    and CLONE_NEWNS; it fails without the patch and works with
    it.
    
    Fixes #20103
    
    Change-Id: I86022803c784bd418a30383321f3d64103d95c62
    Reviewed-on: https://go-review.googlesource.com/41626Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    67399c62
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...