> > > Disconnect the device from the driver through either usbfs or sysfs. > > > > Thank you for your answer! But is this not supposed to be done from > > userspace? I need to do it from kernelspace. > > Why? From where within kernelspace? A different USB driver? A > root-kit? Somewhere else?
It's not a rootkit :) and not exactly another usb driver. See below. > > And my other concern is that even if I unbind the device this way, the > > user can disconnect then reconnect it (physically), and it automatically > > gets rebound. I need a way to prevent the use of usb input devices when > > they are not to be used. (All this is controlled from a userspace daemon > > but I suppose a kernelspace part is also needed - correct me please if I > > am wrong.) > > Why do you need this, and what exactly are you trying to prevent from > happening? My project is to develop some kind of "lock", so that when this lock is active, the computer does not handle any input from the user (possible network connections can be neglected for the time being). This is controlled by a daemon that monitors certain things (presence of a given bluetooth device for example) and when certain conditions are met (the bluetooth device is not present for example), locks the machine (disables all user input through the sysfs interface of my module). All this works for AT and PS2 keyboards and mice, but I could not yet figure it out for usb. Thank you! Gabor ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
