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
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?