From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 22 Feb 2011 13:54:57 +0000 Subject: Re: How to use Udev to restrict USB access only to particular set Message-Id: <20110222135457.GA12220@kroah.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Feb 22, 2011 at 03:46:06PM +0200, Vilius Benetis wrote: > On Mon, Feb 21, 2011 at 5:57 PM, Greg KH wrote: > > Yes, add a udev rule to not "enable" any usb device that is a mass > > storage device that does not fall in your list of "valid" devices. > > There is a single sysfs file to write to which would prevent any access > > to that device, use that. > > Greg, > > by any chance you could draft the command structure, as I think we > tried this, but probably it did not work for some reason? Can you post what you tried and the errors you got from that? You should also look at the archives for this list, as this topic comes up every 6 months or so, and has been solved numerous times in the past. thanks, greg k-h