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:
1cd2b0c
)
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, 1 Jul 2013 20:40:28 +0000
(13:40 -0700)
Signed-off-by: San Mehat <san@google.com>
kernel/fork.c
patch
|
blob
|
history
diff --git
a/kernel/fork.c
b/kernel/fork.c
index 987b28a1f01b6c6ce5d554eb22d9c89e1cde1e7b..5733ad5d5856d8ba7f4c9137ee6608339c65cdd1 100644
(file)
--- a/
kernel/fork.c
+++ b/
kernel/fork.c
@@
-696,7
+696,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);
}