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:
ce84ca9
)
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
Colin Cross
<ccross@android.com>
Tue, 14 Jun 2011 16:09:18 +0000
(09:09 -0700)
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 a83d4cbd8f216ee706865abac67ec1ab0f474d56..bc71f120100d4332aaaf1799dca7379e59afa4c1 100644
(file)
--- a/
fs/proc/base.c
+++ b/
fs/proc/base.c
@@
-269,7
+269,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 = ERR_PTR(-EACCES);
}