Re: [PATCH] proc: restrict access to /proc/interrupts

From: Vasiliy Kulikov
Date: Mon Nov 07 2011 - 15:21:13 EST


On Mon, Nov 07, 2011 at 15:10 -0500, Valdis.Kletnieks@xxxxxx wrote:
> On Mon, 07 Nov 2011 11:18:32 PST, "H. Peter Anvin" said:
>
> > I would like to propose that we add a mount option to procfs, and
> > possibly sysfs, called, say, admingrp. These kinds of files then get
> > restricted to the admingrp (defaulting to gid 0 if no admingrp is
> > provided). Historically on Unix there has been a group of people
> > (usually "adm", but sometimes "log") who are allowed to read (but not
> > write) the log files, which also contains potentially sensitive information.
>
> Probably should be a two part - mount with 'gid=NNN', and then a
> perm=027 or whatever, to be treated similar to a umask. So 027
> would allow root to do anything, would disable write for the gid= group,
> and turn it off completely for others. Less paranoid sites could mount
> it with perm=002.
>
> Does that cover most of the use cases?

At the time of Linux 2.0-2.4 in Owl patch there was a plain on/off
configure option - 022 / 066 umask. Currently procfs restriction is
implemented in Grsecurity with the same all-or-nothing approach.
Brad Spengler told me that there were no user complains about the lack of
flexibility :-) So, I agree that we don't need anything more complex.


Thanks,

--
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/