lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.1906110950130.1535-100000@iolanthe.rowland.org>
Date:   Tue, 11 Jun 2019 09:50:40 -0400 (EDT)
From:   Alan Stern <stern@...land.harvard.edu>
To:     Dmitry Torokhov <dmitry.torokhov@...il.com>
cc:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        <bleung@...omium.org>, <linux-usb@...r.kernel.org>,
        <linux-kernel@...r.kernel.org>,
        <libusb-devel@...ts.sourceforge.net>
Subject: Re: [PATCH] USB: add usbfs ioctl to retrieve the connection parameters

On Mon, 10 Jun 2019, Dmitry Torokhov wrote:

> Recently usfbs gained availability to retrieve device speed, but there
> is sill no way to determine the bus number or list of ports the device
> is connected to when using usbfs. While this information can be obtained
> from sysfs, not all environments allow sysfs access. In a jailed
> environment a program might be simply given an opened file descriptor to
> usbfs device, and it is really important that all data can be gathered
> from said file descriptor.
> 
> This patch introduces a new ioctl, USBDEVFS_CONNINFO_EX, which return
> extended connection information for the device, including the bus
> number, address, port list and speed. The API allows kernel to extend
> amount of data returned by the ioctl and userspace has an option of
> adjusting the amount of data it is willing to consume. A new capability,
> USBDEVFS_CAP_CONNINFO_EX, is introduced to help userspace in determining
> whether the kernel supports this new ioctl.
> 
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@...il.com>

Acked-by: Alan Stern <stern@...land.harvard.edu>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ