Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932332AbWBFTtV (ORCPT ); Mon, 6 Feb 2006 14:49:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932331AbWBFTtV (ORCPT ); Mon, 6 Feb 2006 14:49:21 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:60397 "EHLO ebiederm.dsl.xmission.com") by vger.kernel.org with ESMTP id S932332AbWBFTtU (ORCPT ); Mon, 6 Feb 2006 14:49:20 -0500 To: Cc: , Herbert Poetzl , "Serge E. Hallyn" , Alan Cox , Dave Hansen , Arjan van de Ven , Suleiman Souhlal , Hubertus Franke , Cedric Le Goater , Kyle Moffett , Kirill Korotaev , Greg , Linus Torvalds , Andrew Morton , Greg KH , Rik van Riel , Alexey Kuznetsov , Andrey Savochkin , Kirill Korotaev , Andi Kleen , Benjamin Herrenschmidt , Jeff Garzik , Trond Myklebust , Jes Sorensen Subject: [RFC][PATCH 09/20] ptrace: Update ptrace handle pspaces. References: From: ebiederm@xmission.com (Eric W. Biederman) Date: Mon, 06 Feb 2006 12:46:59 -0700 In-Reply-To: (Eric W. Biederman's message of "Mon, 06 Feb 2006 12:44:53 -0700") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 839 Lines: 31 Signed-off-by: Eric W. Biederman --- kernel/ptrace.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 38464ccf04964acc267370758e89a9b4813b6191 diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 5f33cdb..73dc283 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c @@ -455,7 +455,7 @@ struct task_struct *ptrace_get_task_stru return ERR_PTR(-EPERM); read_lock(&tasklist_lock); - child = find_task_by_pid(pid); + child = find_task_by_pid(current->pspace, pid); if (child) get_task_struct(child); read_unlock(&tasklist_lock); -- 1.1.5.g3480 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/