mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
15 lines
348 B
Diff
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);
|
||
|
}
|