projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90bb75e
)
proc: smaps: Allow smaps access for CAP_SYS_RESOURCE
author
San Mehat
<san@google.com>
Wed, 16 Sep 2009 19:39:10 +0000
(12:39 -0700)
committer
Arve Hjønnevåg
<arve@android.com>
Mon, 8 Feb 2010 23:36:04 +0000
(15:36 -0800)
Signed-off-by: San Mehat <san@google.com>
fs/proc/base.c
patch
|
blob
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index c16bde58ffdb2f95c6dee1032e6d129db46c2417..d7367affea2ac13b21f483849f57920735ddb1a5 100644
(file)
--- a/
fs/proc/base.c
+++ b/
fs/proc/base.c
@@
-247,7
+247,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;
}