<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>22356</bug_id>
          
          <creation_ts>2003-06-06 13:11 0000</creation_ts>
          <short_desc>emerge vnc fails when /tmp set &quot;noexec&quot;</short_desc>
          <delta_ts>2003-11-21 12:28:51 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>1.4_rc4</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://www.realvnc.org/</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>matthew@matts.org</reporter>
          <assigned_to>aliz@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>matthew@matts.org</who>
            <bug_when>2003-06-06 13:11:45 0000</bug_when>
            <thetext>It&apos;s a good security practice to have your /tmp directory set &apos;noexec&apos; as many
remote exploits on web servers will try to run files there.

vnc tries to make an executable file and run it in /tmp (no, not /var/tmp)
during the installation process.

To easily reproduce this on gentoo, 

mount -o remount,noexec,rw /dev/shm 
symlink /tmp to /dev/shm (or just mount it at /tmp noexec if you haven&apos;t
already) and 
emerge vnc</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aliz@gentoo.org</who>
            <bug_when>2003-06-28 15:23:29 0000</bug_when>
            <thetext>Could you post a log with the buildprocess failing?  My setup doesnt allow for an 
easy setup for a noexec /tmp. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>aliz@gentoo.org</who>
            <bug_when>2003-11-21 07:52:35 0000</bug_when>
            <thetext>Copied the fix from tightvnc. Try it now.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>matthew@matts.org</who>
            <bug_when>2003-11-21 12:28:51 0000</bug_when>
            <thetext>Excellent, it works great now.  Thanks!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>