[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091227190802.GH11737@elf.ucw.cz>
Date: Sun, 27 Dec 2009 20:08:02 +0100
From: Pavel Machek <pavel@....cz>
To: "Serge E. Hallyn" <serge@...lyn.com>
Cc: Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>,
viro@...IV.linux.org.uk, michael@...top.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
linux-security-module@...r.kernel.org, andi@...stfloor.org,
david@...g.hm, socketcan@...tkopp.net, alan@...rguk.ukuu.org.uk,
herbert@...dor.apana.org.au, Valdis.Kletnieks@...edu,
bdonlan@...il.com, zbr@...emap.net, cscott@...ott.net,
jmorris@...ei.org, ebiederm@...ssion.com, bernie@...ewiz.org,
mrs@...hic-beasts.com, randy.dunlap@...cle.com,
xiyou.wangcong@...il.com, sam@...ack.fr, casey@...aufler-ca.com,
serue@...ibm.com
Subject: Re: RFC: disablenetwork facility. (v4)
Hi!
> > I think seccomp() is too much restricted to apply for general applications.
> > Most applications will need some other syscalls in addition to exit(), read()
> > and write(). Most applications cannot use seccomp().
> >
> > What I want to do is similar to seccomp(), but allows userland process to
> > forbid some syscalls like execve(), mount(), chroot(), link(), unlink(),
> > socket(), bind(), listen() etc. selectively.
>
> The nice thing about the disablenetwork module is that (AFAICS so far)
> it actually is safe for an unprivileged user to do. I can't think of
> any setuid-root software which, if started with restricted-network by
> an unprivileged user, would become unsafe rather than simply
> failing.
"I can't see" is not strong enough test, I'd say.
For example, I can easily imagine something like pam falling back to
local authentication when network is unavailable. If you disable
network for su...
It would be also extremely easy to DoS something like sendmail -- if
it forks into background and then serves other users' requests.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists