How can I check using a script that CD-drive is connected to USB port?
I don't want to allow cd-rom to be used as usb device under any circumstance in my system. Is there a way to check this?
How can I check using a script that CD-drive is connected to USB port?
I don't want to allow cd-rom to be used as usb device under any circumstance in my system. Is there a way to check this?
I would use USBGuard for this,
The USBGuard software framework helps to protect your computer against rogue USB devices (a.k.a. BadUSB) by implementing basic whitelisting and blacklisting capabilities based on device attributes.
I would then create a whitelist of device IDs that are allowed to be used, and block everything else.
See: https://usbguard.github.io/documentation/rule-language.html