aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-02-15 22:52:11 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-23 16:36:52 -0400
commit2fadaef41283aad7100fa73f01998cddaca25833 (patch)
tree110c35c301a504d03d73d1aea2904abc43ccce6f /fs/proc
parentd6f64b89d7ff22ce05896ab4a93a653e8d0b123d (diff)
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index fc471b8766d1..e94b58b496f1 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -281,9 +281,9 @@ out:
281 281
282static int proc_pid_auxv(struct task_struct *task, char *buffer) 282static int proc_pid_auxv(struct task_struct *task, char *buffer)
283{ 283{
284 int res = 0; 284 struct mm_struct *mm = mm_for_maps(task);
285 struct mm_struct *mm = get_task_mm(task); 285 int res = PTR_ERR(mm);
286 if (mm) { 286 if (mm && !IS_ERR(mm)) {
287 unsigned int nwords = 0; 287 unsigned int nwords = 0;
288 do { 288 do {
289 nwords += 2; 289 nwords += 2;