https://bugs.winehq.org/show_bug.cgi?id=55239
Bug ID: 55239 Summary: Read access denied for device L"\??\f:\", FS volume label and serial are not available Product: Wine Version: 8.12 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: conurus@gmail.com Distribution: ---
Under ./wine/dosdevices, there are a bunch of symbolic links to each removable drive. My D: links to /dev/sdb. Now I don't have access to /dev/sdb whatsoever, not even read access, which is correct from a security standpoint, otherwise any user can circumvent any access control and peer at any other users' data by low level disk access.
Reading just the volume label and serial should be legal and permitted, so I believe this is not a feature but a bug. In my case the underlying Win32 API call I used is GetVolumeInformation. There must be some way for wine to implement this call without low level disk access.
Forum topic: https://forum.winehq.org/viewtopic.php?t=37602