Al Viro 831830b5a2 restrict reading from /proc/<pid>/maps to those who share ->mm or can ptrace pid
Contents of /proc/*/maps is sensitive and may become sensitive after
open() (e.g.  if target originally shares our ->mm and later does exec
on suid-root binary).

Check at read() (actually, ->start() of iterator) time that mm_struct
we'd grabbed and locked is
 - still the ->mm of target
 - equal to reader's ->mm or the target is ptracable by reader.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-01-02 13:13:27 -08:00
..
2007-11-20 01:18:37 -05:00
2007-12-17 19:28:16 -08:00
2007-12-08 14:41:29 +00:00
2007-11-28 01:24:04 +09:00
2007-12-26 19:36:35 -08:00
2007-11-02 08:47:06 +01:00
2007-11-20 20:16:43 +01:00