<?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>Tommi&#039;s stuff &#187; Open Source</title>
	<atom:link href="http://tommi.org/category/opensource/feed/" rel="self" type="application/rss+xml" />
	<link>http://tommi.org</link>
	<description>joogoogilizer!</description>
	<lastBuildDate>Mon, 04 Jan 2010 20:48:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SElinux and Proliant Support Pack (PSP) on RHEL or Centos 5</title>
		<link>http://tommi.org/2010/01/04/selinux-and-proliant-support-pack-psp-on-rhel-or-centos-5/</link>
		<comments>http://tommi.org/2010/01/04/selinux-and-proliant-support-pack-psp-on-rhel-or-centos-5/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 20:01:51 +0000</pubDate>
		<dc:creator>tommi</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[proliant support pack]]></category>
		<category><![CDATA[psp]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[rhel5]]></category>
		<category><![CDATA[rhel54]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=55</guid>
		<description><![CDATA[I&#8217;ve been getting these annoying messages in the audit log, /var/log/audit/audit.log after installing the Proliant Support Pack on RHEL5.
type=AVC msg=audit(1262639482.789:2027381): avc:  denied  { read write } for  pid=18916 comm=&#8221;ethtool&#8221; path=&#8221;/dev/hpilo/d0ccb5&#8243; dev=tmpfs ino=6784 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file
type=AVC msg=audit(1262639482.789:2027381): avc:  denied  { read write } for  pid=18916 comm=&#8221;ethtool&#8221; path=&#8221;socket:[22602]&#8221; dev=sockfs ino=22602 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=netlink_route_socket
I don&#8217;t know what this [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been getting these annoying messages in the audit log, /var/log/audit/audit.log after installing the Proliant Support Pack on RHEL5.</p>
<blockquote><p>type=AVC msg=audit(1262639482.789:2027381): avc:  denied  { read write } for  pid=18916 comm=&#8221;ethtool&#8221; path=&#8221;/dev/hpilo/d0ccb5&#8243; dev=tmpfs ino=6784 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file<br />
type=AVC msg=audit(1262639482.789:2027381): avc:  denied  { read write } for  pid=18916 comm=&#8221;ethtool&#8221; path=&#8221;socket:[22602]&#8221; dev=sockfs ino=22602 scontext=system_u:system_r:ifconfig_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=netlink_route_socket</p></blockquote>
<p>I don&#8217;t know what this is but <strong>I DON&#8217;T</strong> want to allow it and I don&#8217;t want to see this in the audit log anymore</p>
<p>First off 3 terms:</p>
<ul>
<li>SElinux &#8211; <strong>Security-Enhanced Linux</strong> (<strong>SELinux</strong>) is a Linux feature that provides a mechanism for supporting access control security policies, including <a title="U.S. Department of Defense" href="http://en.wikipedia.org/wiki/U.S._Department_of_Defense">U.S. Department of Defense</a> style <a title="Mandatory access control" href="http://en.wikipedia.org/wiki/Mandatory_access_control">mandatory access controls</a>, through the use of <a title="Linux Security Modules" href="http://en.wikipedia.org/wiki/Linux_Security_Modules">Linux Security Modules</a> (LSM) in the <a title="Linux kernel" href="http://en.wikipedia.org/wiki/Linux_kernel">Linux kernel</a>. (wikipedia)</li>
<li><a href="http://h18000.www1.hp.com/products/servers/management/psp/">ProLiant Support Packs</a> (PSP) represent operating system (OS) specific bundles of ProLiant optimized drivers, utilities, and management agents.</li>
<li>RHEL (Red Hat Enterprise Linux) &#8211; CentOS (Community ENTerprise Operating System, RHEL Clone)</li>
</ul>
<p>So basicly what I did to get rid of these messages is that I wrote a new module called pspignore to ignore, without allowing them. Here&#8217;s what I did:</p>
<p><strong>Make a local directory for my modules</strong></p>
<blockquote><p>mkdir -p /etc/selinux/local</p></blockquote>
<blockquote><p>cd /etc/selinux/local</p></blockquote>
<p><strong>Download my custom module which include &#8220;dontaudit&#8221; for these conditions.</strong></p>
<blockquote><p>wget http://tommi.org/static/ignorepsp.te</p></blockquote>
<p><strong>Build the module and install it</strong></p>
<blockquote><p>checkmodule -M -m -o ignorepsp.mod ignorepsp.te</p>
<p>semodule_package -o ignorepsp.pp -m ignorepsp.mod</p>
<p>semodule -i ignorepsp.pp</p></blockquote>
<p>That should be it. The main thing can be found at the bottom of ignorepsp.te:</p>
<blockquote><p>dontaudit ifconfig_t device_t:chr_file { read write };<br />
dontaudit ifconfig_t initrc_t:netlink_route_socket { read write };</p></blockquote>
<p>Hope this is helpfull.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ftommi.org%2F2010%2F01%2F04%2Fselinux-and-proliant-support-pack-psp-on-rhel-or-centos-5%2F&amp;linkname=SElinux%20and%20Proliant%20Support%20Pack%20%28PSP%29%20on%20RHEL%20or%20Centos%205"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2010/01/04/selinux-and-proliant-support-pack-psp-on-rhel-or-centos-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RocketRaid on Red Hat / CentOS 5</title>
		<link>http://tommi.org/2009/11/23/rocketraid-on-red-hat-centos-5/</link>
		<comments>http://tommi.org/2009/11/23/rocketraid-on-red-hat-centos-5/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 13:16:08 +0000</pubDate>
		<dc:creator>tommi</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://tommi.org/?p=48</guid>
		<description><![CDATA[Been dabbling with getting RocketRaid 1740 to work on Centos 5. It was not as easy as I had hoped but below you can view the steps needed for the implmentation.
HighPoint RocketRaid 1740 is only supported on Red Hat / CentOS 5.2 so you have to install it first.
Download the driver from http://highpoint-tech.com/USA/bios_rr1740.htm
You can download [...]]]></description>
			<content:encoded><![CDATA[<p>Been dabbling with getting RocketRaid 1740 to work on Centos 5. It was not as easy as I had hoped but below you can view the steps needed for the implmentation.</p>
<h2>HighPoint RocketRaid 1740 is only supported on Red Hat / CentOS 5.2 so you have to install it first.</h2>
<p>Download the driver from <a href="http://highpoint-tech.com/USA/bios_rr1740.htm">http://highpoint-tech.com/USA/bios_rr1740.htm</a></p>
<p>You can download the media for CentOS 5.2 at <a href="http://vault.centos.org/5.2/isos/">http://vault.centos.org/5.2/isos/</a></p>
<p>Now you need to go through the Install guide <a href="http://highpoint-tech.com/BIOS_Driver/rr1740/Linux/newformat/Install_RHEL_CentOS_RR174x.pdf">http://highpoint-tech.com/BIOS_Driver/rr1740/Linux/newformat/Install_RHEL_CentOS_RR174x.pdf</a></p>
<p>To shortly go over what you need to do:</p>
<ul>
<li>Untar the contents of the driver onto a USB flash drive</li>
<li>Boot 5.2 with the boot params &#8220;linux nostorage&#8221;</li>
<li>When the graphical X look is up and running, hit <strong>CTRL-ALT-F2</strong></li>
<li>Mount the USB flash drive</li>
<li>copy the contents of the driver to /tmp/hptdd</li>
<li>unmount the flash drive</li>
<li>run sh /tmp/hptdd/rhel-install-step1.sh</li>
<li>Go back to the install, <strong>CTRL-ALT-F6</strong></li>
<li>Setup the OS as usual all the way till all packages are installed, it says &#8220;Congratulations, the installation is complete.&#8221;</li>
<li>Hit <strong>CTRL-ALT-F2</strong> again</li>
<li>cp -r /tmp/hptdd /mnt/sysimage/tmp/hptdd</li>
<li>chroot /mnt/sysimage</li>
<li>sh /tmp/hptdd/rhel-install-step2.sh</li>
<li>exit</li>
<li>Hit <strong>CTRL-ALT-F6</strong> and hit Reboot</li>
<li>Voila, the machine should boot normally</li>
</ul>
<h2>Kernel updates can also be problematic, so here&#8217;s how I do it</h2>
<p>Download the latest Open Source driver version from <a href="http://highpoint-tech.com/USA/bios_rr1740.htm">http://highpoint-tech.com/USA/bios_rr1740.htm</a></p>
<p>I untar it into /usr/src and you need to modify the script below if you change the path</p>
<pre>cd /usr/src</pre>
<pre>tar zxvf rr174x-linux-src-v2.4-091009-1434.tar.gz</pre>
<p>Now, I have a special script to build for the latest kernel</p>
<p>So, if you haven&#8217;t already, do <strong><em>yum -y update</em></strong></p>
<p>Download my build script from <a href="http://tommi.org/static/update-rr17xx.sh">http://tommi.org/static/update-rr17xx.sh</a></p>
<pre>cd /usr/local/bin</pre>
<pre>wget http://tommi.org/static/update-rr17xx.sh</pre>
<pre>chmod 750 /usr/local/bin/update-rr17xx.sh</pre>
<pre>/usr/local/bin/update-rr17xx.sh</pre>
<p>If everything looked alright, you should be ready to boot into your new kernel</p>
<h2>Nagios plugin as an added bonus</h2>
<p>I decided to write up a Nagios plugin as an added bonus and you can get it at <a href="http://tommi.org/static/rr-state.pl">http://tommi.org/static/rr-state.pl</a></p>
<p>It should grab broken raid arrays and if the machine is rebuilding</p>
<p>OK, everything is great</p>
<p>Warning, Logical disk is rebuilding</p>
<p>Critical, Failed drive</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Ftommi.org%2F2009%2F11%2F23%2Frocketraid-on-red-hat-centos-5%2F&amp;linkname=RocketRaid%20on%20Red%20Hat%20%2F%20CentOS%205"><img src="http://tommi.org/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://tommi.org/2009/11/23/rocketraid-on-red-hat-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
