diff options
author | San Mehat <san@google.com> | 2009-09-16 12:39:10 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-09-29 17:49:24 -0700 |
commit | ed6c5eceb8269fb93c0a49a8648c760ff2a512d9 (patch) | |
tree | 09c3e7a30b6b7b0ad485b6b0b9520482277bd84f /fs/proc | |
parent | 755d3f1c9bb58882eaa47cdf1f7bf598fca78512 (diff) |
proc: smaps: Allow smaps access for CAP_SYS_RESOURCE
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 98b902d424da..a495be632cf7 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -237,7 +237,8 @@ struct mm_struct *mm_for_maps(struct task_struct *task) mm = get_task_mm(task); if (mm && mm != current->mm && - !ptrace_may_access(task, PTRACE_MODE_READ)) { + !ptrace_may_access(task, PTRACE_MODE_READ) && + !capable(CAP_SYS_RESOURCE)) { mmput(mm); mm = NULL; } |