[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160204034643.GA17786@kroah.com>
Date: Wed, 3 Feb 2016 19:46:43 -0800
From: Greg KH <gregkh@...uxfoundation.org>
To: Emilio López <emilio.lopez@...labora.co.uk>
Cc: stern@...land.harvard.edu, kborer@...il.com, bjorn@...k.no,
reillyg@...omium.org, keescook@...omium.org,
linux-api@...r.kernel.org, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org, jorgelo@...omium.org,
dan.carpenter@...cle.com
Subject: Re: [PATCH v3] usb: devio: Add ioctl to disallow detaching kernel
USB drivers.
On Thu, Feb 04, 2016 at 12:20:57AM -0300, Emilio López wrote:
> From: Reilly Grant <reillyg@...omium.org>
>
> The new USBDEVFS_DROP_PRIVILEGES ioctl allows a process to voluntarily
> relinquish the ability to issue other ioctls that may interfere with
> other processes and drivers that have claimed an interface on the
> device.
>
> Signed-off-by: Reilly Grant <reillyg@...omium.org>
> Signed-off-by: Emilio López <emilio.lopez@...labora.co.uk>
>
> ---
>
> Changes in v3:
> - Switch ioctl to use a __u32 given the iface qty is capped at 32
> - Reword comments as requested by Alan
> - Allow callers to shrink the allowed interfaces mask
No documentation? Proof it works? Test scripts?
This isn't a trivial feature to add, how do we know it is correct?
thanks,
greg k-h
Powered by blists - more mailing lists