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-10-17 08:42:47 -07:00
2007-11-05 15:12:32 -08:00
2007-10-19 11:53:37 -07:00
2007-12-05 09:25:20 -08:00
2007-12-05 09:25:19 -08:00
2007-10-19 11:53:37 -07:00
2007-10-22 08:13:21 -07:00
2007-12-17 19:28:16 -08:00
2007-12-17 19:28:16 -08:00
2007-10-16 09:43:07 -07:00
2007-10-17 18:49:59 -04:00
2007-12-12 11:12:15 -05:00
2007-10-18 14:37:31 -07:00
2007-11-03 12:27:21 -07:00
2007-11-14 18:45:43 -08:00
2007-12-05 09:21:18 -08:00
2007-10-17 08:42:54 -07:00
2007-10-21 08:54:05 -07:00
2007-10-17 08:42:45 -07:00
2007-07-19 10:04:45 -07:00
2007-07-29 17:09:29 -07:00
2007-10-16 09:42:53 -07:00
2007-11-28 10:58:01 -08:00
2007-10-17 08:43:02 -07:00
2007-12-17 19:28:16 -08:00
2007-10-22 08:13:19 -07:00
2007-10-16 09:42:54 -07:00
2007-07-19 10:04:45 -07:00
2007-11-14 18:45:42 -08:00
2007-10-15 17:00:19 +02:00
2007-07-27 15:40:13 -07:00
2007-10-19 11:53:41 -07:00
2007-10-17 08:43:01 -07:00
2007-10-17 08:43:07 -07:00
2007-10-17 08:42:52 -07:00