[RFC][PATCH 09/20] ptrace: Update ptrace handle pspaces.
- From: ebiederm@xxxxxxxxxxxx (Eric W. Biederman)
- Date: Mon, 06 Feb 2006 12:46:59 -0700
Signed-off-by: Eric W. Biederman <ebiederm@xxxxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [RFC][PATCH 10/20] capabilities: Update the capabilities code to handle pspaces.
- From: Eric W. Biederman
- [RFC][PATCH 10/20] capabilities: Update the capabilities code to handle pspaces.
- References:
- [RFC][PATCH 0/20] Multiple instances of the process id namespace
- From: Eric W. Biederman
- [RFC][PATCH 01/20] pid: Intoduce the concept of a wid (wait id)
- From: Eric W. Biederman
- [RFC][PATCH 02/20] pspace: The parent process id of pid 1 is always 0.
- From: Eric W. Biederman
- [RFC][PATCH 03/20] pid: Introduce a generic helper to test for init.
- From: Eric W. Biederman
- [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace
- From: Eric W. Biederman
- [RFC][PATCH 05/20] sched: Fixup the scheduler syscalls to deal with pspaces.
- From: Eric W. Biederman
- [RFC][PATCH 06/20] cad_pid: Fixup the cad_pid users to assume it is in the initial process id namespace.
- From: Eric W. Biederman
- [RFC][PATCH 07/20] tty: Update the tty layer to work with pspaces.
- From: Eric W. Biederman
- [RFC][PATCH 08/20] vt: Update the virtual console to handle pspaces.
- From: Eric W. Biederman
- [RFC][PATCH 0/20] Multiple instances of the process id namespace
- Prev by Date: Re: Linux drivers management
- Next by Date: Re: Linux drivers management
- Previous by thread: [RFC][PATCH 08/20] vt: Update the virtual console to handle pspaces.
- Next by thread: [RFC][PATCH 10/20] capabilities: Update the capabilities code to handle pspaces.
- Index(es):