mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
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>
This commit is contained in:
parent
d6f64b89d7
commit
2fadaef412
@ -281,9 +281,9 @@ out:
|
|||||||
|
|
||||||
static int proc_pid_auxv(struct task_struct *task, char *buffer)
|
static int proc_pid_auxv(struct task_struct *task, char *buffer)
|
||||||
{
|
{
|
||||||
int res = 0;
|
struct mm_struct *mm = mm_for_maps(task);
|
||||||
struct mm_struct *mm = get_task_mm(task);
|
int res = PTR_ERR(mm);
|
||||||
if (mm) {
|
if (mm && !IS_ERR(mm)) {
|
||||||
unsigned int nwords = 0;
|
unsigned int nwords = 0;
|
||||||
do {
|
do {
|
||||||
nwords += 2;
|
nwords += 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user