Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lHe5j-0003DO-VF for mharc-grub-devel@gnu.org; Wed, 03 Mar 2021 21:51:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHe5i-0003DE-75 for grub-devel@gnu.org; Wed, 03 Mar 2021 21:51:54 -0500 Received: from bedivere.hansenpartnership.com ([2607:fcd0:100:8a00::2]:32996) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHe5d-0008RO-L3 for grub-devel@gnu.org; Wed, 03 Mar 2021 21:51:53 -0500 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 6D1DA1280562 for ; Wed, 3 Mar 2021 18:51:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1614826306; bh=Q9NbU7YzLwGxd6+NNb6Sxx0NmvQKmWIi+QdCH98hUNk=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=YmrHlezOSrYQfi8QhABBRQN3wuLsXHJyF7LUlmqXgpiWMRuRRlB2tGVp+c1/isHl4 TO7EEh8c8qW4c1caQwDVO4VyRC+/RrCNBZ+ISKafgG3z3qA4+S6AeSDNmefl13NBG3 7CUoh34tAgoLtXZrucqBUejgAhZ92UzGSQYIqL/4= Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QpzbVjuPg0PC for ; Wed, 3 Mar 2021 18:51:46 -0800 (PST) Received: from jarvis.int.hansenpartnership.com (unknown [IPv6:2601:600:8280:66d1::527]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 28195128055D for ; Wed, 3 Mar 2021 18:51:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1614826306; bh=Q9NbU7YzLwGxd6+NNb6Sxx0NmvQKmWIi+QdCH98hUNk=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=YmrHlezOSrYQfi8QhABBRQN3wuLsXHJyF7LUlmqXgpiWMRuRRlB2tGVp+c1/isHl4 TO7EEh8c8qW4c1caQwDVO4VyRC+/RrCNBZ+ISKafgG3z3qA4+S6AeSDNmefl13NBG3 7CUoh34tAgoLtXZrucqBUejgAhZ92UzGSQYIqL/4= Message-ID: <136f4bc4435930c0f4e1d6ba7b50fc8654f950c2.camel@HansenPartnership.com> Subject: Re: [PATCH] tpm: Don't propagate measurement failures to the verifiers layer From: James Bottomley To: The development of GNU GRUB Date: Wed, 03 Mar 2021 18:51:45 -0800 In-Reply-To: <20210303172814.2vt2rdg6tnwdivhz@tomti.i.net-space.pl> References: <20210227230505.2024714-1-javierm@redhat.com> <93969746-c4e2-15a0-775e-7221043f2c7f@redhat.com> <7e7ff4df4f7829787387e18d33b13e0f990eed0f.camel@HansenPartnership.com> <83a5b3c5230f5bfce88ee89a3f37bd7d06de3a03.camel@HansenPartnership.com> <20210303172814.2vt2rdg6tnwdivhz@tomti.i.net-space.pl> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:fcd0:100:8a00::2; envelope-from=James.Bottomley@HansenPartnership.com; helo=bedivere.hansenpartnership.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2021 02:51:54 -0000 On Wed, 2021-03-03 at 18:28 +0100, Daniel Kiper wrote: > On Sun, Feb 28, 2021 at 03:25:04PM -0800, James Bottomley wrote: > > [...] > > > How about a more simple solution: you sign two grub unitary EFI > > binaries, one of which does measured boot and one of which doesn't. > > Your installer is already config file driven, so by default it > > would install the measured boot one, but if there's a failure you > > can tell the user to add the config option to install the > > unmeasured boot one ... this could also be useful for various other > > situations where you want secure but not measured boot? I'm fairly > > certain you could design a distro installer test for the problem > > and thus always install a working system. There's no security > > issue because anyone who does attested measured boot will instantly > > detect someone booting via the signed unmeasured boot grub. > > > > Note: I'm certainly not presenting this as the optimal solution, > > merely the least effort solution that looks like it will work with > > the current grub upstream. > > I think we can do this in much simpler way. Let's use one GRUB Secure > Boot signed image which contains the tpm module embedded. By default > the tpm verifier will ignore UEFI errors and always return > GRUB_ERR_NONE. However, if somebody cares about these errors they can > set, e.g., tpm_err_ignore environment variable in grub.cfg to false. > Then if the TPM UEFI calls fail for any reason machine boot fails. > Does it work for you guys? It's certainly an acceptable solution. However, I'd prefer the flag be inverted so the boot will fail if the logging does because it means the UEFI firmware in the system has a very unexpected failure that needs reporting. Then any possessor of a failing system can set a flag to allow boot to proceed. James