On Jul 14 14:58, Christian Franke wrote:
> From 344a329a5706de125b3ef11dc7324101b08b3c67 Mon Sep 17 00:00:00 2001
> From: Christian Franke <[email protected]>
> Date: Mon, 14 Jul 2025 14:44:01 +0200
> Subject: [PATCH] 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]>
> ---
>  winsup/doc/specialnames.xml | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/winsup/doc/specialnames.xml b/winsup/doc/specialnames.xml
> index a1f9d3f5e..02375e737 100644
> --- a/winsup/doc/specialnames.xml
> +++ b/winsup/doc/specialnames.xml
> @@ -368,7 +368,15 @@ handle the information.  <emphasis 
> role='bold'>Writing</emphasis> to a raw
>  mass storage device you should only do if you
>  <emphasis role='bold'>really</emphasis> know what you're doing and are aware
>  of the fact that any mistake can destroy important information, for the
> -device, and for you.  So, please, handle this ability with care.
> +device, and for you.  So, please, handle this ability with care.</para>
> +
> +<para><emphasis role='bold'>Important:</emphasis> Windows may allow raw read
> +<emphasis role='bold'>and write</emphasis> access to partitions (for example
> +<filename>/dev/sda2</filename>) even from unprivileged processes.  This is
> +usually the case for partitions on "removable" drives like USB flash drives
> +or regular SATA/NVMe drives behind USB docking stations.  If
> +<command>chkdsk X:</command> works, raw access to the same partition is
> +possible from the same user account.
>  <emphasis role='bold'>You have been warned.</emphasis></para></note>
>  
>  <para>
> -- 
> 2.45.1
> 

Pushed.... oh, right, you have push perms, sigh :}


Thanks,
Corinna

Reply via email to