diff options
-rw-r--r-- | kernel/fork.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 3561391ca450..68d508f2bfba 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1177,9 +1177,8 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1177 | * allow it to share a thread group or signal handlers with the | 1177 | * allow it to share a thread group or signal handlers with the |
1178 | * forking task. | 1178 | * forking task. |
1179 | */ | 1179 | */ |
1180 | if ((clone_flags & (CLONE_SIGHAND | CLONE_NEWPID)) && | 1180 | if ((clone_flags & CLONE_SIGHAND) && (task_active_pid_ns(current) != |
1181 | (task_active_pid_ns(current) != | 1181 | current->nsproxy->pid_ns_for_children)) |
1182 | current->nsproxy->pid_ns_for_children)) | ||
1183 | return ERR_PTR(-EINVAL); | 1182 | return ERR_PTR(-EINVAL); |
1184 | 1183 | ||
1185 | retval = security_task_create(clone_flags); | 1184 | retval = security_task_create(clone_flags); |