<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>Patryk Zawadzki &#187; ConsoleKit</title>
	<atom:link href="http://blogs.gnome.org/patrys/category/consolekit/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/patrys</link>
	<description>Tales of a whining gnome</description>
	<lastBuildDate>Sun, 12 Jul 2009 23:03:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/pl/</creativeCommons:license>		<item>
		<title>A good example of a bad trend</title>
		<link>http://blogs.gnome.org/patrys/2008/06/24/a-good-example-of-a-bad-trend/</link>
		<comments>http://blogs.gnome.org/patrys/2008/06/24/a-good-example-of-a-bad-trend/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 09:59:58 +0000</pubDate>
		<dc:creator>patrys</dc:creator>
				<category><![CDATA[ConsoleKit]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[PolicyKit]]></category>

		<guid isPermaLink="false">http://blogs.gnome.org/patrys/2008/06/24/a-good-example-of-a-bad-trend/</guid>
		<description><![CDATA[To add an example to my last note, here&#8217;s what happened recently.
One user posted the following:
I&#8217;ve noticed FOO desktop is no longer able to mount removable drives. I get the following:
org.freedesktop.hal.storage.mount-removable no &#60;-- (action, result )
What do I do?

And here&#8217;s the proposed solution:
Just edit /etc/PolicyKit/PolicyKit.conf and add the following part:
&#60;match action="org.freedesktop.hal.*"&#62;
&#60;return result="yes"/&#62;
&#60;/match&#62;

And they lived happily [...]]]></description>
			<content:encoded><![CDATA[<p>To add an example to <a href="http://blogs.gnome.org/patrys/2008/06/23/why-forums-are-a-bad-way-to-help-the-community/">my last note</a>, here&#8217;s what happened recently.</p>
<p>One user posted the following:</p>
<blockquote><p>I&#8217;ve noticed FOO desktop is no longer able to mount removable drives. I get the following:</p>
<pre>org.freedesktop.hal.storage.mount-removable no &lt;-- (action, result )</pre>
<p>What do I do?</p>
</blockquote>
<p>And here&#8217;s the proposed solution:</p>
<blockquote><p>Just edit <code>/etc/PolicyKit/PolicyKit.conf</code> and add the following part:</p>
<pre>&lt;match action="org.freedesktop.hal.*"&gt;
&lt;return result="yes"/&gt;
&lt;/match&gt;</pre>
</blockquote>
<p>And they lived happily ever after, right? Wrong. This is a great example of why asking the uneducated crowd to help you solve technical challenges is the best way to shoot yourself in the foot.</p>
<p>I doesn&#8217;t take rocket surgery to figure out that PolicyKit won&#8217;t allow certain actions to be accessed by certain users. In this case it only allows <em>active local sessions</em> to <em>mount removable volumes</em>. What constitutes an active local session? A session logged in locally (which is the case) and connected to ConsoleKit (which is not the case since FOO desktop environment does not seem to use ConsoleKit).</p>
<p>Now if the user asked in the proper place (file a bug or send the question to the proper mailing list) instead of the forums there would be two good answers:</p>
<ul>
<li>Teach FOO desktop how to register itself with ConsoleKit (by fixing the code or using means of <code>pam_consolekit</code>)</li>
<li>Tell PolicyKit to allow certain users to access the action (<code>polkit-auth --user foo --grant org.freedesktop.hal.storage.mount-removable</code>)</li>
</ul>
<p>Now do you see the problem? The original thread in a more illustrative form: <q>if my aunt comes to visit and she does not have the keys, how does she come in?</q> <q>Oh, that&#8217;s easy, just remove the locks.</q></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.gnome.org/patrys/2008/06/24/a-good-example-of-a-bad-trend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
