<?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: SE Linux Support in GPG</title>
	<atom:link href="http://etbe.coker.com.au/2008/06/06/se-linux-support-gpg/feed/" rel="self" type="application/rss+xml" />
	<link>http://etbe.coker.com.au/2008/06/06/se-linux-support-gpg/</link>
	<description>Linux, politics, and other interesting things</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:09:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Deron Meranda</title>
		<link>http://etbe.coker.com.au/2008/06/06/se-linux-support-gpg/comment-page-1/#comment-14370</link>
		<dc:creator>Deron Meranda</dc:creator>
		<pubDate>Thu, 12 Jun 2008 20:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=604#comment-14370</guid>
		<description>Why not allow exporting of secret keys to a file; but only as long as the newly created file can be created with the same SELinux context as the secret key ring itself.  This would allow secret keys to be exported when needed (without disabling GPG functionality or mandating special password restrictions only when in SELinux mode), but still allow SELinux profiles to maintain control over those exported secret keys, since you&#039;re not allowing data to be copied across different security contexts.</description>
		<content:encoded><![CDATA[<p>Why not allow exporting of secret keys to a file; but only as long as the newly created file can be created with the same SELinux context as the secret key ring itself.  This would allow secret keys to be exported when needed (without disabling GPG functionality or mandating special password restrictions only when in SELinux mode), but still allow SELinux profiles to maintain control over those exported secret keys, since you&#8217;re not allowing data to be copied across different security contexts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: etbe</title>
		<link>http://etbe.coker.com.au/2008/06/06/se-linux-support-gpg/comment-page-1/#comment-14320</link>
		<dc:creator>etbe</dc:creator>
		<pubDate>Sat, 07 Jun 2008 10:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=604#comment-14320</guid>
		<description>Werner: If someone seems to be using some underhand method of reading the secret key, then that should be blocked at any time.  Without SE Linux the user can use cp to get the secring.gpg file.  The defined way of doing this from gpg is --export-secret-keys, having this force the user to encrypt the data would make sense.  Allowing no way of exporting unencrypted secret key data makes sense (that would not deny them access as cp still works).

Even without SE Linux it seems to me that there still is the possibility that blocking unusual ways of accessing secret data can do some good.</description>
		<content:encoded><![CDATA[<p>Werner: If someone seems to be using some underhand method of reading the secret key, then that should be blocked at any time.  Without SE Linux the user can use cp to get the secring.gpg file.  The defined way of doing this from gpg is &#8211;export-secret-keys, having this force the user to encrypt the data would make sense.  Allowing no way of exporting unencrypted secret key data makes sense (that would not deny them access as cp still works).</p>
<p>Even without SE Linux it seems to me that there still is the possibility that blocking unusual ways of accessing secret data can do some good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: textshell</title>
		<link>http://etbe.coker.com.au/2008/06/06/se-linux-support-gpg/comment-page-1/#comment-14314</link>
		<dc:creator>textshell</dc:creator>
		<pubDate>Fri, 06 Jun 2008 16:42:32 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=604#comment-14314</guid>
		<description>I think for exporting the secret keys there should be at least a config option to select permissive (always) or something more restricted.

But i&#039;m not sure if disallowing the user to read his/her own files is a good idea. I&#039;d wish that even with selinux* the user keeps full control over his files and potentially problematic programs (all internet software, etc) would run somehow with a different MAC context that restricts only those. Then gpg would &quot;only&quot; need to find out if the calling context can read the file to check if exporting is allowed. 
Is something like that possible with SElinux?

* standard end user configuration for SElinux, obviously the local admin might have reasons to use an other policy and SElinux shouldn&#039;t enforce things like this.</description>
		<content:encoded><![CDATA[<p>I think for exporting the secret keys there should be at least a config option to select permissive (always) or something more restricted.</p>
<p>But i&#8217;m not sure if disallowing the user to read his/her own files is a good idea. I&#8217;d wish that even with selinux* the user keeps full control over his files and potentially problematic programs (all internet software, etc) would run somehow with a different MAC context that restricts only those. Then gpg would &#8220;only&#8221; need to find out if the calling context can read the file to check if exporting is allowed.<br />
Is something like that possible with SElinux?</p>
<p>* standard end user configuration for SElinux, obviously the local admin might have reasons to use an other policy and SElinux shouldn&#8217;t enforce things like this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Werner Koch</title>
		<link>http://etbe.coker.com.au/2008/06/06/se-linux-support-gpg/comment-page-1/#comment-14313</link>
		<dc:creator>Werner Koch</dc:creator>
		<pubDate>Fri, 06 Jun 2008 14:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=604#comment-14313</guid>
		<description>What about this:

 if ( ! is_selinux_enabled () )
    disable_all_se_linux_hacks ();
 else if ( security_getenforce () != 1 )
    allow_secret_key_export ();

My man page for is_selinux_enabled states &quot;May change soon&quot; - what does thins mean?</description>
		<content:encoded><![CDATA[<p>What about this:</p>
<p> if ( ! is_selinux_enabled () )<br />
    disable_all_se_linux_hacks ();<br />
 else if ( security_getenforce () != 1 )<br />
    allow_secret_key_export ();</p>
<p>My man page for is_selinux_enabled states &#8220;May change soon&#8221; &#8211; what does thins mean?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Werner Koch</title>
		<link>http://etbe.coker.com.au/2008/06/06/se-linux-support-gpg/comment-page-1/#comment-14312</link>
		<dc:creator>Werner Koch</dc:creator>
		<pubDate>Fri, 06 Jun 2008 14:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=604#comment-14312</guid>
		<description>Okay, an extra transport key to encrypt keys during export would make sense but I see problem to manage that properly.

The idea to require a passphrase for export actually makes sense.  It has been requested for years but I always rejected it with the rationale that it won&#039;t help because the user could just copy the secring.gpg.  Of course with SE  this is different.

[Typo above; it should be: ... send the private key...]

I created https://bugs.g10code.com/gnupg/issue928 to remember this.  I guess you want to have that in Lenny; need to hurry a bit.</description>
		<content:encoded><![CDATA[<p>Okay, an extra transport key to encrypt keys during export would make sense but I see problem to manage that properly.</p>
<p>The idea to require a passphrase for export actually makes sense.  It has been requested for years but I always rejected it with the rationale that it won&#8217;t help because the user could just copy the secring.gpg.  Of course with SE  this is different.</p>
<p>[Typo above; it should be: ... send the private key...]</p>
<p>I created <a href="https://bugs.g10code.com/gnupg/issue928" rel="nofollow">https://bugs.g10code.com/gnupg/issue928</a> to remember this.  I guess you want to have that in Lenny; need to hurry a bit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: etbe</title>
		<link>http://etbe.coker.com.au/2008/06/06/se-linux-support-gpg/comment-page-1/#comment-14311</link>
		<dc:creator>etbe</dc:creator>
		<pubDate>Fri, 06 Jun 2008 11:46:36 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=604#comment-14311</guid>
		<description>http://www.coker.com.au/selinux/play.html

Werner: security_getenforce(3) is what you want.  The above URL has the login details for a test machine, I would be happy to give you your own account (root is shared and random people can rm files etc).  If you login at a quiet time (most times) then you could test compiling some code there.

Simon&#039;s idea of requesting the pass-phrase before backing up a key makes sense for some situations.  However I can imagine the case where you want cron jobs to decrypt or sign data but don&#039;t want them to be able to send the public key out over the net.

We probably need a configuration option for this.</description>
		<content:encoded><![CDATA[<p><a href="http://www.coker.com.au/selinux/play.html" rel="nofollow">http://www.coker.com.au/selinux/play.html</a></p>
<p>Werner: security_getenforce(3) is what you want.  The above URL has the login details for a test machine, I would be happy to give you your own account (root is shared and random people can rm files etc).  If you login at a quiet time (most times) then you could test compiling some code there.</p>
<p>Simon&#8217;s idea of requesting the pass-phrase before backing up a key makes sense for some situations.  However I can imagine the case where you want cron jobs to decrypt or sign data but don&#8217;t want them to be able to send the public key out over the net.</p>
<p>We probably need a configuration option for this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

