From nobody Tue Oct 22 18:47:32 2024 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XY1Q123n7z5VjlP for ; Tue, 22 Oct 2024 18:47:37 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4XY1Q01nxMz4lpr for ; Tue, 22 Oct 2024 18:47:36 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; none Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id 3DCB08928B; Tue, 22 Oct 2024 18:47:34 +0000 (UTC) Received: (from phk@localhost) by critter.freebsd.dk (8.18.1/8.16.1/Submit) id 49MIlXEs014246; Tue, 22 Oct 2024 18:47:33 GMT (envelope-from phk) Message-Id: <202410221847.49MIlXEs014246@critter.freebsd.dk> To: Tomek CEDRO cc: hackers@freebsd.org Subject: Re: pyserial.tools.list_port improvement for FreeBSD In-reply-to: From: "Poul-Henning Kamp" References: <202410210954.49L9s9sD076618@critter.freebsd.dk> <203ADA8C-A4ED-4849-B89D-6D18664D67D0@webweaving.org> <202410221118.49MBIRSj009090@critter.freebsd.dk> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14244.1729622852.1@critter.freebsd.dk> Date: Tue, 22 Oct 2024 18:47:32 +0000 X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU] X-Rspamd-Queue-Id: 4XY1Q01nxMz4lpr X-Spamd-Bar: ---- -------- 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.