aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/pid_namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/pid_namespace.c')
-rw-r--r--kernel/pid_namespace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c
index f78fc48c86bc..68508d330634 100644
--- a/kernel/pid_namespace.c
+++ b/kernel/pid_namespace.c
@@ -144,8 +144,6 @@ struct pid_namespace *copy_pid_ns(unsigned long flags,
144{ 144{
145 if (!(flags & CLONE_NEWPID)) 145 if (!(flags & CLONE_NEWPID))
146 return get_pid_ns(old_ns); 146 return get_pid_ns(old_ns);
147 if (flags & (CLONE_THREAD|CLONE_PARENT))
148 return ERR_PTR(-EINVAL);
149 if (task_active_pid_ns(current) != old_ns) 147 if (task_active_pid_ns(current) != old_ns)
150 return ERR_PTR(-EINVAL); 148 return ERR_PTR(-EINVAL);
151 return create_pid_namespace(user_ns, old_ns); 149 return create_pid_namespace(user_ns, old_ns);