Skip to content

Commit de2dccc

Browse files
chrfrankegithub-cygwin
authored andcommitted
Cygwin: doc: warn about unprivileged access to raw devices
Raw devices of partitions may be accessible from unprivileged processes, for example if connected via USB. Signed-off-by: Christian Franke <[email protected]> (cherry picked from commit 8065978ff838f393dfbc7e61374df56f1f157847)
1 parent 26dafb5 commit de2dccc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

winsup/doc/specialnames.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,15 @@ handle the information. <emphasis role='bold'>Writing</emphasis> to a raw
368368
mass storage device you should only do if you
369369
<emphasis role='bold'>really</emphasis> know what you're doing and are aware
370370
of the fact that any mistake can destroy important information, for the
371-
device, and for you. So, please, handle this ability with care.
371+
device, and for you. So, please, handle this ability with care.</para>
372+
373+
<para><emphasis role='bold'>Important:</emphasis> Windows may allow raw read
374+
<emphasis role='bold'>and write</emphasis> access to partitions (for example
375+
<filename>/dev/sda2</filename>) even from unprivileged processes. This is
376+
usually the case for partitions on "removable" drives like USB flash drives
377+
or regular SATA/NVMe drives behind USB docking stations. If
378+
<command>chkdsk X:</command> works, raw access to the same partition is
379+
possible from the same user account.
372380
<emphasis role='bold'>You have been warned.</emphasis></para></note>
373381

374382
<para>

0 commit comments

Comments
 (0)