mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
proc: smaps: Allow smaps access for CAP_SYS_RESOURCE
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
parent
6dd16a70bc
commit
2d39f683c5
1 changed files with 2 additions and 1 deletions
|
@ -675,7 +675,8 @@ 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)) {
|
||||
!ptrace_may_access(task, mode) &&
|
||||
!capable(CAP_SYS_RESOURCE)) {
|
||||
mmput(mm);
|
||||
mm = ERR_PTR(-EACCES);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue