From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0393EC433FE for ; Tue, 26 Apr 2022 10:28:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348933AbiDZKbF convert rfc822-to-8bit (ORCPT ); Tue, 26 Apr 2022 06:31:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348807AbiDZKaf (ORCPT ); Tue, 26 Apr 2022 06:30:35 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 086E5EDB44 for ; Tue, 26 Apr 2022 03:07:31 -0700 (PDT) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id ADE4D24000D; Tue, 26 Apr 2022 10:07:28 +0000 (UTC) Message-ID: <65edbf6e81f0f1109fe2de01ca12cf14353d2307.camel@hadess.net> Subject: Re: [RFC v1] USB: core: add USBDEVFS_REVOKE ioctl From: Bastien Nocera To: Peter Hutterer , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, Alan Stern , Benjamin Tissoires Date: Tue, 26 Apr 2022 12:07:27 +0200 In-Reply-To: References: <20220425132315.924477-1-hadess@hadess.net> <1d82343a5987a308ac9bd3f6fd481bc12a608a24.camel@hadess.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.0 (3.44.0-1.fc36) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Tue, 2022-04-26 at 12:27 +1000, Peter Hutterer wrote: > The primary focus of all this are joystick devices (unless I missed > some other > grand plans Bastien had that I'm not aware of), that should put > things in > context a bit. It's for every USB device out there: https://github.com/flatpak/xdg-desktop-portal/issues/227 https://github.com/flatpak/xdg-desktop-portal/pull/559 including support for Chrome's WebUSB: https://wicg.github.io/webusb/ The end goal (with the portals and the revoke support) is sandboxed applications being able to enumerate USB devices, access them, and revoke access to them without full devices access, or overly broad user access. > I have a very simple hidraw tester here: > https://github.com/whot/hidiocrevoke-test/blob/master/revoke.c > Updating that to take usb devices can't be that hard :) It just requires me finding the right device to test with ;)