Re: [PATCH] usb: setup authorized_default using usb_bus_notify

2019-08-07 Thread Thiébaud Weksteen
Yes, it does. Thanks Thiebaud On Tue, Aug 6, 2019 at 1:37 PM Greg Kroah-Hartman wrote: > > On Tue, Aug 06, 2019 at 01:00:50PM +0200, Thiébaud Weksteen wrote: > > Currently, the authorized_default and interface_authorized_default > > attributes for HCD are set up after the uevent has been sent to

Re: [PATCH] usb: setup authorized_default using usb_bus_notify

2019-08-06 Thread Greg Kroah-Hartman
On Tue, Aug 06, 2019 at 01:00:50PM +0200, Thiébaud Weksteen wrote: > Currently, the authorized_default and interface_authorized_default > attributes for HCD are set up after the uevent has been sent to userland. > This creates a race condition where userland may fail to access this > file when proc

[PATCH] usb: setup authorized_default using usb_bus_notify

2019-08-06 Thread Thiébaud Weksteen
Currently, the authorized_default and interface_authorized_default attributes for HCD are set up after the uevent has been sent to userland. This creates a race condition where userland may fail to access this file when processing the event. Move the appending of these attributes earlier relying on