Re: [PATCH 2/2] mm: restrict access to /proc/meminfo

From: Alan Cox
Date: Wed Sep 28 2011 - 16:44:25 EST


On Wed, 28 Sep 2011 13:31:45 -0700
Dave Hansen <dave@xxxxxxxxxxxxxxxxxx> wrote:

> On Tue, 2011-09-27 at 15:47 -0500, Christoph Lameter wrote:
> > On Tue, 27 Sep 2011, David Rientjes wrote:
> > > It'll turn into another one of our infinite number of
> > > capabilities. Does anything actually care about statistics at KB
> > > granularity these days?
> >
> > Changing that to MB may also break things. It may be better to have
> > consistent system for access control to memory management counters
> > that are not related to a process.
>
> We could also just _effectively_ make it output in MB:
>
> foo = foo & ~(1<<20)

I do not think that does what you intend 8)

I do like the idea - it avoids any interfaces vanishing and surprise
breakages while only CAP_SYS_whatever needs the real numbers
--
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/