Ticket #8686 (new defect)

Opened 8 years ago

Last modified 8 years ago

Change process directory to / before forking

Reported by: blade Owned by:
Priority: major Component: other
Version: VirtualBox 4.0.4 Keywords:
Cc: Guest type: other
Host type: other


Unfortunately, the startup directory of VBox* services is kept while these daemons run even when nothing else is using that directory/filesystem during execution. This prevents the underlying filesystem from being umounted when needed.

I created a patch to change it to / on Unix-like systems, similar to what GNU daemon(3) function does.


chdir_to_root.diff Download (828 bytes) - added by blade 8 years ago.

Change History

Changed 8 years ago by blade

comment:1 Changed 8 years ago by klaus

This might solve one problem but creates others. The most severe one is that VBoxSVC will no longer be able to create core dumps due to the access rights of /.

VBoxSVC just isn't a "normal" daemon, as it is run by the user. For those it would make sense to change to the home directory of the user. If it's running then the home directory of the user needs to be present anyway.

comment:2 Changed 8 years ago by klaus

In the mean time we've implemented an intelligent solution which solves the problem on Windows. Not enough spare time yet to do the same on all other platforms.

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