Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22356 - emerge vnc fails when /tmp set "noexec"
Summary: emerge vnc fails when /tmp set "noexec"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL: http://www.realvnc.org/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-06 13:11 UTC by Matt
Modified: 2003-11-21 12:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt 2003-06-06 13:11:45 UTC
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 Daniel Ahlberg (RETIRED) gentoo-dev 2003-06-28 15:23:29 UTC
Could you post a log with the buildprocess failing?  My setup doesnt allow for an 
easy setup for a noexec /tmp. 
Comment 2 Daniel Ahlberg (RETIRED) gentoo-dev 2003-11-21 07:52:35 UTC
Copied the fix from tightvnc. Try it now.
Comment 3 Matt 2003-11-21 12:28:51 UTC
Excellent, it works great now.  Thanks!