summaryrefslogtreecommitdiffstats
path: root/kernel/mm/process_vm_access.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/mm/process_vm_access.c')
-rw-r--r--kernel/mm/process_vm_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/mm/process_vm_access.c b/kernel/mm/process_vm_access.c
index e88d07164..5d453e58d 100644
--- a/kernel/mm/process_vm_access.c
+++ b/kernel/mm/process_vm_access.c
@@ -194,7 +194,7 @@ static ssize_t process_vm_rw_core(pid_t pid, struct iov_iter *iter,
goto free_proc_pages;
}
- mm = mm_access(task, PTRACE_MODE_ATTACH);
+ mm = mm_access(task, PTRACE_MODE_ATTACH_REALCREDS);
if (!mm || IS_ERR(mm)) {
rc = IS_ERR(mm) ? PTR_ERR(mm) : -ESRCH;
/*