[PATCH] Use find_task_by_pid_ns() in places that operate with virtual pids

2007-08-17 Thread Pavel Emelyanov
When the pid comes from the userspace, the find_task_by_pid_ns() should be used to find the task by pid in particular (usually the current) namespace. These places were lost in earlier patches. Think over: all these places work like this: if (pid == 0) task = current;

[PATCH] Use find_task_by_pid_ns() in places that operate with virtual pids

2007-08-17 Thread Pavel Emelyanov
When the pid comes from the userspace, the find_task_by_pid_ns() should be used to find the task by pid in particular (usually the current) namespace. These places were lost in earlier patches. Think over: all these places work like this: if (pid == 0) task = current;