Hello all, I have been trying to figure this out for the better part of a day already. I know in centOS its as easy as making a .conf file in modprobe.d and having "blacklist usb-storage" in it. All of my Google-fu has failed to return any results about disabling ALL USB access on the pi, other than debian/rhel based distros. I also couldn't find anything on regular Arch about disabling all ports.
I have tried $ ls /lib/modules/$(uname -r)/kernel/drivers (and deleting/moving the hid folder, because i didn't see anything specific for hid-keyboard), as well as the same thing in usb. I tried doing modinfo on a lot of the modules but some didn't return any valuable information. I also notice mkinitcpio runs a build hook for [keyboard], I could just disable that hook, right?
But at the same time I don't want ANY USB device to be detected. I don't care that they receive power, I just don't want them to interact with the OS at all.
Will I need to build a kernel myself? Is there a repo for the kernel including in the OS I can fork, or do I need to start from the base linux kernel?
I am trying to set this up as a kiosk, sadly they stay behind the TVs where anyone can grab the device, or plug in a BadUSB, or a a keyboard or something.
Thanks in advance!