From nobody Wed Sep 6 12:03:57 2023 X-Original-To: usb@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 4RggyQ0f1kz4sg0V for ; Wed, 6 Sep 2023 12:03:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RggyP4p9Kz3C0S for ; Wed, 6 Sep 2023 12:03:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694001837; a=rsa-sha256; cv=none; b=nSHrXWmdrQ3pzK4wLZmkajkM6kY8qWBwZeEFlkZEpXhcDe7CGwcphEqdxhR+oUzXpvLzZg gblpxdwDD2wfLS8qKSrFfbcOfL6N5N9C3l83B/fygNYszvxMMKxisthzprLiFKlxIMUJjp ygn4kkOUuDalNfsNiRArakapXHrmFEDmZfq/t+Grj2Orv3qhdtH2UCFgmqhF+RvR/uHhx3 1D1D3DTzvOnZ+AvuRMRktoFZKelX3ZTOyoHE61h/9lcBf3TZDNxPCQi02xePcqNUA/nRGK vvbdu8vcP5ly6JesJmRK+puC60gkRYjJlzsD4MNGFOfOkZgRL6RXXunYx6bq/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694001837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VX8MLXkKxjzBn2jJFno0V96egY2OQA5ybFZS1g8h6EA=; b=fg5T86T6sQxkTppvCeVRapwgDSlNROEigDboC1Gs8TSaEDxQk4fPqhBdS8z2OnCS9f6gz7 woIJsFugjSBsYU2gPRvu2Q4W1FHj6ktyhXJxkswJbrVx3Rp9AhBuXy/BNjfuRIe1vYBRGH ZsUnqWM2y3b7EF5gxia3F1MsP1Fo2q6jSIAgESDKQ1FOUsZW957gQIUFnE3i+B0AgYHPw1 1W1Ar85qDN6pmHEaaVKH3gW5kgzTuz5wXL4wA7KFMJLuiH2PA0UdHqwZF+5r8o3v/lMcXi I2na50yNY2z9Mo3whm6RMMVS/vsHiTIg1aSI+3zInxycqMYyj4hCOCuKAsm44g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RggyP3vPqz1K5 for ; Wed, 6 Sep 2023 12:03:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 386C3vsB067255 for ; Wed, 6 Sep 2023 12:03:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 386C3veK067253 for usb@FreeBSD.org; Wed, 6 Sep 2023 12:03:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 273596] Teach contrib/libfido2 to talk to hidraw(4) devices Date: Wed, 06 Sep 2023 12:03:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dhorn2000@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273596 Bug ID: 273596 Summary: Teach contrib/libfido2 to talk to hidraw(4) devices Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: dhorn2000@gmail.com CC: emaste@freebsd.org Flags: mfc-stable12? Created attachment 244678 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D244678&action= =3Dedit Patch to stable/14 for teaching libfido2 to enumeration hidraw(4) dev nodes contrib/libfido2 in base (impacts -CURRENT + stable/14) is currently 1.10 a= nd does not support the hidraw(4) device enumeration properly, just the legacy uhid(4) in the current tree. Request update to latest libfido2 release (as of writing seems to be 1.13),= and eventual MFC to stable/14 at least. My failcase is enabling hidraw devices via /boot/loader.conf, then attempti= ng to use base OpenSSH with the built-in SK provider to talk to a FIDO key (e.= g. Yubikey). This will fail by default as this version of libfido2 does not k= now to look for the /dev/hidrawXX entries, just /dev/uhidYY device nodes. Cherry picking just hid_freebsd.c with required changes from upstream will = also fix the issue, but probably best to get the full release. https://raw.githubusercontent.com/Yubico/libfido2/f1a74c8f2792e269a0c47f156= e13e6ddb457b1d3/src/hid_freebsd.c >From what I can tell, the contrib/libfido2 module installs as libprivatefido2.a/libprivatefido2.so which means that users are unable to workaround this limitation by just installing libfido2 from ports.=20 I'm glad to assist in testing this as either a patch, or in -CURRENT/stable tree. --=20 You are receiving this mail because: You are the assignee for the bug.=