userns: Make create_new_namespaces take a user_ns parameter
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 26 Jul 2012 11:02:49 +0000 (04:02 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 20 Nov 2012 12:17:43 +0000 (04:17 -0800)
commitbcf58e725ddc45d31addbc6627d4f0edccc824c1
treee6dff2fbed40f26d8c45f78e23a7476527573bf1
parent142e1d1d5f088e7a38659daca6e84a730967774a
userns: Make create_new_namespaces take a user_ns parameter

Modify create_new_namespaces to explicitly take a user namespace
parameter, instead of implicitly through the task_struct.

This allows an implementation of unshare(CLONE_NEWUSER) where
the new user namespace is not stored onto the current task_struct
until after all of the namespaces are created.

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