Open tlaurion opened 1 month ago
This has convenience VS security implications.
@marmarek is that what you would request for platforms having ps2 keyboards but where usb is needed for testing?
Remember rubber ducky with usb+hid support. Thoughts welcome
Right, but since it's disabled by default, an USB keyboard can't enable itself on its own. And also the option is placed in the menu deep enough that IMO it can't be switched unknowingly.
Alright so plan is.
@marmarek @JonathonHall-Purism good enough as a plan?
* Make sure that usb keyboard only boards are enforcing usb required in board configs
This should already be the case, but never hurts to double check :crossed_fingers:
* have all ps2 boards enable usb keyboard optional to be setup by ps2 keyboard if needed
Agree. I would do this by removing the CONFIG_SUPPORT_USB_KEYBOARD, since all boards will support it now, there's no need for the config any more. Just update config-gui.sh and modules/linux by removing the tests and keeping the logic that used to apply when it was 'y'.
* make sure config menu warns user of security implication, telling ps2 better for security vs convenience.
Yeah we have that:
if (whiptail --title 'Enable USB Keyboard?' \ --yesno "USB keyboards will be usable in $CONFIG_BRAND_NAME. \n\nEnabling USB keyboards could allow a compromised USB device to control \n$CONFIG_BRAND_NAME. \n\nDo you want to proceed?" 0 80) then
I think that's clear and concise. It could allow a compromised USB device to control Heads.
I just tried t430-hotp-maximized with added CONFIG_SUPPORT_USB_KEYBOARD=y
, and it worked as expected:
Should be part of #1821, assigned myself