[RFC][PATCH 09/20] ptrace: Update ptrace handle pspaces.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Eric W. Biederman <[email protected]>


---

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux