Now that dom0 uses fedora 41 it should be trivial to generate usbguard policys that only allow your specific keyboard and mice at a certain port instead of allowing all input devices by default.
A rules file can be generated like this:
$ sudo sh -c 'usbguard generate-policy > /etc/usbguard/rules.conf'
What do I need to do, to overwrite the default configuration in dom0? Is it enough to remove usb.authorized_default=0 from the Grub config and delete the config dir in /etc/usbguard/rules.d ? Won’t an update just overwrite it?
It depends on how the files are defined in the RPM package.
I recall seeing those .rpmsave/.rpmnew files … but never checked the difference …
Maybe it’s better to edit the files (and not delete them) - so the update can see that “This has been edited - then I better not overwrite it” (?)