Re: pyserial.tools.list_port improvement for FreeBSD

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Tue, 22 Oct 2024 18:47:32 UTC
--------
Tomek CEDRO writes:

> On the "desc:" in place of ugen I would put "Silicon Labs CP2102N USB
> to UART Bridge Controller" as the ugen is in the HWID/LOCATION or
> there is a reason to put ugen there? :-)

The strings from the USB descriptors are unfortunately not available
from devinfo(8) and usbconfig(8) needs root-privs to reveal them.

I vaguely recall that the strings are not in devinfo (aka: "newbus")
due to valid security concerns about unsafe "strings" like these,
but I cannot find any evidence of/from that ancient discussion just
now.

I do find it inconsistent, that usbconfig(8) cannot function in
read-only mode for plain users, given that the information it would
reveal is already available for all from dmesg, but this might not
be policy but merely an sideeffect of the implementation.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.