From: Pavel Machek <pavel@ucw.cz>
To: Eric Paris <eparis@redhat.com>
Cc: linux-kernel@vger.kernel.org,
linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov,
sds@tycho.nsa.gov, jmorris@namei.org, spender@grsecurity.net,
dwalsh@redhat.com, cl@linux-foundation.org, arjan@infradead.org,
alan@lxorguk.ukuu.org.uk
Subject: Re: mmap_min_addr and your local LSM (ok, just SELinux)
Date: Thu, 30 Jul 2009 11:06:45 +0200 [thread overview]
Message-ID: <20090730090645.GB1364@ucw.cz> (raw)
In-Reply-To: <1248132223.2654.278.camel@localhost>
Hi!
> Brad Spengler recently pointed out that the SELinux decision on how to
> handle mmap_min_addr in some ways weakens system security vs on a system
> without SELinux (and in other ways can be stronger). There is a trade
> off and a reason I did what I did but I would like ideas and discussion
> on how to get the best of both worlds.
>
> With SELinux mapping the 0 page requires an SELinux policy permission,
> mmap_zero. Without SELinux mapping the 0 page requires CAP_SYS_RAWIO.
> Note that CAP_SYS_RAWIO roughly translates to uid=0 since noone really
> does interesting things with capabilities.
I wonder if cap_sys_rawio is right capability for this..? rawio
normally grants you kernel-llevel access, so you don't want to give it
to wine. But maybe if it checked cap_sys_nice or some new capability,
we could reasonably give that to wine, and problem would be gone?
cap_sys_obscure_features ?
(I guess vm86 mode should fall under that, too :-)
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
prev parent reply other threads:[~2009-08-02 12:49 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-20 23:23 Eric Paris
2009-07-21 0:14 ` Christopher Pardy
2009-07-21 13:41 ` Daniel J Walsh
2009-07-21 3:45 ` James Morris
2009-07-21 14:44 ` James Carter
2009-07-22 10:06 ` James Morris
2009-07-28 0:19 ` Alan Cox
2009-07-28 3:28 ` Kyle Moffett
2009-07-28 9:21 ` Andi Kleen
2009-07-28 10:00 ` Alan Cox
2009-07-28 11:21 ` Andi Kleen
2009-07-28 13:35 ` Brad Spengler
2009-07-28 14:48 ` Andi Kleen
2009-07-28 15:56 ` Kees Cook
2009-07-28 16:23 ` Andi Kleen
2009-07-21 3:48 ` Arjan van de Ven
2009-07-21 11:51 ` Brad Spengler
2009-07-21 4:13 ` Kyle McMartin
2009-07-21 11:31 ` Arnd Bergmann
2009-07-30 9:06 ` Pavel Machek [this message]
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=20090730090645.GB1364@ucw.cz \
--to=pavel@ucw.cz \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=arjan@infradead.org \
--cc=cl@linux-foundation.org \
--cc=dwalsh@redhat.com \
--cc=eparis@redhat.com \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=spender@grsecurity.net \
/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®