All of lore.kernel.org
 help / color / mirror / Atom feed
* Disabling SELinux by kernel vulnerability
@ 2008-02-12 14:43 Yuichi Nakamura
  2008-02-12 14:59 ` Daniel J Walsh
  2008-02-12 18:45 ` Stephen Smalley
  0 siblings, 2 replies; 9+ messages in thread
From: Yuichi Nakamura @ 2008-02-12 14:43 UTC (permalink / raw)
  To: selinux; +Cc: himainu-ynakam

Hi.

I saw an article on slashdot.
http://it.slashdot.org/article.pl?sid=08/02/10/2011257

Local exploit code for Linux kernel exists, 
exploit code is also disclosed in http://www.milw0rm.com/exploits/5092.

In the exploit code, only uid is changed to 0.
So, SELinux is not affected.

However, SELinux can be disabled by overwriting selinux_enforcing to 0.
The address of selinux_enforcing can be seen in /proc/kallsyms, 
and I've set the value on the address to 0.

I tried that on Fedora 8, 
and I could disable SELinux(set selinux as permissive) from xguest_t
domain.

I want to make it more difficult 
for attackers to disable SELinux by kernel exploit.

I think not exporting selinux_enforcing(and selinux_disable) to
/proc/kallsyms is useful.
And /proc/kallsyms is visible from many processes because it is proc_t,
assigning /proc/kallsyms label such as proc_ksym_t may be also useful.
Are they really useful?
Or any idea??

--
Yuichi Nakamura

--
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] 9+ messages in thread

end of thread, other threads:[~2008-02-13 14:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-12 14:43 Disabling SELinux by kernel vulnerability Yuichi Nakamura
2008-02-12 14:59 ` Daniel J Walsh
2008-02-12 15:45   ` Todd Miller
2008-02-13 13:19     ` Yuichi Nakamura
2008-02-12 18:45 ` Stephen Smalley
2008-02-13 12:06   ` Waide, Ronan
2008-02-13 14:22     ` Stephen Smalley
2008-02-13 13:47   ` Yuichi Nakamura
2008-02-13 14:47     ` Stephen Smalley

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.