DivestOS/Patches/Linux_CVEs/CVE-2017-0710/ANY/0.patch

15 lines
348 B
Diff
Raw Normal View History

2017-10-29 22:14:37 -04:00
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);
}