From owner-freebsd-current@FreeBSD.ORG Tue Dec 23 19:30:33 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60B2F1065670; Tue, 23 Dec 2008 19:30:33 +0000 (UTC) (envelope-from rink@rink.nu) Received: from mx1.rink.nu (gloom.rink.nu [213.34.49.2]) by mx1.freebsd.org (Postfix) with ESMTP id 127748FC12; Tue, 23 Dec 2008 19:30:33 +0000 (UTC) (envelope-from rink@rink.nu) Received: from localhost (localhost [127.0.0.1]) by mx1.rink.nu (Postfix) with ESMTP id C8C856D42B; Tue, 23 Dec 2008 20:30:59 +0100 (CET) X-Virus-Scanned: amavisd-new at rink.nu Received: from mx1.rink.nu ([213.34.49.2]) by localhost (gloom.rink.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BW527FnYyL3D; Tue, 23 Dec 2008 20:30:56 +0100 (CET) Received: by mx1.rink.nu (Postfix, from userid 1000) id 392D06D439; Tue, 23 Dec 2008 20:30:56 +0100 (CET) Date: Tue, 23 Dec 2008 20:30:56 +0100 From: Rink Springer To: Ed Schouten Message-ID: <20081223193056.GA65161@rink.nu> References: <20081222214010.GA18389@elvis.mu.org> <20081223151942.GP18389@elvis.mu.org> <86y6y6ubxc.fsf@ds4.des.no> <200812231736.29198.hselasky@c2i.net> <20081223190808.GC1176@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081223190808.GC1176@hoeg.nl> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Dag-Erling Sm?rgrav , FreeBSD Current , current@freebsd.org, Alfred Perlstein , Hans Petter Selasky Subject: Re: HEADSUP usb2 (usb4bsd) to become default in 2 weeks. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2008 19:30:33 -0000 On Tue, Dec 23, 2008 at 08:08:08PM +0100, Ed Schouten wrote: > * Hans Petter Selasky wrote: > > On Tuesday 23 December 2008, Dag-Erling Sm?rgrav wrote: > > > There are serious issues with the permissions model, which were raised > > > in Strasbourg and AFAIK never addressed. > > > > This is more complicated than you think. If you require a change in this area > > than please point me to an existing example implementing something similar. I > > know about the "kern_priv()" function, but there are no specific groups for > > USB, which needs to be discussed. The current implementation is good enough > > for most use cases in my opinion. > > Just create device nodes in devfs. Let devfs handle the permissions. If > they are insufficient, then we should add ACL support to devfs. Due to the design of USB2, this isn't quite as obvious as it may seem; for example, an USB device has multiple endpoints, and if some process opens endpoint 1 and 3, you don't want to block another process from opening endpoint 2, for example. There are a lot of interesting combinations possible, and this is only the tip of the iceberg :-) Regards, -- Rink P.W. Springer - http://rink.nu "Chance favours the prepared mind" - Penn