From nobody Sat Oct 29 14:04:25 2022 X-Original-To: bugs@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 4N01PP5P4Dz4fvG5 for ; Sat, 29 Oct 2022 14:04:25 +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 4N01PP4MZzz3f41 for ; Sat, 29 Oct 2022 14:04:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4N01PP3LmqzKjk for ; Sat, 29 Oct 2022 14:04:25 +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 29TE4Px6053434 for ; Sat, 29 Oct 2022 14:04:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29TE4P4p053433 for bugs@FreeBSD.org; Sat, 29 Oct 2022 14:04:25 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: bugs@FreeBSD.org Subject: [Bug 260138] TPM2 Support in bootloader / kernel in order to retrieve GELI passphrase Date: Sat, 29 Oct 2022 14:04:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: feature, loader, patch-ready, security, uefi X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: s.adaszewski@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667052265; 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: in-reply-to:in-reply-to:references:references; bh=zJBg8FfuFoWkBGL0dzGMpnyHxHE/2WE9Fm+N3roZgFU=; b=D7wKxQUfY0G9HT+lRTy3xnalv9QDN6jK/X4+eo6AO9StPDUM2usXb0Df0mXVWnmR/Zjh95 oTqukJkxVPv7EX0150j9e+TmQTqpvh1n3QZgAiPSzDxDX+goDoyRdbKK4SFsQA0JHdShFb whCExMKaHE4fgxHktGRRLoAIwwUFurP5oinSkcFiIc+fKM3FGqd6lkmL4+4qVivS/NTTrx jaB4czD3xjf1DSvvWHec1io3qTVF2hYhHDf4wdw2N8De0/eFxlSkZAUSKOTT7jMnTLO892 duWP7XzUKgbnJMOQVStt4An1DFARU99yK6FhcWpwhTwiDzmVw9Bh6PpQopjWDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667052265; a=rsa-sha256; cv=none; b=nxA6GIp63N4Xpmd2HsmuZZ42GWJSLQ4vWiFzHVrrsMsP/sFi1DrXuimhQ0S254GIHwfYi4 XiPi6O8RekRd6KxjkeEPX4+lR223uo+qV6kzzYD3Nz/FW3scHawv1ollzqryyXLbi9dYxQ cdALt8Vmj0YJCj+LLDgY9UoNwDowHxJJtzTKSR+sN6/VPwHrXDis62EKBYhH/fPyijaBXv 2aMpa8enzbDEA9Ry1KUPUiiUE6Eajb5Ngj9a1FpJ/BKQIUM3H04W276p2XciFhVDULHZUW mpr6oJ9RreBk3OF2nBlI1A/T8FSWE8g0ioBcCu+lk6PPH3bw6oR+HqTv22VpEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260138 --- Comment #3 from s.adaszewski@gmail.com --- Since for the moment there does not seem to be that much traction for integrating it upstream, I have created a separate Git repository: https://github.com/sadaszewski/freebsd-patch-geli-password-from-tpm2 which can somewhat intelligently patch any FreeBSD source tree and allows to build the TPM2-passphrase-aware bootloader and kernel. I hope this will facilitate use by people who actually want/need it. I will also start putting some unit tests in there, in particular for the TPM code using swtpm + libtss2-tcti-swtpm - hopefully in the future all of it can be mostly test-covered. Soon, I will also throw in some scripts that automate the TPM2 setup. I also think about making a slight rewrite in a separate branch that would indeed use TPM2 encrypting facilities rather than NV store, as suggested in= the mailing list thread. I can now see how this would be a much better solution overall - with the config and encrypted passphrase that could reside simply= in a file on the EFI partition. --=20 You are receiving this mail because: You are the assignee for the bug.=