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 39471C433F5 for ; Thu, 28 Apr 2022 11:22:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232908AbiD1LZY convert rfc822-to-8bit (ORCPT ); Thu, 28 Apr 2022 07:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245064AbiD1LZU (ORCPT ); Thu, 28 Apr 2022 07:25:20 -0400 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEB435EDE1 for ; Thu, 28 Apr 2022 04:22:05 -0700 (PDT) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id CF5CE24000E; Thu, 28 Apr 2022 11:22:00 +0000 (UTC) Message-ID: Subject: Re: [RFC v1] USB: core: add USBDEVFS_REVOKE ioctl From: Bastien Nocera To: Oliver Neukum , Greg Kroah-Hartman Cc: Peter Hutterer , linux-usb@vger.kernel.org, Alan Stern , Benjamin Tissoires Date: Thu, 28 Apr 2022 13:21:54 +0200 In-Reply-To: References: <1d82343a5987a308ac9bd3f6fd481bc12a608a24.camel@hadess.net> <7def25c7-0870-accc-c689-4d8eef1b7acf@suse.com> 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 Thu, 2022-04-28 at 12:28 +0200, Oliver Neukum wrote: > > > On 26.04.22 12:37, Bastien Nocera wrote: > > > > I don't think anyone wants to implement path based syscalls, > > andĀ again, > > it's equivalent to remote closing the fd, not to disabling the > > access > > to the device: > > "If the file is a special file for a device which is open, the > > device > > close function is called as if all open references to the file had > > been > > closed." > OK, so do we still have a need to discuss this specifically to usbfs? > I suppose if you put this into VFS, you will need a hook to map the > syscall to drivers that need to handling ioctl() having effects > beyond > their syscall abstractly speaking. I'm afraid that I don't have any intentions on working on this feature at the vfs level. As I already mentioned, I think that the semantics are too different to make sense at that level. I'm instead investigating having an ioctl-less BPF interface, with the help of Benjamin and Peter.