<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>K-Squared Ramblings &#187; SELinux</title>
	<atom:link href="http://www.hyperborea.org/journal/tag/selinux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hyperborea.org/journal</link>
	<description>Sci-fi, comics, humor, photos...it&#039;s all fair game.</description>
	<lastBuildDate>Sat, 04 Feb 2012 06:27:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Resolving SELinux audit errors on boot in Fedora Core 4</title>
		<link>http://www.hyperborea.org/journal/2005/06/selinux-errors-fedora-4/</link>
		<comments>http://www.hyperborea.org/journal/2005/06/selinux-errors-fedora-4/#comments</comments>
		<pubDate>Wed, 22 Jun 2005 17:37:11 +0000</pubDate>
		<dc:creator>Kelson</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[SELinux]]></category>

		<guid isPermaLink="false">http://www.hyperborea.org/journal/?p=949</guid>
		<description><![CDATA[I&#8217;ve upgraded two systems at work from Fedora Core&#160;3 to Fedora Core&#160;4: a desktop using the normal installer, and a test server upgrading with yum. The yum upgrade worked well except for two snags. The first was a conflict with &#8230; <a href="http://www.hyperborea.org/journal/2005/06/selinux-errors-fedora-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve upgraded two systems at work from Fedora Core&nbsp;3 to Fedora Core&nbsp;4: a desktop using the normal installer, and a test server <a href="http://fedoraproject.org/wiki/YumUpgradeFaq">upgrading with yum</a>.  The yum upgrade worked well except for two snags.  The first was a conflict with the old kernel-utils package.  I followed the recommendation by installing the new kernel first, rebooting, then removing the old kernel.</p>
<p>The second was that <abbr title="Security Enhanced Linux">SELinux</abbr> denied access to about a dozen services on start-up.  It was in auditing mode, not enforcing mode, so the services still worked, but I wanted to be able to start enforcing the policy once I resolved some other issues.<br />
<span id="more-949"></span><br />
After digging through the <a href="http://docs.fedoraproject.org/selinux-faq/">Fedora Core SELinux FAQ</a>, messing with restorecon and relabeling, I noticed that it didn&#8217;t log any errors when I restarted the services manually, only when they started on boot.  I looked more closely at log entries.  Here&#8217;s a typical one:</p>
<p><code>Jun 22 09:21:06 &lt;servername&gt; kernel: audit(1119457266.772:14): avc:  denied  { use } for  pid=1941 comm=&quot;ntpdate&quot; name=init <strong>dev=rootfs</strong> ino=8 scontext=system_u:system_r:ntpd_t tcontext=system_u:system_r:kernel_t tclass=fd</code></p>
<p>The device, <i>rootfs</i>, was the key.  When I had installed the new kernel, it was running under the simpler SELinux policy for Fedora Core&nbsp;3.  The &#8220;targeted&#8221; policy in Fedora Core&nbsp;4 covers more services.  So the initial ramdisk the kernel uses to boot had everything labeled <em>for the old policy</em>.</p>
<p><strong>Solution:</strong> Rebuild the initrd.  Reboot.  Done.</p>
<p><code>mv /boot/initrd-2.6.11-1.1369_FC4.img \<br />
&nbsp;&nbsp;&nbsp;/boot/initrd-2.6.11-1.1369_FC4.img.bak;</code><br />
<code>/sbin/mkinitrd initrd-2.6.11-1.1369_FC4.img \<br />
&nbsp;&nbsp;&nbsp; 2.6.11-1.1369_FC4</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperborea.org/journal/2005/06/selinux-errors-fedora-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

