VirtualBox

Opened 16 years ago

Closed 16 years ago

#3270 closed defect (fixed)

prefer username for tmpdir creation -> fixed in SVN

Reported by: Martin Kudlvasr Owned by:
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 (1)

virtualbox-ose-sudo-tmpdir.diff (1.4 KB ) - added by Martin Kudlvasr 16 years ago.

Download all attachments as: .zip

Change History (3)

by Martin Kudlvasr, 16 years ago

comment:1 by Michael Thayer, 16 years ago

Summary: prefer username for tmpdir creationprefer 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 by Frank Mehnert, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in 2.1.4.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette