<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>Snort a Sprocket</title>
 <link href="http://smerpology.org/sprocket/atom.xml" rel="self"/>
 <link href="http://smerpology.org/sprocket/"/>
 <updated>2010-06-01T23:52:45-04:00</updated>
 <id>http://smerpology.org/sprocket/</id>
 <author>
   <name>Scott Parkerson</name>
   <email>scott.parkerson@gmail.com</email>
 </author>

 
 <entry>
   <title>(So Little) Oil Just Out of Reach</title>
   <link href="http://smerpology.org/sprocket-new/sprocket/2010/06/01/-so-little--oil-just-out-of-reach/"/>
   <updated>2010-06-01T00:00:00-04:00</updated>
   <id>http://smerpology.org/sprocket/2010/06/01/-so-little--oil-just-out-of-reach</id>
   <content type="html">&lt;p&gt;I&amp;#8217;m really tired of people and pundits going on and on about how we have &lt;em&gt;so much oil&lt;/em&gt; that just can&amp;#8217;t be reached because the mean old government won&amp;#8217;t let the oil companies drill for it. Remember &amp;#8220;Drill, Baby, Drill&amp;#8221;? &lt;span class=&quot;caps&quot;&gt;ANWR&lt;/span&gt;? Yeah, that.&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;FOX&lt;/span&gt; Business News correspondent John Stossel &lt;a href=&quot;http://stossel.blogs.foxbusiness.com/2010/06/01/oreilly-tonight-the-oil-spill/&quot;&gt;is the latest to blame the government&lt;/a&gt; for keeping all those precious lands oil-rig free, all the while pushing the oil companies into dangerous deepwater exploration.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[Former Shell President John Hofmeister is] right. More than 50% of Western land is owned by the federal government. But 75% of that is off limits or restricted for private drilling. Land that the government estimates contains 20 billion barrels. If government would just step out of the way and let people drill, oil companies wouldn’t have to go so far offshore!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Well, the truth is that the oil companies were going to go deep-sea drilling at some point anyway, even if they could have gotten permission to drill on government land. They&amp;#8217;re just there &lt;strong&gt;sooner&lt;/strong&gt;, but the main reason they are there has less to do with the government than our insatiable demand for &amp;#8220;Texas tea&amp;#8221;.&lt;/p&gt;
&lt;p&gt;20 billion barrels sure sounds like a lot until you put it in perspective up against what the United States consumes. According to &lt;a href=&quot;http://www.eia.doe.gov/basics/quickoil.html&quot;&gt;the US Energy Information Adminstration&amp;#8217;s summary page&lt;/a&gt;, we as a country &lt;em&gt;consume&lt;/em&gt; 19.5 million barrels &lt;em&gt;a day&lt;/em&gt;. At that rate, 20 billion barrels will give us an extra 2.8 years of oil.&lt;/p&gt;
&lt;p&gt;So, even if the government &amp;#8220;stepped out of the way&amp;#8221;, it will cost a lot of money and time to get those oil wells online and producing, and there will be an environmental cost. And after all that, you&amp;#8217;ll have &lt;em&gt;a little less than three years of oil to show for it&lt;/em&gt;. Those consumption figures were current as of 2009; by the time we have those hypothetical rigs online, who knows where are consumption will be? Even if consumption were to stay flat or decrease, will the rest of the developing world curb their nascent appetites? (Mumble mumble &lt;em&gt;China&lt;/em&gt; mumble.)&lt;/p&gt;
&lt;p&gt;Is having an extra three years of oil worth spoiling precious natural resources? According to this chart, the entire Gulf of Mexico is &lt;a href=&quot;http://www.eia.doe.gov/neic/infosheets/petroleumreserves.html&quot;&gt;estimated as having only 3.5 billion barrels &lt;em&gt;total&lt;/em&gt;&lt;/a&gt;. That&amp;#8217;s enough to last a paltry 177 days at the US&amp;#8217;s current rate of consumption.&lt;/p&gt;
&lt;p&gt;While we&amp;#8217;re doing some number crunching, let&amp;#8217;s think about those thousands of barrels of oil that are currently spewing into the Gulf of Mexico from the foundered Deepwater Horizion. The government estimates&amp;#8212;conservatively&amp;#8212;that the flow rate is 19,000 barrels of oil a day. At that rate, as of this writing, over 800,000 barrels have spilled in the Gulf of Mexico. It&amp;#8217;s a spill so large &lt;a href=&quot;http://www.google.com/crisisresponse/oilspill/&quot;&gt;it&amp;#8217;s easily visible from space&lt;/a&gt;. It&amp;#8217;s going to ruin coastal fishermen&amp;#8217;s livelihoods, kill wildlife, and spoil the coastlines of several states. But had we been able to use the oil that&amp;#8217;s been spilled, it would only equal the amount of oil that the entire US consumes in a &lt;em&gt;single hour&lt;/em&gt;. &lt;span class=&quot;caps&quot;&gt;ONE&lt;/span&gt;. &lt;span class=&quot;caps&quot;&gt;LOUSY&lt;/span&gt;. &lt;span class=&quot;caps&quot;&gt;HOUR&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The idea that somehow we could ever become energy independent on producing our own oil alone is a complete crock unless we learn to do with a lot less of the stuff and look for more sustainable resources. Oil is not the final answer, and if we act like it is, we&amp;#8217;re going to be in a heap of trouble when the wells run dry and we have nothing to show for it.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>o</title>
   <link href="http://smerpology.org/sprocket-new/sprocket/2010/04/12/o/"/>
   <updated>2010-04-12T00:00:00-04:00</updated>
   <id>http://smerpology.org/sprocket/2010/04/12/o</id>
   <content type="html">&lt;p&gt;&lt;object width=&quot;640&quot; height=&quot;385&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/MMroXbAmrI8&amp;hl=en_US&amp;fs=1&amp;&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/MMroXbAmrI8&amp;hl=en_US&amp;fs=1&amp;&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;640&quot; height=&quot;385&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/p&gt;
&lt;p&gt;Meanwhile, Jonna Lee has deleted her accounts on Facebook and Twitter because&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;she is undergoing a radical metamorphosis, or&lt;/li&gt;
	&lt;li&gt;she&amp;#8217;s sick of everyone assuming that she&amp;#8217;s iamamiwhoami, or&lt;/li&gt;
	&lt;li&gt;sunspots.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Pick one. Whatever the reason, I&amp;#8217;m loving this video and viral video series.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>I Am... Mandragora Officinarum</title>
   <link href="http://smerpology.org/sprocket-new/sprocket/2010/04/09/i-am----mandragora-officinarum/"/>
   <updated>2010-04-09T00:00:00-04:00</updated>
   <id>http://smerpology.org/sprocket/2010/04/09/i-am----mandragora-officinarum</id>
   <content type="html">&lt;p&gt;&lt;img src=&quot;/images/the-iamamiwhoami-600x264.jpg&quot; title=&quot;iamamiwhoami&quot; alt=&quot;iamamiwhoami&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&amp;#8220;To whom it may concern.&amp;#8221;&lt;/p&gt;
&lt;p&gt;I have really been enjoying watching the viral campaign for &lt;a href=&quot;http://www.youtube.com/iamamiwhoami&quot;&gt;iamamiwhoami&lt;/a&gt; unfold since the beginning of this year. If you haven&amp;#8217;t already seen the videos that have been released, you owe it to yourself to go and watch them in chronological order, especially if you like music described as &amp;#8220;ethereal&amp;#8221;, &amp;#8220;odd&amp;#8221;, &amp;#8220;otherworldly&amp;#8221;, and &amp;#8220;dark&amp;#8221;.&lt;/p&gt;
&lt;p&gt;However, with a single release on iTunes for &lt;a href=&quot;http://itunes.apple.com/us/album/id361085411&quot;&gt;&amp;#8220;b&amp;#8221;&lt;/a&gt;, and a forthcoming single called &lt;a href=&quot;http://www.amazon.com/O/dp/B003FSPDMY/ref=sr_1_1?ie=UTF8&amp;s=dmusic&amp;qid=1270771351&amp;sr=8-1-catcorr&quot;&gt;&amp;#8220;o&amp;#8221;&lt;/a&gt; available on 11 April 2010 via Amazon MP3, it looks like the mystery is finally drawing to a close. I, along with most of the other folks following the evolution of the campaign, believe that she is the alter ego or side project of Swedish singer &lt;a href=&quot;http://jonnalee.com/&quot;&gt;Jonna Lee&lt;/a&gt;. After all, Jonna&amp;#8217;s &lt;a href=&quot;http://en.wikipedia.org/wiki/File:Jonna_Lee_20080607.jpg&quot;&gt;picture in Wikipedia&lt;/a&gt; looks like &lt;a href=&quot;http://twitpic.com/1e84lb&quot;&gt;this picture from iamamiwhoami&amp;#8217;s Twitpic&lt;/a&gt;. Also, why would Jonna need &lt;a href=&quot;http://twitpic.com/c0xq4&quot;&gt;an inflatable pool full of mud&lt;/a&gt; if not to romp around in like the &lt;a href=&quot;http://www.youtube.com/watch?v=oVVLkWjTISE&quot;&gt;pre-born version of iamamiwhoami?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Whatever the case, she promises to reveal herself to the world if she &lt;a href=&quot;http://twitter.com/616283891991071/status/11845493291&quot;&gt;gets 10,000 followers on Twitter by the 15th of April&lt;/a&gt;. I&amp;#8217;m looking forward to it.&lt;/p&gt;
&lt;p&gt;Incidentally, I&amp;#8217;ve enjoyed discovering Jonna Lee (as herself). I really dig her song &lt;a href=&quot;http://www.youtube.com/watch?v=0jlb647McLg&quot;&gt;&amp;#8220;Lake Chermain&amp;#8221;&lt;/a&gt; from her most recent album &lt;a href=&quot;http://www.last.fm/music/Jonna+Lee/This+is+Jonna+Lee&quot;&gt;&lt;em&gt;This is Jonna Lee&lt;/em&gt;&lt;/a&gt;, as well as &lt;a href=&quot;http://www.youtube.com/watch?v=CTEgPzsTJts&quot;&gt;&amp;#8220;I Wrote This Song&amp;#8221;&lt;/a&gt; her d&amp;eacute;but &lt;a href=&quot;http://www.last.fm/music/Jonna+Lee/10+Pieces%2C+10+Bruises&quot;&gt;&lt;em&gt;10 pieces, 10 bruises&lt;/em&gt;&lt;/a&gt;. Finally: check out her haunting, sparse cover of &lt;a href=&quot;http://www.last.fm/music/Jonna+Lee/_/Violent+Playground&quot;&gt;&amp;#8220;Violent Playground&amp;#8221;&lt;/a&gt; by Nitzer Ebb.&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;UPDATE&lt;/span&gt;: I should note that synth Goddess &lt;a href=&quot;http://www.analogsuicide.com/&quot;&gt;Tara Busch of AnalogSuicide.com&lt;/a&gt; has made a &lt;a href=&quot;http://www.analogsuicide.com/latest/2010/4/8/iamamiwhoami-tara-busch-remix-inside-their-beautifully-bizar.html&quot;&gt;remix of &amp;#8220;b&amp;#8221;&lt;/a&gt;.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Hell</title>
   <link href="http://smerpology.org/sprocket-new/sprocket/2010/04/06/hell/"/>
   <updated>2010-04-06T00:00:00-04:00</updated>
   <id>http://smerpology.org/sprocket/2010/04/06/hell</id>
   <content type="html">&lt;p&gt;&lt;img src=&quot;/images/2010-04-06-hell_still-18.jpg&quot; title=&quot;&amp;quot;Insurgents&amp;quot;, seconds before death&quot; alt=&quot;&amp;quot;Insurgents&amp;quot;, seconds before death&quot; /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;LAUNCELOT&lt;/span&gt;: Nay, indeed, if you had your eyes, you might fail of the knowing me: it is a wise father that knows his own child. Well, old man, I will tell you news of your son: give me your blessing: truth will come to light; murder cannot be hid long; a man&amp;#8217;s son may, but at the length truth will out.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style=&quot;text-align:right;&quot;&gt;&amp;#8212; Shakespeare&lt;br /&gt;
&lt;em&gt;The Merchant of Venice&lt;/em&gt;&lt;br /&gt;
Act II, Scene 2&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I was ordered to go in there and destroy the enemy. That was my job that day. That was the mission I was given. I did not sit down and think in terms of men, women and children. They were all classified as the same, and that&amp;#8217;s the classification that we dealt with over there, just as the enemy. I felt then and I still do that I acted as I was directed, and I carried out the order that I was given and I do not feel wrong in doing so.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style=&quot;text-align:right;&quot;&gt;&amp;#8212; 2nd Lt. William Calley&lt;br /&gt;
spoken during his murder trial&lt;br /&gt;
for his role in the &lt;a href=&quot;http://en.wikipedia.org/wiki/My_Lai_Massacre&quot;&gt;My Lai Massacre&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;There is no question that coalition forces were clearly engaged in combat operations against a hostile force.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style=&quot;text-align:right;&quot;&gt;&amp;#8212; Lt. Col. Scott Bleichwehl&lt;br /&gt;
Spokesman for the multinational forces in Baghdad&lt;br /&gt;
13 July 2007, one day after the engagement&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Well it&amp;#8217;s their fault for bringing their kids into a battle.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style=&quot;text-align:right;&quot;&gt;&amp;#8212; Unknown US soldier&lt;br /&gt;
regarding children who were wounded during an engagement on 12 July 2007&lt;/p&gt;
&lt;p&gt;During this engagement, US Soldiers killed over a dozen civilians including two journalists for Reuters. The civilians were believed to be hostile forces armed with &lt;span class=&quot;caps&quot;&gt;RPG&lt;/span&gt; launchers. Over the past two and a half years, Reuters&amp;#8217; requests for the footage of the incident under the Freedom of Information Act had not been granted by US Military, who said as recently as last week that they were still processing the request.&lt;/p&gt;
&lt;p&gt;On 5 April 2010, WikiLeaks &lt;a href=&quot;http://collateralmurder.com/en/index.html&quot;&gt;released the footage obtained by military whistleblowers&lt;/a&gt;. It&amp;#8217;s as horrifying as you&amp;#8217;d expect.&lt;/p&gt;
&lt;p&gt;This is the inevitable consequence of war. To those of you who advocated for it in 2002 and continue to do so today, I have to ask: how &lt;em&gt;do&lt;/em&gt; you sleep at night?&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Sadly, Not an April Fool's Joke</title>
   <link href="http://smerpology.org/sprocket-new/sprocket/2010/04/01/sadly-not-an-april-fool-s-joke/"/>
   <updated>2010-04-01T00:00:00-04:00</updated>
   <id>http://smerpology.org/sprocket/2010/04/01/sadly-not-an-april-fool-s-joke</id>
   <content type="html">&lt;p&gt;&lt;img src=&quot;http://farm3.static.flickr.com/2732/4468907309_7901f34341_o.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Behold: &lt;a href=&quot;http://www.flickr.com/photos/pargon/sets/72157623594187379/&quot;&gt;Teabonics&lt;/a&gt;.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>219-212</title>
   <link href="http://smerpology.org/sprocket-new/sprocket/2010/03/22/219-212/"/>
   <updated>2010-03-22T00:00:00-04:00</updated>
   <id>http://smerpology.org/sprocket/2010/03/22/219-212</id>
   <content type="html">&lt;p&gt;&lt;a href=&quot;http://tpmdc.talkingpointsmemo.com/2010/03/dems-pass-historic-health-care-bill.php&quot;&gt;I think I fell in love with America&amp;#8230; all over again.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Meanwhile, a cursory glance at FreeRepublic, RedState and &lt;span class=&quot;caps&quot;&gt;GOP&lt;/span&gt;.com will shows that we haven&amp;#8217;t even hit peak butthurt yet.&lt;/p&gt;
&lt;p&gt;Also: it&amp;#8217;s too bad he wasn&amp;#8217;t here to see it.&lt;/p&gt;
&lt;p&gt;&lt;object width=&quot;640&quot; height=&quot;385&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/LhYtMmw9OVk&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/LhYtMmw9OVk&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1&quot; type=&quot;application/x-shockwave-flash&quot; allowfullscreen=&quot;true&quot; allowScriptAccess=&quot;always&quot; width=&quot;425&quot; height=&quot;385&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/p&gt;
&lt;p&gt;Finally, I&amp;#8217;d be remiss to not have fun with this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If weâ€™re able to stop Obama on [Health Care Reform] it will be his Waterloo. It will break him.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style=&quot;text-align:right;&quot;&gt;Rep. Jim DeMint (R-SC), July 2009&lt;/p&gt;
&lt;p&gt;Jim, this is for you.&lt;/p&gt;
&lt;p&gt;&lt;object width=&quot;640&quot; height=&quot;385&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/85yMOPKR94M&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/85yMOPKR94M&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1&quot; type=&quot;application/x-shockwave-flash&quot; allowfullscreen=&quot;true&quot; allowScriptAccess=&quot;always&quot; width=&quot;425&quot; height=&quot;385&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Passenger Phusion (aka mod_rails) and SELinux</title>
   <link href="http://smerpology.org/sprocket-new/sprocket/2010/03/17/passenger-phusion-aka-mod_rails-and-selinux/"/>
   <updated>2010-03-17T00:00:00-04:00</updated>
   <id>http://smerpology.org/sprocket/2010/03/17/passenger-phusion-aka-mod_rails-and-selinux</id>
   <content type="html">&lt;blockquote&gt;
&lt;p&gt;Unfortunately SELinux is so incredibly complex that few people understand it. If anybody can contribute proper SELinux support or tell me what Phusion Passenger is supposed to do to make it play nice with the default policies, then that would be greatly appreciated.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style=&quot;text-align:right;&quot;&gt;Hongli Lai, principal author of Phusion Passenger, in a &lt;a href=&quot;http://groups.google.com/group/phusion-passenger/msg/ac0ed2113aebee68&quot;&gt;mailing list post&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;At my day job, I&amp;#8217;ve been tasked with deploying an application based on the  &lt;a href=&quot;http://www.sinatrarb.com/&quot;&gt;Sinatra&lt;/a&gt; framework on one of our production webservers. Because we are a CentOS shop, and Apache is the path of least resistance, I chose to deploy the application using &lt;a href=&quot;http://www.modrails.com/&quot;&gt;Passenger Phusion&lt;/a&gt;, also known as &lt;code&gt;mod_rails&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;A colleague of mine set Passenger up pretty easily on our test/QA server, and, after mutually flogging the Apache configuration, got the Sinatra app up and running. We ran the application through QA, and after a week or two, decided that we&amp;#8217;d like to beta test this on our actual production server.&lt;/p&gt;
&lt;p&gt;We repeated the same steps to get Passenger installed, but this time, nothing worked at all. Trying to hit the web application returned 403 Forbidden. Weird.&lt;/p&gt;
&lt;p&gt;Then I remember a salient difference between our test environment and production: &lt;a href=&quot;http://en.wikipedia.org/wiki/Security-Enhanced_Linux&quot;&gt;SELinux&lt;/a&gt; was enabled and enforced on our production system, but not on our QA server. Uh oh. Sure, we could have just disabled SELinux (an easy fix), but then we wouldn&amp;#8217;t benefit from SELinux itself. Plus, everything else was running just fine with SELinux enabled, so why shouldn&amp;#8217;t Passenger?&lt;/p&gt;
&lt;h4&gt;Down the &lt;strike&gt;Rabbit&lt;/strike&gt;Rat Hole&lt;/h4&gt;
&lt;p&gt;The Passenger &amp;#8220;documentation for Apache&amp;#8221; notes that you have to set the &lt;a href=&quot;http://www.modrails.com/documentation/Users%20guide%20Apache.html#_the_apache_error_log_says_that_the_spawn_manager_script_does_not_exist_or_that_it_does_not_have_permission_to_execute_it&quot;&gt;context of the Passenger codebase&lt;/a&gt;&lt;br /&gt;
to &lt;code&gt;httpd_sys_content_t&lt;/code&gt;. I followed the directions, and things still didn&amp;#8217;t work. &lt;em&gt;No problem&lt;/em&gt;, I thought, &lt;em&gt;I&amp;#8217;ll just turn SELinux down to permissive mode so I can get the audit messages and use &lt;a href=&quot;http://fedoraproject.org/wiki/SELinux/audit2allow&quot;&gt;audit2allow&lt;/a&gt; to make a policy for Passenger!&lt;/em&gt; Sensing I had a slam dunk idea, I did just that, generated my own Passenger policy, and &amp;#8230; nothing. For some stupid reason, the Passenger backend process kept dying, leading to messages in &lt;code&gt;/var/log/httpd/error_log&lt;/code&gt; like these:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[Wed Mar 17 15:39:54 2010] [error] &lt;strong&gt;*&lt;/strong&gt; Passenger could not be initialized because of this error: Could not connect to the ApplicationPool server: Connection reset by peer (104)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Googling on that error message led me to some &lt;a href=&quot;http://www.centos.org/modules/newbb/viewtopic.php?topic_id=17044&quot;&gt;lame&lt;/a&gt; &lt;a href=&quot;http://groups.google.com/group/phusion-passenger/browse_thread/thread/43a0928b4ca797d8&quot;&gt;comments&lt;/a&gt;, so I decided to dig into SELinux itself. Lo and behold, the &lt;a href=&quot;http://fedoraproject.org/&quot;&gt;Fedora Project&lt;/a&gt; have an &lt;a href=&quot;http://docs.fedoraproject.org/selinux-faq/&quot;&gt;excellent &lt;span class=&quot;caps&quot;&gt;FAQ&lt;/span&gt; on SELinux&lt;/a&gt;, which included &lt;a href=&quot;http://docs.fedoraproject.org/selinux-faq/#id3064868&quot;&gt;something that I suspected might be happening&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Q: &lt;b&gt;I get a specific permission denial only when SELinux is in enforcing mode, but I don&amp;#8217;t see any audit messages in &lt;code&gt;/var/log/messages&lt;/code&gt; (or &lt;code&gt;/var/log/audit/audit.log&lt;/code&gt; if using the audit daemon). How can I identify the cause of these silent denials?&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;A: The most common reason for a silent denial is when the policy contains an explicit &lt;code&gt;dontaudit&lt;/code&gt; rule to suppress audit messages. The &lt;code&gt;dontaudit&lt;/code&gt; rule is often used this way when a benign denial is filling the audit logs.&lt;/p&gt;
&lt;p&gt;To look for your particular denial, enable auditing of all &lt;code&gt;dontaudit&lt;/code&gt; rules:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;semodule -b /usr/share/selinux/targeted/enableaudit.pp&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Well, it turns out that one of the &lt;code&gt;dontaudit&lt;/code&gt; rules governed the reading from and writing to &lt;span class=&quot;caps&quot;&gt;UNIX&lt;/span&gt; stream sockets that Passenger uses to talk to its backend. It also seemed to screw up the backend&amp;#8217;s ability to set its own signal handlers.&lt;/p&gt;
&lt;p&gt;Anyways, after one last run of audit2allow, I had a working policy.&lt;/p&gt;
&lt;h4&gt;tl;dr &amp;#8211; The Phusion Passenger SELinux Policy&lt;/h4&gt;
&lt;p&gt;Here it is.&lt;/p&gt;
&lt;pre&gt;
module passenger 1.0;
require {
        type httpd_tmp_t;
        type devpts_t;
        type httpd_sys_script_t;
        type security_t;
        type httpd_t;
        type unconfined_t;
        type selinux_config_t;
        type hi_reserved_port_t;
        type httpd_sys_content_t;
        type var_t;
        type cert_t;
        class file { getattr read create append };
        class process { siginh signal noatsecure rlimitinh };
        class unix_stream_socket { read write shutdown };
        class chr_file { read write };
        class capability { setuid dac_override chown fsetid setgid fowner };
        class fifo_file { setattr create getattr unlink };
        class sock_file { write getattr setattr create unlink };
        class lnk_file { read getattr };
        class udp_socket name_bind;
        class dir { write read search add_name };
}
#============= httpd_sys_script_t ==============
allow httpd_sys_script_t cert_t:dir search;
allow httpd_sys_script_t cert_t:file { read getattr };
allow httpd_sys_script_t cert_t:lnk_file read;
allow httpd_sys_script_t devpts_t:chr_file { read write };
allow httpd_sys_script_t httpd_sys_content_t:fifo_file setattr;
allow httpd_sys_script_t httpd_sys_content_t:sock_file { create unlink setattr };
allow httpd_sys_script_t httpd_t:unix_stream_socket { read write };
allow httpd_sys_script_t httpd_tmp_t:fifo_file setattr;
allow httpd_sys_script_t httpd_tmp_t:sock_file { write create unlink setattr };
allow httpd_sys_script_t self:capability { setuid chown fsetid setgid fowner dac_override };
allow httpd_sys_script_t unconfined_t:process signal;
allow httpd_sys_script_t var_t:dir { write read add_name };
allow httpd_sys_script_t var_t:file { read getattr create append };
#============= httpd_t ==============
allow httpd_t hi_reserved_port_t:udp_socket name_bind;
allow httpd_t httpd_sys_content_t:fifo_file { create unlink getattr setattr };
allow httpd_t httpd_sys_content_t:sock_file { getattr unlink setattr };
allow httpd_t httpd_sys_script_t:process { siginh rlimitinh noatsecure };
allow httpd_t httpd_sys_script_t:unix_stream_socket { read write shutdown };
allow httpd_t httpd_tmp_t:fifo_file { create unlink getattr setattr };
allow httpd_t httpd_tmp_t:sock_file { getattr unlink setattr };
allow httpd_t security_t:dir search;
allow httpd_t self:capability { fowner fsetid };
allow httpd_t selinux_config_t:dir search;
allow httpd_t var_t:file { read getattr };
allow httpd_t var_t:lnk_file { read getattr };
&lt;/pre&gt;
&lt;p&gt;To install this policy on your SELinux enabled box:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Copy and paste the above policy into a file called &lt;code&gt;passenger.te&lt;/code&gt;.&lt;/li&gt;
	&lt;li&gt;Run &lt;code&gt;checkmodule -M -m -o passenger.mod passenger.te&lt;/code&gt;.&lt;/li&gt;
	&lt;li&gt;Run &lt;code&gt;semodule_package -o passenger.pp -m passenger.mod&lt;/code&gt;.&lt;/li&gt;
	&lt;li&gt;Finally, to install the policy, run &lt;code&gt;semodule -i passenger.pp&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Final Thoughts&lt;/h4&gt;
&lt;p&gt;Having a working policy is great if you want to make things go, but it begs the following questions:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Is the policy for Passenger that I&amp;#8217;ve generated insecure? How can it be improved?&lt;/li&gt;
	&lt;li&gt;Are there any ways that Passenger Phusion could be improved to fit into the &lt;span class=&quot;caps&quot;&gt;RHEL&lt;/span&gt;/Fedora/CentOS base SELinux policy without having to go through such gymnastics, or is this the norm for applications built on Apache?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;As &lt;a href=&quot;http://www.rubyonrails.org/&quot;&gt;Rails&lt;/a&gt; and &lt;a href=&quot;http://www.ruby-lang.org/&quot;&gt;Ruby&lt;/a&gt; have been slowly moving into &amp;#8220;enterprisey&amp;#8221; shops, it would seem that getting it to play nice with the largest commercial Linux distribution would be a priority for, well, &lt;em&gt;someone&lt;/em&gt;. Unfortunately, Ruby has had a history of being being second-class at RedHat; after all, &lt;span class=&quot;caps&quot;&gt;RHEL&lt;/span&gt; is &lt;strong&gt;still&lt;/strong&gt; using 1.8.5, which was originally released in 2006, and many things&amp;#8212;one being Rails&amp;#8212;recommend if not require at least 1.8.7.&lt;/p&gt;
&lt;p&gt;RedHatters and SELinux gurus: the ball is in your court, now.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>"About" to "Antikythera"</title>
   <link href="http://smerpology.org/sprocket-new/sprocket/2010/02/26/-about-to-antikythera-/"/>
   <updated>2010-02-26T00:00:00-05:00</updated>
   <id>http://smerpology.org/sprocket/2010/02/26/-about-to-antikythera-</id>
   <content type="html">&lt;p&gt;Ten songs listened to this morning by yours truly, in alphabetical order.&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;&amp;#8220;About to Happen&amp;#8221;, Siouxsie&lt;/li&gt;
	&lt;li&gt;&amp;#8220;Adnan&amp;#8217;s&amp;#8221;, Orbital&lt;/li&gt;
	&lt;li&gt;&amp;#8220;Adventures in Solitude&amp;#8221;, The New Pornographers&lt;/li&gt;
	&lt;li&gt;&amp;#8220;Again Today / Hiding My Heart&amp;#8221;, Brandi Carlile&lt;/li&gt;
	&lt;li&gt;&amp;#8220;All That I&amp;#8217;m Good For&amp;#8221;, Hem&lt;/li&gt;
	&lt;li&gt;&amp;#8220;All That Makes Us Human Continues&amp;#8221;, BT&lt;/li&gt;
	&lt;li&gt;&amp;#8220;All the Old Showstoppers&amp;#8221;, The New Pornographers&lt;/li&gt;
	&lt;li&gt;&amp;#8220;All of the Things That Go to Make Heaven and Earth&amp;#8221;, The New Pornographers&lt;/li&gt;
	&lt;li&gt;&amp;#8220;Ambassador&amp;#8221;, Noe Veneble&lt;/li&gt;
	&lt;li&gt;&amp;#8220;The Antikythera Mechanism&amp;#8221;, BT&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This idea was gleefully stolen from &lt;a href=&quot;http://slacktivist.typepad.com/&quot;&gt;Slacktivist&lt;/a&gt;, which itself is an alternate version of a the &amp;#8220;it&amp;#8217;s-Friday-Morning-so-post-the-next-ten-random-songs-played-on-your-iPod&amp;#8221; meme.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Yes, Let's Talk About the Individual Mandate</title>
   <link href="http://smerpology.org/sprocket-new/sprocket/2010/02/15/yes-let-s-talk-about-the-individual-mandate/"/>
   <updated>2010-02-15T00:00:00-05:00</updated>
   <id>http://smerpology.org/sprocket/2010/02/15/yes-let-s-talk-about-the-individual-mandate</id>
   <content type="html">&lt;p&gt;Did you know that the same individual mandate that Senate Republicans have been recently attacking in the proposed health care reform legislation was &lt;a href=&quot;http://www.npr.org/templates/story/story.php?storyId=123670612&quot;&gt;initially proposed by Republican lawmakers as a part of an alternate bill during Clinton&amp;#8217;s failed health care reform initiative in 1993&lt;/a&gt;? Neither did I.&lt;/p&gt;
&lt;p&gt;Digging around on this, I found &lt;a href=&quot;http://www.princeton.edu/~starr/20starr.html&quot;&gt;an article from the American Prospect by Paul Starr&lt;/a&gt; that was written just after the collapse of that initiative. He notes that&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The collapse of health care reform in the first two years of the Clinton administration will go down as one of the great lost political opportunities in American history. It is a story of compromises that never happened, of deals that were never closed, of Republicans, moderate Democrats, and key interest groups that backpedaled from proposals they themselves had earlier co-sponsored or endorsed.&lt;/p&gt;
&lt;p&gt;It is also a story of strategic miscalculation on the part of the president and those of us who advised him. In 1993, 23 Republican senators, including then-Minority Leader Robert Dole, cosponsored a bill introduced by Senator John Chafee that sought to achieve universal coverage through a mandate that is, a mandate on individuals to buy insurance. Nearly every major health care interest group had endorsed substantial reforms&amp;#8212;grandiose ones, in fact. The American Medical Association (&lt;span class=&quot;caps&quot;&gt;AMA&lt;/span&gt;) and Health Insurance Association of America (&lt;span class=&quot;caps&quot;&gt;HIAA&lt;/span&gt;), the two great, historic bastions of opposition to compulsory health insurance, both went on record in support of an employer mandate and universal coverage. Even the U.S. Chamber of Commerce endorsed an employer mandate, as did many large corporations. Other groups came out variously for reform options that ran along a spectrum from Canadian-style, single-payer programs on the left to managed competition and medical savings accounts and radical changes in tax policy on the right. Under the circumstances, it was easy to believe the country was ready for substantial reform and that a market-oriented, consumer-choice approach to universal coverage, positioned in the center, could become a platform for consensus.&lt;/p&gt;
&lt;p&gt;It was easy to believe, but it turned out to be wrong.&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.princeton.edu/~starr/20starr.html&quot;&gt;Read the whole thing&lt;/a&gt; if for no other reason then to be reminded that the seeds of political nihilism were sown far earlier than you may want to imagine.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>WTF, Whole Foods?</title>
   <link href="http://smerpology.org/sprocket-new/sprocket/2010/02/05/wtf-whole-foods/"/>
   <updated>2010-02-05T00:00:00-05:00</updated>
   <id>http://smerpology.org/sprocket/2010/02/05/wtf-whole-foods</id>
   <content type="html">&lt;p&gt;&lt;a href=&quot;http://nielsenhayden.com/makinglight/archives/012147.html&quot;&gt;&lt;cite&gt;Making Light&lt;/cite&gt;&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[F]amously-crackpot Whole Foods &lt;span class=&quot;caps&quot;&gt;CEO&lt;/span&gt; John Mackey has now made himself sufficiently repellent that I very much doubt Iâ€™ll ever feel like spending a dime in one of his stores again. Not content with peddling rich-guy â€œlibertarianâ€ attacks on health-care reform, asserting that climate change is a fraud designed to â€œraise taxes and increase regulation, and in turn lower our standard of living and lead to an increase in poverty,â€ comparing unionization to herpes, and getting caught playing sockpuppet games on financial message boards, Mackey is nowâ€¦charging his employees more for food if they fail to meet his arbitrarily-chosen cholesterol, blood pressure, and body-mass index criteria.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The &lt;a href=&quot;http://jezebel.com/5456561/weigh-less-pay-less-whole-foods-offers-discount-based-on-bmi&quot;&gt;original article at Jezebel&lt;/a&gt; dryly observes:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Because if public health research has taught us anything, it&amp;#8217;s that reducing people&amp;#8217;s buying power totally makes them healthier. Stay classy, Whole Foods.&lt;/p&gt;
&lt;/blockquote&gt;</content>
 </entry>
 
 
</feed>
