]> err.no Git - linux-2.6/commit
Use find_task_by_vpid in posix timers
authorPavel Emelyanov <xemul@openvz.org>
Fri, 8 Feb 2008 12:21:52 +0000 (04:21 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:41 +0000 (09:22 -0800)
commit8dc86af00612e5ccff3384c17575362a3f2a2ca0
tree04ed08d10cc99d4a283c8ccac078c4ac544b7b94
parent20a8143eaa3300a58326156eaf43e03db0fd2cb6
Use find_task_by_vpid in posix timers

All the functions that need to lookup a task by pid in posix timers obtain
this pid from a user space, and thus this value refers to a task in the same
namespace, as the current task lives in.

So the proper behavior is to call find_task_by_vpid() here.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/posix-cpu-timers.c
kernel/posix-timers.c