|
@@ -146,6 +146,8 @@ struct pid_namespace *copy_pid_ns(unsigned long flags,
|
|
return get_pid_ns(old_ns);
|
|
return get_pid_ns(old_ns);
|
|
if (flags & (CLONE_THREAD|CLONE_PARENT))
|
|
if (flags & (CLONE_THREAD|CLONE_PARENT))
|
|
return ERR_PTR(-EINVAL);
|
|
return ERR_PTR(-EINVAL);
|
|
|
|
+ if (task_active_pid_ns(current) != old_ns)
|
|
|
|
+ return ERR_PTR(-EINVAL);
|
|
return create_pid_namespace(user_ns, old_ns);
|
|
return create_pid_namespace(user_ns, old_ns);
|
|
}
|
|
}
|
|
|
|
|