diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-02-15 22:52:11 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-03-23 16:36:52 -0400 |
commit | 2fadaef41283aad7100fa73f01998cddaca25833 (patch) | |
tree | 110c35c301a504d03d73d1aea2904abc43ccce6f /fs/proc | |
parent | d6f64b89d7ff22ce05896ab4a93a653e8d0b123d (diff) | |
download | linux-3.10-2fadaef41283aad7100fa73f01998cddaca25833.tar.gz linux-3.10-2fadaef41283aad7100fa73f01998cddaca25833.tar.bz2 linux-3.10-2fadaef41283aad7100fa73f01998cddaca25833.zip |
auxv: require the target to be tracable (or yourself)
same as for environ, except that we didn't do any checks to
prevent access after suid execve
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/base.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index fc471b8766d..e94b58b496f 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -281,9 +281,9 @@ out: static int proc_pid_auxv(struct task_struct *task, char *buffer) { - int res = 0; - struct mm_struct *mm = get_task_mm(task); - if (mm) { + struct mm_struct *mm = mm_for_maps(task); + int res = PTR_ERR(mm); + if (mm && !IS_ERR(mm)) { unsigned int nwords = 0; do { nwords += 2; |