Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1p2afC-0004JQ-Pn for mharc-grub-devel@gnu.org; Tue, 06 Dec 2022 11:19:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2af8-0004JB-Rd for grub-devel@gnu.org; Tue, 06 Dec 2022 11:19:20 -0500 Received: from cheddar.halon.org.uk ([93.93.131.118]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2af6-0003op-Km for grub-devel@gnu.org; Tue, 06 Dec 2022 11:19:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=einval.com; s=default; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:From:Reply-To:Subject:Content-Transfer-Encoding: Content-ID:Content-Description:X-Debbugs-Cc; bh=Xo8qrp96cJ8kBo745auomf9JqZCjvyYb3V0if7k+gqU=; b=bQQmwlAln2T5ZeBnPgnG0Bb8T2 E0MMXkmyR/3QjP4PkW1JX1fDOO1yaeehScylgFuGnHDCCA2VxNwkYgebLf6X0L76FEwa482WKfu6w ws0XvXDhvEwsRJ275xIl38joQno4utC5UW7Czhp1+UzGrQIuxu5Ysm0OeKYAKdeCk3iUTAbaN8Q23 BzbHrZ4nIie7jScU88FwNuGi18yUyif32VDwyPBhbg5GEp5oiKD6qoshz09DYgARhIHZhtQZRJuDt mnXOIaKowgV7GXMLg1yFEJLF+K8Nc/lfPHsrvIYC2hb3BSAi190utgF1zyqKxLJfiDGTmmVrKiZsr S4ZZENuQ==; Received: from bsmtp by cheddar.halon.org.uk with local-bsmtp (Exim 4.92) (envelope-from ) id 1p2af0-0004t5-Hh; Tue, 06 Dec 2022 16:19:10 +0000 Received: from steve by tack.einval.org with local (Exim 4.94.2) (envelope-from ) id 1p2aej-00HTxe-3f; Tue, 06 Dec 2022 16:18:53 +0000 Date: Tue, 6 Dec 2022 16:18:52 +0000 From: Steve McIntyre To: Robbie Harwood Cc: Zhang Boyang , grub-devel@gnu.org, mchang@suse.com Subject: Re: [RFC PATCH 4/4] kern/efi/sb: Use shim to verify font files Message-ID: <20221206161834.GM3245702@tack.einval.com> References: <20221205130605.250715-1-zhangboyang.id@gmail.com> <20221205130605.250715-5-zhangboyang.id@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-attached: none User-Agent: Mutt/1.10.1 (2018-07-13) Received-SPF: pass client-ip=93.93.131.118; envelope-from=steve@einval.com; helo=cheddar.halon.org.uk X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=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.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2022 16:19:20 -0000 On Tue, Dec 06, 2022 at 11:09:57AM -0500, Robbie Harwood wrote: >Zhang Boyang writes: > >> Since font files can be wrapped as PE images by grub-wrap, use shim to >> verify font files if Secure Boot is enabled. To prevent other PE files >> (e.g. kernel images) used as wrappers, it only allows files marked as >> Windows GUI used as wrappers. > >Thanks for writing this; it's helpful to have something concrete to look >at. Definitely! >This approach is very font-focused, and while I understand that given >the discussion, I do still wonder if it wouldn't be better to make fonts >an instance of modules. If fonts become instances of modules, and >modules are wrapped into PE files, that not only seems cleaner but also >gives us signed module support without baking those into the image. > >What do you think? Nod, that probably makes more sense if we want to go this way. I'm not sure we do personally, but... -- Steve McIntyre, Cambridge, UK. steve@einval.com Dance like no one's watching. Encrypt like everyone is. - @torproject