Gentoo Archives: gentoo-dev

From: Ned Ludd <solar@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Making procfs mount as nosuid,noexec by default
Date: Sat, 15 Jul 2006 18:59:45
Message-Id: 1152989619.24093.27.camel@localhost
In Reply to: Re: [gentoo-dev] Making procfs mount as nosuid,noexec by default by Ned Ludd
1 On Sat, 2006-07-15 at 13:41 -0400, Ned Ludd wrote:
2 > On Sat, 2006-07-15 at 17:45 +0100, Daniel Drake wrote:
3 > > Hi,
4 > >
5 > > The local root exploit-of-the-week would have been unable to run if our
6 > > users systems had /proc mounted with nosuid and/or noexec
7 > >
8 > > It would be worthwhile considering making this a default. What are
9 > > people's thoughts?
10 >
11 > I mailed Mike about this very thing a month ago. Pretty sure it should
12 > be showing up in an upcoming baselayout. But yeah it's a good idea for
13 > the nosuid part anyway. Not 100% sure about the noexec part as that
14 > might break upx which calls /proc/self/exe as part of it's decompresser
15 > routines.
16
17 Tested it using a and it seems safe across the board. upx,busybox and
18 other multicall binaries seem quite content. Linus also recently
19 suggested that the same be done in the kernel directly via the
20 proc_fill_super() function. This seems like an ideal route to go for us
21 as it would get inherited by all the existing users who wont notice
22 the change in the default fstab file.
23
24 --
25 Ned Ludd <solar@g.o>
26 Gentoo Linux
27
28 --
29 gentoo-dev@g.o mailing list