> Why would this be an LSM hook? What's wrong with the existing solutions > for this that are all in userspace today? Because we want to apply the restriction of what USB pendrives can be mounted to all the users of the system, including root. So we need to perform this in kernel space, otherwise any other userspace solutions can be manipulated by root. I guess that it's a little difficult to understand all the deteails without a whole image of the context, but I can't provide more details since my NDA doesn't allow me :( Anyway, if we doesn't consider such aspects, how could I obtain the udev device name associated to a given usb_device structure. Sergi -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html