Bug 22356 - emerge vnc fails when /tmp set "noexec"
Bug#: 22356 Product:  Gentoo Linux Version: 1.4_rc4 Platform: All
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: aliz@gentoo.org Reported By: matthew@matts.org
Component: Applications
URL:  http://www.realvnc.org/
Summary: emerge vnc fails when /tmp set "noexec"
Keywords:  
Status Whiteboard: 
Opened: 2003-06-06 13:11 0000
Description:   Opened: 2003-06-06 13:11 0000
It's a good security practice to have your /tmp directory set 'noexec' 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't
already) and 
emerge vnc

------- Comment #1 From Daniel Ahlberg (RETIRED) 2003-06-28 15:23:29 0000 -------
Could you post a log with the buildprocess failing?  My setup doesnt allow for
an 
easy setup for a noexec /tmp. 

------- Comment #2 From Daniel Ahlberg (RETIRED) 2003-11-21 07:52:35 0000 -------
Copied the fix from tightvnc. Try it now.

------- Comment #3 From Matt 2003-11-21 12:28:51 0000 -------
Excellent, it works great now.  Thanks!