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:
d5b7dff
)
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
John Stultz
<john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:50 +0000
(13:53 -0800)
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 1155eac616878b5494ae94f2f1d0294812ddda72..7ec6e9939b2c97c0ee62ec8cfdf05fd74bc4f4e7 100644
(file)
--- a/
kernel/fork.c
+++ b/
kernel/fork.c
@@
-800,7
+800,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);
}