In short:
I have written some code in which I detect new device connections using udev. What I want is prevent detected device from being used.
There is some way to do that programmatically? There is some udev api for setting udev_device permissions?