]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Fix ptrace self-attach rule
authorLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 19:33:07 +0000 (11:33 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 19:33:07 +0000 (11:33 -0800)
commit28d838cc4dfea980cb6eda0a7409cbf91889ca74
tree4bbf42063718ac7744ca67ef9f67adce17bfbb5c
parentac111bfaa6b0b3c0edc63c27bd9617d6b08851ff
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