Re: [PATCH] restrict reading from /proc/<pid>/maps to those whoshare ->mm or can ptrace pid

From: Rik van Riel
Date: Wed Jan 02 2008 - 09:37:38 EST


On Wed, 2 Jan 2008 14:09:57 +0000
Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:

> 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@xxxxxxxxxxxxxxxxxx>
Acked-by: Rik van Riel <riel@xxxxxxxxxx>

--
All rights reversed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/