close race in /proc/*/environ, CVE-2011-1020
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 13:13:44 +0000 (14:13 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Thu, 21 Jul 2011 20:08:08 +0000 (14:08 -0600)
commit6281ba6f3f1cd818ef1b437f55402bfaf09467e1
tree3749bc31d3b2c10744330500338c931c8b2d1276
parent3cb43c2db95412f277709a79c5d46c4ecb0beeb5
close race in /proc/*/environ, CVE-2011-1020

Switch to mm_for_maps().  Maybe we ought to make it r--r--r--,
since we do checks on IO anyway...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
(cherry picked from commit d6f64b89d7ff22ce05896ab4a93a653e8d0b123d)
CVE-2011-1020
BugLink: http://bugs.launchpad.net/bugs/813026
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/proc/base.c