<?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: Aaaaaaaaaaaargh SELinux!</title>
	<atom:link href="http://phpkitchen.com/2009/01/aaaaaaaaaaaargh-selinux/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpkitchen.com/2009/01/aaaaaaaaaaaargh-selinux/</link>
	<description>PHP and Web Development News and Tips</description>
	<lastBuildDate>Sat, 13 Mar 2010 09:49:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David Keen</title>
		<link>http://phpkitchen.com/2009/01/aaaaaaaaaaaargh-selinux/comment-page-1/#comment-912</link>
		<dc:creator>David Keen</dc:creator>
		<pubDate>Thu, 08 Jan 2009 16:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://phpkitchen.com/?p=914#comment-912</guid>
		<description>The only time you would really need to relabel a complete file system is when enabling SELinux for the first time or if you have disabled it and then want to enable it at a later date.  It just makes sure all files have the correct SELinux context.

The easiest way to do it is to &#039;touch /.autorelabel&#039; and then reboot.

I agree SELinux can be confusing but it is actually a Good Thing, if you want to spend the time learning about it. To be honest you can get a long way with just the basics. The policies in Fedora have improved a great deal since it was first introduced and a lot of things can be fixed by setting booleans.  Try &#039;getsebool -a&#039; and &#039;man setsebool&#039;.

Also Fedora 10 has a good SELinux assistant if you are running a GUI which will pop up a warning when an access has been denied and will suggest the right command to run to fix the problem.

But yeah, it&#039;s often easiest to just set it to permissive and ignore it. ;-)</description>
		<content:encoded><![CDATA[<p>The only time you would really need to relabel a complete file system is when enabling SELinux for the first time or if you have disabled it and then want to enable it at a later date.  It just makes sure all files have the correct SELinux context.</p>
<p>The easiest way to do it is to &#8216;touch /.autorelabel&#8217; and then reboot.</p>
<p>I agree SELinux can be confusing but it is actually a Good Thing, if you want to spend the time learning about it. To be honest you can get a long way with just the basics. The policies in Fedora have improved a great deal since it was first introduced and a lot of things can be fixed by setting booleans.  Try &#8216;getsebool -a&#8217; and &#8216;man setsebool&#8217;.</p>
<p>Also Fedora 10 has a good SELinux assistant if you are running a GUI which will pop up a warning when an access has been denied and will suggest the right command to run to fix the problem.</p>
<p>But yeah, it&#8217;s often easiest to just set it to permissive and ignore it. <img src='http://phpkitchen.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Demian Turner</title>
		<link>http://phpkitchen.com/2009/01/aaaaaaaaaaaargh-selinux/comment-page-1/#comment-909</link>
		<dc:creator>Demian Turner</dc:creator>
		<pubDate>Thu, 08 Jan 2009 06:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://phpkitchen.com/?p=914#comment-909</guid>
		<description>@David Keen

Hey, thanks for the info Dave, as a SElinux abstainer I can honestly say this is the first thing I learn about it ;-)

I will investigate &#039;permissive&#039; - what is complete relabling?</description>
		<content:encoded><![CDATA[<p>@David Keen</p>
<p>Hey, thanks for the info Dave, as a SElinux abstainer I can honestly say this is the first thing I learn about it <img src='http://phpkitchen.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>I will investigate &#8216;permissive&#8217; &#8211; what is complete relabling?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Demian Turner</title>
		<link>http://phpkitchen.com/2009/01/aaaaaaaaaaaargh-selinux/comment-page-1/#comment-908</link>
		<dc:creator>Demian Turner</dc:creator>
		<pubDate>Thu, 08 Jan 2009 06:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://phpkitchen.com/?p=914#comment-908</guid>
		<description>@Rob Wilkerson

same here wrt disabling it when it comes to local Fedora/rh installs I setup from scratch, but the gotcha here was the hosting provider enabled it by default.  In the 5 or so commercial boxes I&#039;ve setup in the last 12 months, no one had ever enabled it by default.  Makes we wonder if this is a Fedora precedent?</description>
		<content:encoded><![CDATA[<p>@Rob Wilkerson</p>
<p>same here wrt disabling it when it comes to local Fedora/rh installs I setup from scratch, but the gotcha here was the hosting provider enabled it by default.  In the 5 or so commercial boxes I&#8217;ve setup in the last 12 months, no one had ever enabled it by default.  Makes we wonder if this is a Fedora precedent?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Keen</title>
		<link>http://phpkitchen.com/2009/01/aaaaaaaaaaaargh-selinux/comment-page-1/#comment-910</link>
		<dc:creator>David Keen</dc:creator>
		<pubDate>Wed, 07 Jan 2009 16:50:16 +0000</pubDate>
		<guid isPermaLink="false">http://phpkitchen.com/?p=914#comment-910</guid>
		<description>Yeah SELinux is fun!

You can get the current SELinux status (which may be different from what&#039;s in the config file) by running &#039;getenforce&#039;.

You can also set it like this: &#039;setenforce permissive&#039;.

This takes effect immediately so is easier for testing than changing the config file and rebooting (although you still need to change the config file to make it permanent.)

Also, if you want to disable SELinux, I&#039;d recommend setting it to permissive rather than disabled. If you disable SELinux completely and then decide you want it at a later date any new files won&#039;t have the right context and lots of stuff will break in a most exciting way. You would then need to do a complete relabel.</description>
		<content:encoded><![CDATA[<p>Yeah SELinux is fun!</p>
<p>You can get the current SELinux status (which may be different from what&#8217;s in the config file) by running &#8216;getenforce&#8217;.</p>
<p>You can also set it like this: &#8217;setenforce permissive&#8217;.</p>
<p>This takes effect immediately so is easier for testing than changing the config file and rebooting (although you still need to change the config file to make it permanent.)</p>
<p>Also, if you want to disable SELinux, I&#8217;d recommend setting it to permissive rather than disabled. If you disable SELinux completely and then decide you want it at a later date any new files won&#8217;t have the right context and lots of stuff will break in a most exciting way. You would then need to do a complete relabel.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Wilkerson</title>
		<link>http://phpkitchen.com/2009/01/aaaaaaaaaaaargh-selinux/comment-page-1/#comment-911</link>
		<dc:creator>Rob Wilkerson</dc:creator>
		<pubDate>Wed, 07 Jan 2009 14:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://phpkitchen.com/?p=914#comment-911</guid>
		<description>SELinux is one of the most frustrating security devices I&#039;ve ever encountered. Like you, it&#039;s the first thing I disable when installing a new RH-based distro where they seem to like it enabled by default. It&#039;s been a while since my last install, but I believe my last few had an installer option to dis/enable it.

Maybe it&#039;s because I&#039;ve never really understood it (I can honestly say that I have no real sense of how it does what it does), but I&#039;ve run into far more issues with it over the years than it&#039;s worth. Since most of my installs are internal and require no aggressive security, I have the luxury of being able to simply turn it off. :-)</description>
		<content:encoded><![CDATA[<p>SELinux is one of the most frustrating security devices I&#8217;ve ever encountered. Like you, it&#8217;s the first thing I disable when installing a new RH-based distro where they seem to like it enabled by default. It&#8217;s been a while since my last install, but I believe my last few had an installer option to dis/enable it.</p>
<p>Maybe it&#8217;s because I&#8217;ve never really understood it (I can honestly say that I have no real sense of how it does what it does), but I&#8217;ve run into far more issues with it over the years than it&#8217;s worth. Since most of my installs are internal and require no aggressive security, I have the luxury of being able to simply turn it off. <img src='http://phpkitchen.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
