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

From: Valdis . Kletnieks
Date: Wed Sep 28 2011 - 20:45:37 EST


On Wed, 28 Sep 2011 13:31:45 PDT, Dave Hansen said:

> We could also just _effectively_ make it output in MB:
>
> foo = foo & ~(1<<20)
>
> or align-up.

I think we want align-up here, there's a bunch of fields that code probably
expects to be non-zero on a system that's finished booting...

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

That also sounds like a good idea.

Attachment: pgp00000.pgp
Description: PGP signature