[PATCH] Fix ptrace self-attach rule
commit082d52c56f642d21b771a13221068d40915a1409
authorLinus Torvalds <torvalds@osdl.org>
Wed, 9 Nov 2005 19:37:57 +0000 (9 11:37 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2005 05:22:08 +0000 (10 21:22 -0800)
treef9aaef5204923c5dd1e2a6ca2080b940ecd1d9b8
parent24547e2e65e534598580945b791f3ce7777f829b
[PATCH] Fix ptrace self-attach rule

Before we did CLONE_THREAD, the way to check whether we were attaching
to ourselves was to just check "current == task", but with CLONE_THREAD
we should check that the thread group ID matches instead.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/ptrace.c