Get to work, people!
Get to work, people!
That would perhaps also make it possible to optionally prevent such requests from ever reaching the USB stick, thus adding write-protection to legacy sticks.
Probably not 100% trivial given the signalling speed and general complexity of USB, but perhaps solvable using an FPGA? There is a software-only USB stack for 8-bit AVR:s, so it doesn't seem totally impossible, either.
No, I don't have a startup manufacturing such a device. :)
UPDATE: Ah, I just reinvented the WriteBlocker: http://www.wiebetech.com/products/USB-WriteBlocker.php. Sigh.
http://www.ftdichip.com/Products/Modules/DevelopmentModules....
The presence of a notch, and the presence and position of
a tab, have no effect on the SD card's operation. A host
device that supports write protection should refuse to
write to an SD card that is designated read-only in this
way. Some host devices do not support write protection,
which is an optional feature of the SD specification.
Drivers and devices that do obey a read-only indication
may give the user a way to override it.
In most cases the switch is just software detectable. Some prosumer cameras use this switch to indicate there is a firmware update on the card and that the camera should try to apply it when it is powered up.On the one hand, it gives you greater security when used perfectly. On the other hand, it has a cognitive overhead, and a worse failure mode (you forget that you've left it writeable, and won't have the light to give you feedback).
So even better would be a hardware lock for writes and a light indicating when writes happen.
I have also resurrected a write-broken flash drive, by re-flashing it's firmware (a tool for which was provided by microcontroller vendor, which I found out by looking at VID/PID values and googling them).
Nothing is stopping a compromised host system from flashing the microcontroller on the USB stick to make it lie to you.
Nothing, that is, except possibly a complete absence of such a facility! It depends on the microcontroller and how it has been wired into the USB device.