]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
refresh ptrace patch from Linus.
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 16 Nov 2005 06:13:18 +0000 (22:13 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 16 Nov 2005 06:13:18 +0000 (22:13 -0800)
review/fix-ptrace-self-attach-rule.patch

index 9300c5c1b0f164e8b918cd7570f15b29a6417501..1afcebc21886c7bb0e95a83033bf25daf769f50c 100644 (file)
@@ -9,11 +9,12 @@ we should check that the thread group ID matches instead.
 
 Signed-off-by: Linus Torvalds <torvalds@osdl.org>
 ---
-diff --git a/kernel/ptrace.c b/kernel/ptrace.c
-index 5b8dd98..b88d418 100644
---- a/kernel/ptrace.c
-+++ b/kernel/ptrace.c
-@@ -155,7 +155,7 @@ int ptrace_attach(struct task_struct *ta
+ kernel/ptrace.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- linux-2.6.14.y.orig/kernel/ptrace.c
++++ linux-2.6.14.y/kernel/ptrace.c
+@@ -152,7 +152,7 @@ int ptrace_attach(struct task_struct *ta
        retval = -EPERM;
        if (task->pid <= 1)
                goto bad;
@@ -22,4 +23,3 @@ index 5b8dd98..b88d418 100644
                goto bad;
        /* the same process cannot be attached many times */
        if (task->ptrace & PT_PTRACED)
-