VirtualBox

Ticket #281 (closed defect: fixed)

Opened 7 years ago

Last modified 5 years ago

Sharing the root folder of *NIX host -> Fixed in VBox 2.2.x

Reported by: nirv Owned by:
Priority: minor Component: shared folders
Version: VirtualBox 1.3.8 Keywords: shared folders linux host
Cc: Guest type: other
Host type: other

Description

The parser removes slashes from the path, but it seams that tis is not the correct way to handle paths.

nasko@nasko-lap ~ $ vboxmanage sharedfolder add Win2k -name root -hostpath "/"

VirtualBox Command Line Management Interface Version 1.3.8
(C) 2005-2007 InnoTek Systemberatung GmbH
All rights reserved.

[!] FAILED calling machine->CreateSharedFolder(Bstr(name), Bstr(hostpath)) at line 5533!
[!] Primary RC  = 0x80070057
[!] Full error info present: true , basic error info present: true
[!] Result Code = 0x80070057
[!] Text        = Shared folder path '' is not absolute
[!] Component   = SharedFolder, Interface: ISharedFolder, {8b0c5f70-9139-4f97-a421-64d5e9c335d5}
[!] Callee      = IMachine, {fd443ec1-0009-4f5b-9282-d72760a66916}

Change History

comment:1 follow-up: ↓ 2 Changed 7 years ago by sandervl73

True, but it's a very bad idea to share the root folder in the first place. :)

comment:2 in reply to: ↑ 1 Changed 7 years ago by nirv

Replying to sandervl73:

Since I think this will not lead to privilage elevation, in the guest you will have the same file system access as the user running the virtual machine on the host. This means no access to the /root folder, /etc/shadow and so on.

It is not a good idea to run the virtual machine as root :)

comment:3 Changed 6 years ago by frank

  • Component changed from other to shared folders

comment:4 Changed 5 years ago by sunlover

  • Status changed from new to closed
  • Resolution set to fixed
  • Summary changed from Sharing the root folder of *NIX host to Sharing the root folder of *NIX host -> Fixed in VBox 2.2.x

Works with VirtualBox 2.2.x or later.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use