DivestOS/Patches/Linux_CVEs/CVE-2017-0710/ANY/0001.patch
2017-11-07 17:32:46 -05:00

15 lines
348 B
Diff

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);
}