<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>@Lathi.net: noexec for security</title>
    <link>http://blog.lathi.net/articles/2005/11/08/noexec-for-security</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>On Life, Fatherhood, Christianity, and Computers</description>
    <item>
      <title>noexec for security</title>
      <description>&lt;p&gt;I don&amp;#8217;t know why I didn&amp;#8217;t think of this myself, but I just changed &lt;code&gt;/tmp&lt;/code&gt; to mount &lt;code&gt;noexec&lt;/code&gt;.  Lately I&amp;#8217;ve been having problems on my server with clients uploading stuff to their &lt;code&gt;/cgi-bin/&lt;/code&gt; or &lt;span class="caps"&gt;PHP&lt;/span&gt; code to their docroot that has security vulnerabilities.  I don&amp;#8217;t have anything in place (yet!) to monitor what they upload, so I&amp;#8217;m caught by surprise when something happens.&lt;/p&gt;


	&lt;p&gt;Changing &lt;code&gt;/tmp&lt;/code&gt; to &lt;code&gt;noexec&lt;/code&gt; is an obvious improvement.  My web server doesn&amp;#8217;t run as root, so &lt;code&gt;/tmp&lt;/code&gt; is a common place for exploits to download, compile and run stuff.  The &lt;code&gt;noexec&lt;/code&gt; option cuts that last step off.  Assuming I&amp;#8217;m not the last sys admin to figure this out, I encourage you to do the same.&lt;/p&gt;


	&lt;p&gt;By the way, it turned out to be very simple to affect the change after editing the &lt;code&gt;/etc/fstab&lt;/code&gt;:&lt;/p&gt;


&lt;blockquote&gt;
&lt;code&gt;
sudo mount -o remount /tmp
&lt;/code&gt;
&lt;/blockquote&gt;

	&lt;p&gt;Now on to write some report that will let me know what stuff my clients have installed&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Tue, 08 Nov 2005 05:27:07 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:5fcf1754-1efc-4f84-90f8-a439f62d3f64</guid>
      <author>Doug</author>
      <link>http://blog.lathi.net/articles/2005/11/08/noexec-for-security</link>
      <category>System Administration</category>
      <category>Security</category>
      <category>noexec</category>
    </item>
    <item>
      <title>"noexec for security" by Eric-Olivier Lamey</title>
      <description>&lt;p&gt;&lt;a href="http://lists.debian.org/debian-glibc/2003/10/msg00539.html" rel="nofollow"&gt;http://lists.debian.org/debian-glibc/2003/10/msg00539.html&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 10 Nov 2005 08:57:31 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:8f8f56e8-9692-4574-ae3a-f31a6336c38d</guid>
      <link>http://blog.lathi.net/articles/2005/11/08/noexec-for-security#comment-95</link>
    </item>
  </channel>
</rss>
