<?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>etbe - Russell Coker &#187; Security</title>
	<atom:link href="http://etbe.coker.com.au/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://etbe.coker.com.au</link>
	<description>Linux, politics, and other interesting things</description>
	<lastBuildDate>Tue, 09 Feb 2010 11:13:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Play Machine Online Again</title>
		<link>http://etbe.coker.com.au/2009/12/15/play-machine-online-again/</link>
		<comments>http://etbe.coker.com.au/2009/12/15/play-machine-online-again/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 02:00:50 +0000</pubDate>
		<dc:creator>etbe</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Selinux]]></category>

		<guid isPermaLink="false">http://etbe.coker.com.au/?p=1488</guid>
		<description><![CDATA[I have returned from the US and my SE Linux Play Machine [1] is online again.
It was unfortunate that I forgot to pack one of my Play machine shirts, I ended up attending a meeting of the SDForum [2] on the topic of Cloud Security (it was a joint meeting of the Cloud Services and [...]]]></description>
			<content:encoded><![CDATA[<p>I have returned from the US and my <a href="http://www.coker.com.au/selinux/play.html">SE Linux Play Machine [1]</a> is online again.</p>
<p>It was unfortunate that I forgot to pack one of my Play machine shirts, I ended up attending a meeting of the <a href="http://www.sdforum.org/">SDForum [2]</a> on the topic of Cloud Security (it was a joint meeting of the Cloud Services and Security SIGs) and it would have been good to have been wearing a root password.</p>
<ul>
<li>[1]<a href="http://www.coker.com.au/selinux/play.html"> http://www.coker.com.au/selinux/play.html</a></li>
<li>[2]<a href="http://www.sdforum.org/"> http://www.sdforum.org/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etbe.coker.com.au/2009/12/15/play-machine-online-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Play Machine Offline for 2 Weeks</title>
		<link>http://etbe.coker.com.au/2009/11/29/play-machine-offline-for-2-weeks/</link>
		<comments>http://etbe.coker.com.au/2009/11/29/play-machine-offline-for-2-weeks/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 23:26:39 +0000</pubDate>
		<dc:creator>etbe</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Selinux]]></category>

		<guid isPermaLink="false">http://etbe.coker.com.au/?p=1462</guid>
		<description><![CDATA[I&#8217;m about to leave for San Francisco, so my SE Linux Play Machine is turned off and will remain off until after I return.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m about to leave for San Francisco, so my SE Linux Play Machine is turned off and will remain off until after I return.</p>
]]></content:encoded>
			<wfw:commentRss>http://etbe.coker.com.au/2009/11/29/play-machine-offline-for-2-weeks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian SSH and SE Linux</title>
		<link>http://etbe.coker.com.au/2009/11/17/debian-ssh-se-linux/</link>
		<comments>http://etbe.coker.com.au/2009/11/17/debian-ssh-se-linux/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 12:38:45 +0000</pubDate>
		<dc:creator>etbe</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Selinux]]></category>

		<guid isPermaLink="false">http://etbe.coker.com.au/?p=1419</guid>
		<description><![CDATA[I have just filed Debian bug report #556644 against the version of openssh-server in Debian/Unstable (Squeeze).  It has a patch that moves the code to set the SE Linux context for the child process before calling chroot.  Without this a chroot environment on a SE Linux system can only work correctly if /proc and [...]]]></description>
			<content:encoded><![CDATA[<p>I have just filed Debian bug report <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556644">#556644</a> against the version of openssh-server in Debian/Unstable (Squeeze).  It has a patch that moves the code to set the SE Linux context for the child process before calling chroot.  Without this a chroot environment on a SE Linux system can only work correctly if <b>/proc</b> and <b>/selinux</b> are mounted in the chroot environment.</p>
<p><b>deb http://www.coker.com.au squeeze selinux</b></p>
<p>I&#8217;ve created the above APT repository for Squeeze which has a package that fixes this bug.  I will continue to use that repository for a variety of SE Linux patches to Squeeze packages, at the moment it&#8217;s packages from Unstable but I will also modify released packages as needed.</p>
<p>The bug report <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=498684">#498684</a> has a fix for a trivial uninitialised variable bug. The fix is also in my build.</p>
<p>Also I filed the bug report <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556648">#556648</a> about the internal version of sftp being<br />
incompatible with SE Linux (it doesn&#8217;t involve an exec so the context doesn&#8217;t change).  The correct thing to do is for sshd to refuse to run an internal sftpd at least if the system is in enforcing mode, and probably even in permissive mode.</p>
<p><b>deb http://www.coker.com.au lenny selinux</b></p>
<p>Update: I&#8217;ve also backported my sshd changes to Lenny at the above APT repository.</p>
]]></content:encoded>
			<wfw:commentRss>http://etbe.coker.com.au/2009/11/17/debian-ssh-se-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Play Machine</title>
		<link>http://etbe.coker.com.au/2009/10/28/new-play-machine/</link>
		<comments>http://etbe.coker.com.au/2009/10/28/new-play-machine/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 10:41:40 +0000</pubDate>
		<dc:creator>etbe</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Selinux]]></category>

		<guid isPermaLink="false">http://etbe.coker.com.au/?p=1399</guid>
		<description><![CDATA[Update:
Thanks to Sven Joachim and Andrew Pollock for informing me about /etc/init.d/mountoverflowtmp which exists to mount a tmpfs named overflow if /tmp is full at boot time.  It appears that the system was not compromised.  But regular reinstalls are always a good thing.
On the 24th of August this year I noticed the following [...]]]></description>
			<content:encoded><![CDATA[<p><b>Update:<br />
Thanks to Sven Joachim and Andrew Pollock for informing me about /etc/init.d/mountoverflowtmp which exists to mount a tmpfs named overflow if /tmp is full at boot time.  It appears that the system was not compromised.  But regular reinstalls are always a good thing.</b></p>
<p>On the 24th of August this year I noticed the following on my <a href="http://www.coker.com.au/selinux/play.html">SE Linux Play Machine [1]</a>:<br />
<b>root@play:/root# df<br />
Filesystem&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  1K-blocks&nbsp; &nbsp; &nbsp; Used Available Use% Mounted on<br />
/dev/hda&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  1032088&nbsp; &nbsp; 938648&nbsp; &nbsp;  41012&nbsp; 96% /<br />
tmpfs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 51296&nbsp; &nbsp; &nbsp; &nbsp;  0&nbsp; &nbsp;  51296&nbsp;  0% /lib/init/rw<br />
udev&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  10240&nbsp; &nbsp; &nbsp; &nbsp; 24&nbsp; &nbsp;  10216&nbsp;  1% /dev<br />
tmpfs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 51296&nbsp; &nbsp; &nbsp; &nbsp;  4&nbsp; &nbsp;  51292&nbsp;  1% /dev/shm<br />
/dev/hdb&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 516040&nbsp; &nbsp;  17128&nbsp; &nbsp; 472700&nbsp;  4% /root<br />
/dev/hdc&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1024&nbsp; &nbsp; &nbsp; &nbsp;  8&nbsp; &nbsp; &nbsp; 1016&nbsp;  1% /tmp<br />
overflow&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1024&nbsp; &nbsp; &nbsp; &nbsp;  8&nbsp; &nbsp; &nbsp; 1016&nbsp;  1% /tmp</b></p>
<p>The kernel message log had the following:<br />
<b>[210511.546152] su[769]: segfault at 0 ip b7e324e3 sp bfa4b064<br />
error 4 in libc-2.7.so[b7dbb000+158000]<br />
[210561.527839] su[778]: segfault at 0 ip b7eb14e3 sp bfec84d4 error 4 in<br />
libc-2.7.so[b7e3a000+158000]<br />
[210585.270372] su[784]: segfault at 0 ip b7e044e3 sp bff1b534 error 4 in<br />
libc-2.7.so[b7d8d000+158000]<br />
[210595.855278] su[789]: segfault at 0 ip b7e014e3 sp bfd18324 error 4 in<br />
libc-2.7.so[b7d8a000+158000]<br />
[210639.496847] su[796]: segfault at 0 ip b7e874e3 sp bf99e7b4 error 4 in<br />
libc-2.7.so[b7e10000+158000]</b></p>
<p>Naturally this doesn&#8217;t look good, the filesystem known as &#8220;<b>overflow</b>&#8221; indicates a real problem.  It appears that the machine was compromised.  So I&#8217;ve made archival copies of all the data and reinstalled it.</p>
<p>As the weather here is becoming warmer I&#8217;ve used new hardware for my new Play Machine.  The old system was a 1.8GHz Celeron with 1280M of RAM and two IDE disks in a RAID-1 array.  The new system is a P3-800 with 256M of RAM and a single IDE disk.  It&#8217;s a Compaq Evo which runs from a laptop PSU and is particularly energy efficient and quiet.  The down-side is that there is no space for a second disk and only one RAM socket so I&#8217;m limited to 256M &#8211; that&#8217;s just enough to run a Xen server with a single DomU.</p>
<p>I put the new play machine online on Friday the 23rd of October after almost two months of down-time.</p>
<ul>
<li>[1]<a href="http://www.coker.com.au/selinux/play.html"> http://www.coker.com.au/selinux/play.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etbe.coker.com.au/2009/10/28/new-play-machine/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ownership of Laptops for Work</title>
		<link>http://etbe.coker.com.au/2009/09/04/ownership-laptops-work/</link>
		<comments>http://etbe.coker.com.au/2009/09/04/ownership-laptops-work/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 10:40:13 +0000</pubDate>
		<dc:creator>etbe</dc:creator>
				<category><![CDATA[Career]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://etbe.coker.com.au/?p=1358</guid>
		<description><![CDATA[Jetstar has announced some new changes to the way they manage their IT infrastructure [1].  Some parts of it are obvious things that people have been doing (or wanting to do) for a long time &#8211; such as using thin clients with no moving parts (not even cooling fans).
But the really interesting part is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.australianit.news.com.au/story/0,24897,26021336-15306,00.html">Jetstar has announced some new changes to the way they manage their IT infrastructure [1]</a>.  Some parts of it are obvious things that people have been doing (or wanting to do) for a long time &#8211; such as using thin clients with no moving parts (not even cooling fans).</p>
<p>But the really interesting part is their plan for managing laptops.  They are using a virtual machine image on a flash storage device that can run on any system.  So deploying a new system will only require installing the virtual machine software and inserting a storage device.  Moving a user&#8217;s environment to a different system (EG due to hardware failure) will merely require inserting the storage device in a new system.</p>
<p>That raises the issue of ownership of the device.  It seems that Jetstar are considering using systems that are owned by employees, Stephen Tame said &#8220;<b>In two years&#8217; time a laptop should be a condition of employment, and this includes bringing your own laptop</b>&#8220;.  When introducing that I expect there would be some resistance by employees who don&#8217;t want to spend the money.  However<br />
<a href="http://etbe.coker.com.au/2008/06/16/cost-owning-car/">I have previously estimated the costs of running a car [2]</a> which works out to more than $1,650 per year for insurance, registration, basic maintenance, and the interest that would have been received if the car had not been purchased and the money had been invested.  Laptops can be purchased for significantly less than $1000 (currently the EeePC 701 is on sale for $219) and can be expected to last for three years or more if you are careful to avoid damage and don&#8217;t run demanding software.  So a job that demands ownership of a laptop is asking for a much smaller financial investment than one which demands ownership of a car.  But I expect that many employees won&#8217;t see it that way.</p>
<p>The up-side for employees to bring their own laptops is that they can choose a model that suits their preference.  Everyone has preferences regarding the size of keys on a keyboard, the distance that they travel and the pressure required to register a key-press.  For desktop machines it&#8217;s easy to swap keyboards but for laptops there is no such option.  Then there&#8217;s the issue of the trade-off between physical size and weight vs display resolution, personal preferences in this regard will depend to some extent on the body mass and strength of the employee.</p>
<p>Now there are a number of security issues related to personal laptop use.  Obviously if the laptop has a Trojan-horse program installed then it could sniff any data that goes past on the network.  The most trivial case of this could be addressed by running VPN software inside the emulated environment.  This would force a Trojan to compromise the virtual environment (EG by modifying the address space) or to compromise the files on disk (insert a Trojan inside the filesystem for the virtual environment).  The former would be tricky to get right while the latter would be trivial.  Both attack methods have been used in the past and proven to work.  This is why many companies prohibit their employees from connecting their own systems to the corporate network.</p>
<p>One example of a system that is based around running virtual machines for all desktop operations is <a href="http://en.wikipedia.org/wiki/NetTop">the NSA NetTop project [3]</a>.  NetTop involves a SE Linux system that runs multiple instances of VMWare for different desktop environments.  Each VMWare instance runs at a particular sensitivity level and uses a VPN connection to a back-end network running at the same level.  The aim of NetTop is to prevent applications in the different VMWare instances from communicating with each other.  The significant difference between a typical NetTop installation and what JetStar might be doing is that NetTop runs on a secure base &#8211; it&#8217;s hardware that has been purchased and installed by a military organisation and is run in a secure facility.  While personal laptops that are owned by employees can be expected to be infected with viruses and Trojan-horse programs.</p>
<p><a href="http://etbe.coker.com.au/2009/02/01/employment-packages/">In the past I have suggested that an employment package for any skilled employee should include some budget for buying things that facilitate the work [4]</a>.  It seems to me that a company like JetStar could best achieve their goals by assigning a budget to each new employee to buy a machine for their use.  The employee then gets to choose a machine up to that budget &#8211; which would only be for work purposes.  Then when the employee leaves or the machine becomes due for replacement it could be sold at auction.  When considering all the costs involved in hiring a new person, spending something less than $1,000 to buy a laptop is nothing.</p>
<p>Finally if buying machines for work purposes, you really don&#8217;t want employees using them for surfing porn.  Porn sites tend to be particularly bad for malware distribution.  To reduce the incidence of such problems I think that work machines should have their sound hardware disabled and laptops should not be purchased with overly large displays.  There is no need to make work machines totally unsuitable for porn surfing (which would also make them less effective for work), but making them less suitable than a $500 budget PC should dramatically reduce the scope of the problem.</p>
<ul>
<li>[1]<a href="http://www.australianit.news.com.au/story/0,24897,26021336-15306,00.html"> http://www.australianit.news.com.au/story/0,24897,26021336-15306,00.html</a></li>
<li>[2]<a href="http://etbe.coker.com.au/2008/06/16/cost-owning-car/"> http://etbe.coker.com.au/2008/06/16/cost-owning-car/</a></li>
<li>[3]<a href="http://en.wikipedia.org/wiki/NetTop"> http://en.wikipedia.org/wiki/NetTop</a></li>
<li>[4]<a href="http://etbe.coker.com.au/2009/02/01/employment-packages/"> http://etbe.coker.com.au/2009/02/01/employment-packages/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etbe.coker.com.au/2009/09/04/ownership-laptops-work/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Free K-12 Text Books</title>
		<link>http://etbe.coker.com.au/2009/08/29/free-k-12-text-books/</link>
		<comments>http://etbe.coker.com.au/2009/08/29/free-k-12-text-books/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 04:55:49 +0000</pubDate>
		<dc:creator>etbe</dc:creator>
				<category><![CDATA[Liberty]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://etbe.coker.com.au/?p=1348</guid>
		<description><![CDATA[The CK12 project is developing free (CC by SA) textbooks for the K-12 market (with a current focus on the early years of high school) [1].  Their primary aim seems to be flex-books &#8211; text books that can be localised and modified to better suit the needs of the students.  But of course [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://about.ck12.org/">The CK12 project is developing free (CC by SA) textbooks for the K-12 market (with a current focus on the early years of high school) [1]</a>.  Their primary aim seems to be flex-books &#8211; text books that can be localised and modified to better suit the needs of the students.  But of course there are many other benefits, <a href="http://etbe.coker.com.au/2008/05/24/school-bag-weight/">according to my best estimates storing text books on an ebook reader or one of the lighter NetBooks is necessary to avoid childhooh back injuries [2]</a>.</p>
<p>Another major benefit of flexible text books is the possibility of teaching a wider range of subjects.  A subject does not need the level of interest that is required to get a publishing contract (which generally means acceptance by the education department of a state) to have a text book.  Independent schools and home-schoolers can select subjects that are not in the mainstream curriculum.</p>
<p><a href="http://authors.ck12.org/wiki/">The information for potential authors of text books is here (they didn&#8217;t make it particularly easy to find) [3]</a>.</p>
<p>One thing I would like to see is a text book about computer security.  I really don&#8217;t think that this would be an overly difficult subject for an 11yo who is interested in computers.  When I was 11 I read a text book on nuclear physics in the form of a comic book, I don&#8217;t think that computer security is inherently more difficult or harder to teach than nuclear physics.  Naturally full coverage would require several texts aimed at different ages.  But that&#8217;s possible too.  It would probably be easiest to start with an age of ~16.  Also as computer security is a subject that is both difficult at one end of the scale and essential at the other it would be necessary to have <b>A</b> and <b>B</b> streams (as is done with maths in the Australian education system).</p>
<p>Please leave a comment if you are interested in participating in the development of computer security related text books.  Incidentally it would be good to get a contributor who has had experience in teaching teenagers even if they don&#8217;t have any knowledge of computer security &#8211; I don&#8217;t expect to find someone with good technical skills and teaching experience.</p>
<ul>
<li>[1]<a href="http://about.ck12.org/"> http://about.ck12.org/</a></li>
<li>[2]<a href="http://etbe.coker.com.au/2008/05/24/school-bag-weight/"> http://etbe.coker.com.au/2008/05/24/school-bag-weight/</a></li>
<li>[3]<a href="http://authors.ck12.org/wiki/"> http://authors.ck12.org/wiki/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etbe.coker.com.au/2009/08/29/free-k-12-text-books/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
