[lkml]   [2011]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/2] mm: restrict access to /proc/meminfo
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)

or align-up. We could also give the imprecise numbers to unprivileged
users and let privileged ones see the page-level ones.

-- Dave

 \ /
  Last update: 2011-09-28 22:37    [W:0.067 / U:2.452 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site