From owner-freebsd-usb@freebsd.org Fri Aug 19 11:09:39 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 1691ABBF581 for ; Fri, 19 Aug 2016 11:09:39 +0000 (UTC) (envelope-from dnk.usbdev@gmail.com) Received: from mail-oi0-x241.google.com (mail-oi0-x241.google.com [IPv6:2607:f8b0:4003:c06::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D3CDC1BC8 for ; Fri, 19 Aug 2016 11:09:38 +0000 (UTC) (envelope-from dnk.usbdev@gmail.com) Received: by mail-oi0-x241.google.com with SMTP id e80so5860176oig.2 for ; Fri, 19 Aug 2016 04:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=GFdrjCGCRvTU/M/vV0Dl8KPt3CxFXEmq0P87z3y/d4A=; b=l0fTE2EEBkrTsECUrMGGyRDVcd5kIJOHXovqjvWEAaoGKC5rv+KGhFGXURbefffEJt I0WwuCHerP+I/DkP1CzuN8Qv00G3SKVvhqy8OkbKTcL7f2pX8qX3KakoBkOepwA0OcX2 shXVECvzVjIFFPCaYIx3p2rRUK1LybaxHtn1SGAUkQIXPXITaIFHpfLy/5IXWwC+EGHN E4nPh/HRDWUAMrwp3G4VIFObuw8UgEM2PS4DDq3doqUTuqtg2xcbdcy7ZVHY5r+Y5nUE aQKtdJLjRiYH1LXo5jyTvE4Sv2kqwaq42Vqe+ohT/aVkf3FzSk/kHp+wlJKct0kz2Qw7 XRGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GFdrjCGCRvTU/M/vV0Dl8KPt3CxFXEmq0P87z3y/d4A=; b=ksXF+ipmmF7fUslrgby9esVgdCkfrGpToTQc4JzCpRa7bLOsS8qAiThEo028O9vLEc quV8+lt12MMgNfv0Dyodp14DBBdC/yBiMjbx0gmJjFu9UP6ExhDlbNaK3UUQ9GhzhlMW TnEYXQgaXPQFqLJTwbici3Tc9JYOINWACpsewr/7MH2nmFJORzSzuA54TKndzvDD5QGa E+moUUtMA2Qr3VGIJxhV48Ztz8FQ37Y3f2aQXPTiUUvWdSfxqRl3DTE3l0WOLkdORIs9 uXryMtFoFe7lQuOEUI152h2HAUP0NirQ/kgblBH/bHYalprkTg+0nPOquLOfezNXsO27 nv1Q== X-Gm-Message-State: AEkoouu5ILUGa1ZknW6vr5M8QY1SWu43xERzr6qe9Wt2x/E3mg1z2LgwxdpNFWnKAkSG8Xdp8ltv9eZQPhpTWA== X-Received: by 10.157.43.233 with SMTP id u96mr4550654ota.9.1471604978058; Fri, 19 Aug 2016 04:09:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.108.149 with HTTP; Fri, 19 Aug 2016 04:09:37 -0700 (PDT) From: =?UTF-8?Q?Daniel_Kope=C4=8Dek?= Date: Fri, 19 Aug 2016 13:09:37 +0200 Message-ID: Subject: USB authorization To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 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:09:39 -0000 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