diff --git a/kernel/fork.c b/kernel/fork.c index 2b11e38..b6eecda 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -725,8 +725,7 @@ mm = get_task_mm(task); if (mm && mm != current->mm && - !ptrace_may_access(task, mode) && - !capable(CAP_SYS_RESOURCE)) { + !ptrace_may_access(task, mode)) { mmput(mm); mm = ERR_PTR(-EACCES); }