mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +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>
This commit is contained in:
parent
2182d4a822
commit
9a14c290be
1 changed files with 1 additions and 2 deletions
|
@ -723,8 +723,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