diff options
author | Gokhan Moral <gm@alumni.bilkent.edu.tr> | 2012-09-18 22:37:22 +0200 |
---|---|---|
committer | codeworkx <codeworkx@cyanogenmod.com> | 2012-09-18 22:39:24 +0200 |
commit | 5f67568eb31e3a813c7c52461dcf66ade15fc2e7 (patch) | |
tree | c1e8fa95ba64e9ab5d52e9fcfdd0f8f05705be82 | |
parent | f991bd2a427ec6a5e049e19745aba6a5d7f006c4 (diff) | |
download | kernel_samsung_smdk4412-5f67568eb31e3a813c7c52461dcf66ade15fc2e7.zip kernel_samsung_smdk4412-5f67568eb31e3a813c7c52461dcf66ade15fc2e7.tar.gz kernel_samsung_smdk4412-5f67568eb31e3a813c7c52461dcf66ade15fc2e7.tar.bz2 |
fix permission issue which prevents "active tasks" shown in
Change-Id: I16a37870d70e4abd0742e570b470e983d714a4eb
-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 cd2df5a..8cabc8d 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -211,7 +211,8 @@ static 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); } |