|
@@ -1171,7 +1171,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
|
|
|
* do not allow it to share a thread group or signal handlers or
|
|
* do not allow it to share a thread group or signal handlers or
|
|
|
* parent with the forking task.
|
|
* parent with the forking task.
|
|
|
*/
|
|
*/
|
|
|
- if (clone_flags & (CLONE_SIGHAND | CLONE_PARENT)) {
|
|
|
|
|
|
|
+ if (clone_flags & CLONE_SIGHAND) {
|
|
|
if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) ||
|
|
if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) ||
|
|
|
(task_active_pid_ns(current) !=
|
|
(task_active_pid_ns(current) !=
|
|
|
current->nsproxy->pid_ns_for_children))
|
|
current->nsproxy->pid_ns_for_children))
|