PM: Remove CONFIG_PM_VERBOSE
[pandora-kernel.git] / kernel / nsproxy.c
index 034dc2e..a05d191 100644 (file)
@@ -69,18 +69,13 @@ static struct nsproxy *create_new_namespaces(unsigned long flags,
                goto out_ns;
        }
 
-       new_nsp->uts_ns = copy_utsname(flags, tsk->nsproxy->uts_ns);
+       new_nsp->uts_ns = copy_utsname(flags, tsk);
        if (IS_ERR(new_nsp->uts_ns)) {
                err = PTR_ERR(new_nsp->uts_ns);
                goto out_uts;
        }
-       if (new_nsp->uts_ns != tsk->nsproxy->uts_ns) {
-               put_user_ns(new_nsp->uts_ns->user_ns);
-               new_nsp->uts_ns->user_ns = task_cred_xxx(tsk, user)->user_ns;
-               get_user_ns(new_nsp->uts_ns->user_ns);
-       }
 
-       new_nsp->ipc_ns = copy_ipcs(flags, tsk->nsproxy->ipc_ns);
+       new_nsp->ipc_ns = copy_ipcs(flags, tsk);
        if (IS_ERR(new_nsp->ipc_ns)) {
                err = PTR_ERR(new_nsp->ipc_ns);
                goto out_ipc;