Due to security reasons, I want to prevent that input devices can not be used on a certain USB port. Non-input functionality (e.g. mass storage or ttyUSB) must be available on this port. Input devices must be still working on other USB ports.
"can not be used" means that e.g. no corresponding /dev/input/eventX
device is created and common frameworks (X11, linux console) do not accept input from the device.
I can identify the USB port by udev rules like
DEVPATH=="/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.7/2-1.7.1/*"
but I am not sure how to disable it.
Ancient udev versions supported OPTIONS+="ignore_device"
but this option is gone.
How can I do this?