All of lore.kernel.org
 help / color / mirror / Atom feed
* Push mmap_min_addr changes to Linus
@ 2009-08-14 13:01 Eric Paris
  2009-08-15  9:46 ` James Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Paris @ 2009-08-14 13:01 UTC (permalink / raw)
  To: selinux; +Cc: jmorris, sds

I'm tired of these recent exploits and SELinux being weaker against
local user priv escalation bugs using NULL pointers.  Can we push 

7c73875e7dda627040b12c19b01db634fa7f0fd1
84336d1a77ccd2c06a730ddd38e695c2324a7386
a2551df7ec568d87793d2eea4ca744e86318f205
47d439e9fb8a81a90022cfa785bf1c36c4e2aff6

To linus?  It's fixing a clear security bug in that we are not checking
DAC before granting mmap_min_addr.  If need be I'll write another
smaller patch which just does the DAC check in the SELinux security
hook, but I'd rather see the true separation.

-Eric


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Push mmap_min_addr changes to Linus
  2009-08-14 13:01 Push mmap_min_addr changes to Linus Eric Paris
@ 2009-08-15  9:46 ` James Morris
  2009-08-15 23:28   ` Eric Paris
  0 siblings, 1 reply; 3+ messages in thread
From: James Morris @ 2009-08-15  9:46 UTC (permalink / raw)
  To: Eric Paris; +Cc: selinux, sds

On Fri, 14 Aug 2009, Eric Paris wrote:

> I'm tired of these recent exploits and SELinux being weaker against
> local user priv escalation bugs using NULL pointers.  Can we push 
> 
> 7c73875e7dda627040b12c19b01db634fa7f0fd1
> 84336d1a77ccd2c06a730ddd38e695c2324a7386
> a2551df7ec568d87793d2eea4ca744e86318f205
> 47d439e9fb8a81a90022cfa785bf1c36c4e2aff6
> 
> To linus?  It's fixing a clear security bug in that we are not checking
> DAC before granting mmap_min_addr.  If need be I'll write another
> smaller patch which just does the DAC check in the SELinux security
> hook, but I'd rather see the true separation.

Probably best to make the smallest possible change now, so I suggest the 
latter (which might be useful for distro backporting).


-- 
James Morris
<jmorris@namei.org>

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Push mmap_min_addr changes to Linus
  2009-08-15  9:46 ` James Morris
@ 2009-08-15 23:28   ` Eric Paris
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Paris @ 2009-08-15 23:28 UTC (permalink / raw)
  To: James Morris; +Cc: selinux, sds

On Sat, 2009-08-15 at 19:46 +1000, James Morris wrote:
> On Fri, 14 Aug 2009, Eric Paris wrote:
> 
> > I'm tired of these recent exploits and SELinux being weaker against
> > local user priv escalation bugs using NULL pointers.  Can we push 
> > 
> > 7c73875e7dda627040b12c19b01db634fa7f0fd1
> > 84336d1a77ccd2c06a730ddd38e695c2324a7386
> > a2551df7ec568d87793d2eea4ca744e86318f205
> > 47d439e9fb8a81a90022cfa785bf1c36c4e2aff6
> > 
> > To linus?  It's fixing a clear security bug in that we are not checking
> > DAC before granting mmap_min_addr.  If need be I'll write another
> > smaller patch which just does the DAC check in the SELinux security
> > hook, but I'd rather see the true separation.
> 
> Probably best to make the smallest possible change now, so I suggest the 
> latter (which might be useful for distro backporting).

I thought about it overnight and decided that I am unwilling to go that
route.  Tieing both CAP_SYS_RAWIO and mmap_zero to the same /proc
tunable would reduce security when people have to set it to 0.  While we
fix the current SELinux weakness compared to non-SELinux systems we
would be giving up the current SELinux strengths.

Please push these as they stand.

-Eric


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-15 23:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-14 13:01 Push mmap_min_addr changes to Linus Eric Paris
2009-08-15  9:46 ` James Morris
2009-08-15 23:28   ` Eric Paris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.