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

From: Vasiliy Kulikov
Date: Fri Sep 30 2011 - 16:14:00 EST


On Fri, Sep 30, 2011 at 13:03 -0700, Andrew Morton wrote:
> meminfo has been around for a very long time and is a convenient and
> centralised point for collecting memory data. There will be a large
> number of apps/scripts/tools out there which use it. Many of these
> won't even be available to us.
>
> All of which makes it very hard for us to predict how much breakage we
> will cause.
>
> > If we care about (2), we should pass non-zero counters, but imagine some
> > default values, which will result in sane processes numbers. But it
> > might depend on specific applications, I'm not aware whether (2) is
> > real.
> >
> >
> > Other ideas?
>
> echo "chmod 0400 /proc/meminfo" >> /etc/rc.local

How will it help to fix apps' dependencies on meminfo?

--
Vasiliy Kulikov
http://www.openwall.com - bringing security into open computing environments
--
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/