__ptrace_may_access() should not deny sub-threads
[pandora-kernel.git] / kernel / ptrace.c
index 464b1fe..f07c144 100644 (file)
@@ -225,7 +225,7 @@ int __ptrace_may_access(struct task_struct *task, unsigned int mode)
         */
        int dumpable = 0;
        /* Don't let security modules deny introspection */
-       if (task == current)
+       if (same_thread_group(task, current))
                return 0;
        rcu_read_lock();
        tcred = __task_cred(task);