VOGONS


First post, by IIGS_User

User metadata
Rank Oldbie
Rank
Oldbie

For some reasons, the development branch of the frontend I created performs a 'mount a /Volumes/', if I let it imgmount a hard disk image created with Virtual PC 2007 (*.vhd) to either c or d within DOSBox.
I've no idea why my development branch forces to do this, but I've taken a deeper look into it and must tell the following:

DOSBox Mt. Everything of type folder if it is located in the root of boot drive of Mac OS X, even invisible ones (like the folder 'Volumes' mentioned above, which holds aliases to all the drives mounted to the host OS).
I've no clue how to prevent DOSBox from doing so.

Because Mac OS X is unix based, maybe the same problem happens on other Unix or Linux based systems, too?

It is the same as if you open the 'Go' menu of the Finder and call the command 'Go to Folder', to enter '/etc', for example.
You can do a 'mount a /etc' inside DOSBox the same way, without entering the complete path to the folder, which is "/Volumes/Macintosh HD/etc/".
You can even do a 'mount a /system' which is the System folder Mac OS X booted of.

I don't know how important this case is, but is it problably a security hole?

Klimawandel.

Reply 1 of 4, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

that is simply how dosbox works.
you can use the securemode flag in order to prevent the user to mount stuff.

I think it is pretty well known that dosbox is a dos emulator that allows transparent access to your files. Including system files if you want to.

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 4, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Shouldn't the files in there be protected from normal users by the OS?

1+1=10

Reply 3 of 4, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

of course. they can read them or not depending on the permissions of the users

Water flows down the stream
How to ask questions the smart way!

Reply 4 of 4, by IIGS_User

User metadata
Rank Oldbie
Rank
Oldbie

Ah, OK. 😀

I just wondered because my examples doesn't provide a full path to the folders to be mounted.

Klimawandel.