From: Arjan van de Ven <arjan@linux.intel.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Kees Cook <kees@outflux.net>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] proc: maps protection
Date: Fri, 09 Mar 2007 21:01:41 -0800 [thread overview]
Message-ID: <45F23BB5.8090907@linux.intel.com> (raw)
In-Reply-To: <20070309183006.7ff23eff.akpm@linux-foundation.org>
Andrew Morton wrote:
>> On Thu, 8 Mar 2007 12:55:25 -0800 Kees Cook <kees@outflux.net> wrote:
>> On Tue, Mar 06, 2007 at 08:22:11PM -0800, Arjan van de Ven wrote:
>>>> [Adding Cc:lkml]
>>>> How about using a reduced check, as is done for fd and environ? This
>>>> would allow root-running system monitors to still do their job.
>>>> Effectively, this changes the test from "is ptracing" to just "can
>>>> ptrace".
>>>>
>>>> If this still isn't considered safe, I'll add the maps_protect file...
>>> btw I consider it an information leak that any user can see which
>>> files/libraries any other user and root has mmap'd. (and with glibc's
>>> stdio mmap feature that goes even beyond direct mmap to fopen()'d).
>>>
>>> If root or some other user wants to watch
>>> hillary-vs-obama-in-the-mud.avi, no other user has ANY business even
>>> seeing that. So at minimum it's a privacy issue showing the filenames...
>> So, what's the state of this? Is the reduced "allowed to ptrace" check
>> good enough for inclusion? What is needed for some form of this patch
>> to be included? I'm happy to try new approaches if I can get some
>> further input.
>
> I just don't know what it will break - we're changing things so that user A
> cannot monitor user B's memory maps. I feel that it's sure to break
> various people's fancy custom system activity monitoring/logging setups,
> and the sort of users who will be affected are, alas, the sort of people
> who won't run a kernel with this change in it for another couple of years
> yet.
except if they run RHEL or FC kernels, in which case they already have
that change
> Do we actually need to disable the whole interface? If all you're
> concerned about is the pathname then perhaps the knob could cause that
> pathname to be replaced with "<hidden>". That'll cause things to
> break less seriously and still allows somewhat useful info to be gathered.
the problem part is that you can see EXACLTY where glibc is loaded in
memory, which effectively defeats address space randomization for
local users....
next prev parent reply other threads:[~2007-03-10 5:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070307012234.GN9621@outflux.net>
[not found] ` <20070306175609.267bd7a9.akpm@linux-foundation.org>
[not found] ` <20070307021335.GR9621@outflux.net>
[not found] ` <20070306185942.585e7cd1.akpm@linux-foundation.org>
2007-03-07 3:14 ` [PATCH] proc: maps protection Kees Cook
2007-03-07 4:22 ` Arjan van de Ven
2007-03-08 20:55 ` Kees Cook
2007-03-10 2:30 ` Andrew Morton
2007-03-10 5:01 ` Arjan van de Ven [this message]
2007-03-10 18:33 ` Kees Cook
2007-03-11 0:21 ` Andrew Morton
2007-03-11 0:55 ` Matt Mackall
2007-03-11 1:43 ` Kees Cook
2007-03-11 1:55 ` Kees Cook
2007-03-12 17:20 ` [PATCH] getrusage() : Fill ru_inblock and ru_oublock fields if possible Eric Dumazet
2007-03-10 1:37 ` [PATCH] proc: maps protection Andy Isaacson
2007-03-05 20:15 Kees Cook
2007-03-06 0:23 ` Kees Cook
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45F23BB5.8090907@linux.intel.com \
--to=arjan@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=kees@outflux.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox