From: Chris Wright <chrisw@osdl.org>
To: Maciej Zenczykowski <maze@cela.pl>
Cc: Valdis.Kletnieks@vt.edu, "Sven Köhler" <skoehler@upb.de>,
linux-kernel@vger.kernel.org
Subject: Re: why are capabilities disabled?
Date: Fri, 13 Feb 2004 10:44:06 -0800 [thread overview]
Message-ID: <20040213104405.C14506@build.pdx.osdl.net> (raw)
In-Reply-To: <Pine.LNX.4.44.0402131914280.12513-100000@gaia.cela.pl>; from maze@cela.pl on Fri, Feb 13, 2004 at 07:22:52PM +0100
* Maciej Zenczykowski (maze@cela.pl) wrote:
> > or less). Also note that exploited code can cause an exec() in a program
> > that doesn't even have a call to exec() in it....
>
> Obviously a program without exec in it should not have the
> right/priviledge/capability to call exec period.
Add shared libraries and this distinction gets much less clear, at least
from a static analysis point of view.
> We should provide some sort of way for each process directly after
> start-up (or later on, after it's done ssetting up whatever) to declare
> which syscalls (subfunctions for networking) it will
> never use so that they can be quickly and efficiently disabled to ENOSYS
> or EDISABLED or whatever. Such 'capabilities' should be per pid per
> syscall/subfunction and should be inherited over fork/exec and should only
> be allowed to be set (no enabling by self - only by a process with that
> syscall only enabled for another process with it disabled).
While this is interesting, it quickly hits limitations. Many programs
will need to open/read/write, for example. So mediating at the syscall
level is only moderatly useful. LSM gives finer grained mediation points,
and something like SELinux using LSM allows you to do what you've done,
and is much more flexible.
thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
next prev parent reply other threads:[~2004-02-13 18:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-13 15:29 Sven Köhler
2004-02-13 16:01 ` Valdis.Kletnieks
2004-02-13 17:54 ` Sven Köhler
2004-02-13 18:08 ` Valdis.Kletnieks
2004-02-13 18:22 ` Maciej Zenczykowski
2004-02-13 18:44 ` Chris Wright [this message]
2004-02-13 18:22 ` Chris Wright
2004-02-13 15:35 Sven Köhler
2004-02-13 18:15 ` Chris Wright
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040213104405.C14506@build.pdx.osdl.net \
--to=chrisw@osdl.org \
--cc=Valdis.Kletnieks@vt.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=maze@cela.pl \
--cc=skoehler@upb.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®