diff options
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r-- | kernel/ptrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index a146ee327f6a..dd562e9aa2c8 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -236,7 +236,7 @@ static int __ptrace_may_access(struct task_struct *task, unsigned int mode) | |||
236 | */ | 236 | */ |
237 | int dumpable = 0; | 237 | int dumpable = 0; |
238 | /* Don't let security modules deny introspection */ | 238 | /* Don't let security modules deny introspection */ |
239 | if (task == current) | 239 | if (same_thread_group(task, current)) |
240 | return 0; | 240 | return 0; |
241 | rcu_read_lock(); | 241 | rcu_read_lock(); |
242 | tcred = __task_cred(task); | 242 | tcred = __task_cred(task); |