Ticket #3270 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

prefer username for tmpdir creation -> fixed in SVN

Reported by: mkudlvasr Owned by:
Component: other Version: VirtualBox 2.1.2
Keywords: Cc:
Guest type: other Host type: Linux


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.


virtualbox-ose-sudo-tmpdir.diff Download (1.4 KB) - added by mkudlvasr 11 years ago.

Change History

Changed 11 years ago by mkudlvasr

comment:1 Changed 11 years ago 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!

comment:2 Changed 11 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in 2.1.4.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use