<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How SE Linux Prevents Local Root Exploits</title>
	<atom:link href="http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/feed/" rel="self" type="application/rss+xml" />
	<link>http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/</link>
	<description>Linux, politics, and other interesting things</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:09:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: etbe</title>
		<link>http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/comment-page-1/#comment-7237</link>
		<dc:creator>etbe</dc:creator>
		<pubDate>Wed, 10 Oct 2007 22:35:02 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/#comment-7237</guid>
		<description>Olaf: You are correct that capabilities can be dropped, but this only works if capabilities are dropped correctly (there have been programs with bugs in this regard) and if the exploit can not happen before the capabilities are dropped (which has happened too).

Jeff: That&#039;s great, so once 2.6.24 is out the use of such features can be considered in distributions.  Maybe in 3 years time we will have distributions using it.

Also we will have some push-back from users about this.  For example when programs that currently run as root are run as non-root then their data files need to be owned by non-root.  If a program that is currently setuid is made setcap then when root runs it the result will be different from when non-root runs it - not an insurmountable problem but as we have seen with users turning off SE Linux it&#039;s something that will cause acceptance problems.</description>
		<content:encoded><![CDATA[<p>Olaf: You are correct that capabilities can be dropped, but this only works if capabilities are dropped correctly (there have been programs with bugs in this regard) and if the exploit can not happen before the capabilities are dropped (which has happened too).</p>
<p>Jeff: That&#8217;s great, so once 2.6.24 is out the use of such features can be considered in distributions.  Maybe in 3 years time we will have distributions using it.</p>
<p>Also we will have some push-back from users about this.  For example when programs that currently run as root are run as non-root then their data files need to be owned by non-root.  If a program that is currently setuid is made setcap then when root runs it the result will be different from when non-root runs it &#8211; not an insurmountable problem but as we have seen with users turning off SE Linux it&#8217;s something that will cause acceptance problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Schroeder</title>
		<link>http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/comment-page-1/#comment-7206</link>
		<dc:creator>Jeff Schroeder</dc:creator>
		<pubDate>Wed, 10 Oct 2007 17:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/#comment-7206</guid>
		<description>&quot;As for setuid executables, there is work on creating set-cap executables but it isn’t going to go mainline in Linux for a while.&quot;

@etbe, you are actually wrong. Take a look at Andrew&#039;s merge plans for 2.6.24:
http://lkml.org/lkml/2007/10/1/314

CTRL F search for &#039;implement-file-posix-capabilities.patch&#039;. It allows you to set CAP_NET_RAW on /bin/ping and strip the suid root bit off of it. Serge E. Hallyn, the author, was very responsive to comments and critiques. After sitting in -mm, this is finally being merged into mainline.

You can get the userspace tools from either of these sites:
http://www.olafdietsche.de/linux/capability/ # The original author of the userspace tools
http://www.sr71.net/~hallyn/fscaps/ # The guy that wrote the kernel patch accepted into mainline&#039;s site</description>
		<content:encoded><![CDATA[<p>&#8220;As for setuid executables, there is work on creating set-cap executables but it isn’t going to go mainline in Linux for a while.&#8221;</p>
<p>@etbe, you are actually wrong. Take a look at Andrew&#8217;s merge plans for 2.6.24:<br />
<a href="http://lkml.org/lkml/2007/10/1/314" rel="nofollow">http://lkml.org/lkml/2007/10/1/314</a></p>
<p>CTRL F search for &#8216;implement-file-posix-capabilities.patch&#8217;. It allows you to set CAP_NET_RAW on /bin/ping and strip the suid root bit off of it. Serge E. Hallyn, the author, was very responsive to comments and critiques. After sitting in -mm, this is finally being merged into mainline.</p>
<p>You can get the userspace tools from either of these sites:<br />
<a href="http://www.olafdietsche.de/linux/capability/" rel="nofollow">http://www.olafdietsche.de/linux/capability/</a> # The original author of the userspace tools<br />
<a href="http://www.sr71.net/~hallyn/fscaps/" rel="nofollow">http://www.sr71.net/~hallyn/fscaps/</a> # The guy that wrote the kernel patch accepted into mainline&#8217;s site</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf van der Spek</title>
		<link>http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/comment-page-1/#comment-7196</link>
		<dc:creator>Olaf van der Spek</dc:creator>
		<pubDate>Wed, 10 Oct 2007 14:27:10 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/#comment-7196</guid>
		<description>Can&#039;t the DHCP server (and other setuid executables) drop capabilities or root after it has used them?
Receiving UDP broadcast packets doesn&#039;t seem such an issue, I think it&#039;s actually sending them that requires CAP_NET_RAW.</description>
		<content:encoded><![CDATA[<p>Can&#8217;t the DHCP server (and other setuid executables) drop capabilities or root after it has used them?<br />
Receiving UDP broadcast packets doesn&#8217;t seem such an issue, I think it&#8217;s actually sending them that requires CAP_NET_RAW.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: etbe</title>
		<link>http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/comment-page-1/#comment-7193</link>
		<dc:creator>etbe</dc:creator>
		<pubDate>Wed, 10 Oct 2007 13:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/#comment-7193</guid>
		<description>Olaf: A DHCP server needs to receive UDP packets from machines that have no IP address and are not addressed to the server (the client generally doesn&#039;t know the address of the server).  Therefore it needs CAP_NET_RAW (which means root).

As for setuid executables, there is work on creating set-cap executables but it isn&#039;t going to go mainline in Linux for a while.</description>
		<content:encoded><![CDATA[<p>Olaf: A DHCP server needs to receive UDP packets from machines that have no IP address and are not addressed to the server (the client generally doesn&#8217;t know the address of the server).  Therefore it needs CAP_NET_RAW (which means root).</p>
<p>As for setuid executables, there is work on creating set-cap executables but it isn&#8217;t going to go mainline in Linux for a while.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olaf van der Spek</title>
		<link>http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/comment-page-1/#comment-7175</link>
		<dc:creator>Olaf van der Spek</dc:creator>
		<pubDate>Wed, 10 Oct 2007 10:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/#comment-7175</guid>
		<description>&gt; On a machine running without SE Linux a compromise of a DHCP server is game-over as the server runs as root. 

There&#039;s probably a good reason for running as root, but I&#039;ve no idea what it would be.

&gt; setuid executables

Why isn&#039;t the setuid bit replaced by a set of privileges that are actually required instead of granting all those privileges at once via a single bit?</description>
		<content:encoded><![CDATA[<p>&gt; On a machine running without SE Linux a compromise of a DHCP server is game-over as the server runs as root. </p>
<p>There&#8217;s probably a good reason for running as root, but I&#8217;ve no idea what it would be.</p>
<p>&gt; setuid executables</p>
<p>Why isn&#8217;t the setuid bit replaced by a set of privileges that are actually required instead of granting all those privileges at once via a single bit?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Schroeder</title>
		<link>http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/comment-page-1/#comment-7087</link>
		<dc:creator>Jeff Schroeder</dc:creator>
		<pubDate>Tue, 09 Oct 2007 23:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/2007/10/10/how-se-linux-prevents-local-root-exploits/#comment-7087</guid>
		<description>Dan Walsh did a good blog post about how SELinux constrained 2 samba vulnerabilities. In the comments, it also links to a Mambo exploit blocked by SELinux.
http://danwalsh.livejournal.com/10131.html

One of those samba exploits actually could result in remote command execution if SELinux was not enabled.</description>
		<content:encoded><![CDATA[<p>Dan Walsh did a good blog post about how SELinux constrained 2 samba vulnerabilities. In the comments, it also links to a Mambo exploit blocked by SELinux.<br />
<a href="http://danwalsh.livejournal.com/10131.html" rel="nofollow">http://danwalsh.livejournal.com/10131.html</a></p>
<p>One of those samba exploits actually could result in remote command execution if SELinux was not enabled.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

