This couple of patches merges "unshare chroot" in one command. Parameter names are copied from nsenter. Doing like this the /proc filesystem is correctly mounted in the new root with "--mount-proc". v2: allow to use --wd without --root fix a bug when we use --mount-proc with --root -> don't remount /proc to none fix tabulation Laurent Vivier (2): unshare: allow to set a new root unshare: allow to set user ID and group ID bash-completion/unshare | 6 +++- sys-utils/unshare.1 | 13 +++++++++ sys-utils/unshare.c | 62 ++++++++++++++++++++++++++++++++++++----- 3 files changed, 73 insertions(+), 8 deletions(-) -- 2.17.1