mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
Revert "proc: smaps: Allow smaps access for CAP_SYS_RESOURCE"
This reverts commit f0ce0eee6b71bc310153edb87e66e6b25e12fece. Bug: 34951864 Bug: 36468447 Change-Id: I87bd92e096c6c28a53b9ecf302ae008f5e58eba1 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> CVE-2017-0710 Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
This commit is contained in:
parent
782193fed9
commit
e773b03a36
1 changed files with 1 additions and 2 deletions
|
@ -708,8 +708,7 @@ struct mm_struct *mm_access(struct task_struct *task, unsigned int mode)
|
|||
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue