From owner-freebsd-usb@freebsd.org Fri Aug 19 11:31:53 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61F60BBFDA0 for ; Fri, 19 Aug 2016 11:31:53 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2B5FC1B46 for ; Fri, 19 Aug 2016 11:31:52 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 490531FE023; Fri, 19 Aug 2016 13:31:50 +0200 (CEST) Subject: Re: USB authorization To: =?UTF-8?Q?Daniel_Kope=c4=8dek?= , freebsd-usb@freebsd.org References: From: Hans Petter Selasky Message-ID: Date: Fri, 19 Aug 2016 13:36:19 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 11:31:53 -0000 On 08/19/16 13:09, Daniel Kopeček wrote: > Hello, > I'm trying to find out whether FreeBSD has an equivalent to the USB > (de)authorization interface that is implemented the Linux kernel [1], > i.e. if there's a flag for each USB device and interface that controls > whether that particular device/interface is allowed to communicate > with the system. > > So far I haven't found anything promising so I guess there's no such > interface. If that's true, do you think it would hard be to implement? > Would it require refactoring of the USB subsystem or just a few lines > at the right places and something to export this interface to the user > space? > > Thanks! > > [1] https://www.kernel.org/doc/Documentation/usb/authorization.txt Hi, We have some sysctls you can set which allow or disallow USB enumeration: hw.usb.disable_enumeration: 0 dev.uhub.0.disable_enumeration: 0 We don't support wireless USB. --HPS