VirtualBox

Ticket #3270 (closed defect: fixed)

Opened 10 months ago

Last modified 9 months ago

prefer username for tmpdir creation -> fixed in SVN

Reported by: mkudlvasr Assigned to:
Priority: major Component: other
Version: VirtualBox 2.1.2 Keywords:
Cc: Guest type: other
Host type: Linux

Description

On linux host, when runnin virtualbox as root and then as regular user, the following error emerges: Wrong owner (0) of '/tmp/.vbox-mkudlvasr-ipc' When virtualbox is not run from command line, the error is more cryptic: Callee RC: NS_ERROR_FACTORY_NOT_REGISTERED 0x80040154 This is because the tmpdir is not deleted. I understand from the sources, that it is not deleted for security reasons. Ok, but why not to name the dir .vbox-root-ipc, when vbox is run by root? Fix - prefer username (as in getpwuid) instead of trusting just the env variables. Patch attached. The patch doesn't include proper #ifdefs for non-unix systems. I just don't understand the various macros well enough.

Attachments

virtualbox-ose-sudo-tmpdir.diff (1.4 kB) - added by mkudlvasr on 2009-02-04 16:23:54.

Change History

2009-02-04 16:23:54 changed by mkudlvasr

  • attachment virtualbox-ose-sudo-tmpdir.diff added.

2009-02-09 11:20:08 changed by michael

  • summary changed from prefer username for tmpdir creation to prefer username for tmpdir creation -> fixed in SVN.

Sorry for the delay in responding here. This has now been fixed in the SVN sources. Thanks!

2009-02-16 20:17:21 changed by frank

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in 2.1.4.

© 2009 Sun Microsystems, Inc.
ContactPrivacy policy