Skip to content

Commit

Permalink
auxv: require the target to be tracable (or yourself)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro committed Mar 23, 2011
1 parent d6f64b8 commit 2fadaef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ static int proc_pid_cmdline(struct task_struct *task, char * buffer)

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;
Expand Down

0 comments on commit 2fadaef

Please sign in to comment.