]> git.baikalelectronics.ru Git - kernel.git/commit
userns: Implement unshare of the user namespace
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 26 Jul 2012 12:15:35 +0000 (05:15 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 20 Nov 2012 12:18:14 +0000 (04:18 -0800)
commit8ff33e30ea21523e324b429351bd7181841f9f9e
treee187c82e1c3babd34095f2b946614131719bbb03
parent5394b178a4d4adf63321fee992452bb24b1e6e1a
userns: Implement unshare of the user namespace

- Add CLONE_THREAD to the unshare flags if CLONE_NEWUSER is selected
  As changing user namespaces is only valid if all there is only
  a single thread.
- Restore the code to add CLONE_VM if CLONE_THREAD is selected and
  the code to addCLONE_SIGHAND if CLONE_VM is selected.
  Making the constraints in the code clear.

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/nsproxy.h
include/linux/user_namespace.h
kernel/fork.c
kernel/nsproxy.c
kernel/user_namespace.c