Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oPPE8-0002xB-2A for mharc-grub-devel@gnu.org; Sat, 20 Aug 2022 10:13:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPPE4-0002wt-Tv for grub-devel@gnu.org; Sat, 20 Aug 2022 10:13:25 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:35802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPPE3-00031U-0w for grub-devel@gnu.org; Sat, 20 Aug 2022 10:13:24 -0400 Received: by mail-pl1-x635.google.com with SMTP id y4so6342444plb.2 for ; Sat, 20 Aug 2022 07:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :from:to:cc; bh=To64Gf1NrGCDQaCuKeGk7kaSaUXJC1hB7keoXFtTKhM=; b=p6P0OZdVEgwHbnwOeHaUxeGQoXjEoAmQW72QWzoW6TxLOZ2akDVOYjzFpHCc3xqPjT uvfa9XET6luHpN1dQazyneeAM7XPQ/TNAeZGPFHEDZhmEjZzPQ0eRr0VU3sm1s55S9ra JHZL6boFrPWQAOShdA0hXhaL6PthvpswTPLD8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc; bh=To64Gf1NrGCDQaCuKeGk7kaSaUXJC1hB7keoXFtTKhM=; b=HYAtKR5qRfrAdeAaCM7l6XabV1kKdBSoXha3GchLtvJvZGQOVwSL88CW1vSqIKmZBM p04V/bV3zULvnsArc5XuXjxxn3yYjsNN3/cCEGBCJS38DHLjqMMB9pCiVlfK64ipsPv1 kfhDmOIlHuXfQ6vIvEzRmJHkDXwc9UIM04Zkgd7cxqazci+Ylri0Z7X9WPB3yrwQWyZY QYwa+frvZqGi295zRUJMS1Y/2Ck7n3o/r08oxLbu3rxM6GQpoqV3/VxJXtAj4TKtIy5b IJYL+2Gm6yDYfuIifoXKrMDSoFSqpV2FO/YlAP9pWdJOUt0PhmNK6+ZQCM9RXsMErSax rXIA== X-Gm-Message-State: ACgBeo2bC5/3fKlFxW6PWm1XQWWdQ3EkSgt9q0kUENfBDO+Ht+ET5H3l hwZsah6ECT9zgHn9+o9S7nrDFq6gXY3hTA== X-Google-Smtp-Source: AA6agR7Z8GPK8N4U99Flx5hkFvxD3lBbzGs/3kZwGnoOmBfREeqZC0+p1EFBV+TFOiMdGEwNyyg/Cg== X-Received: by 2002:a17:90a:55:b0:1f7:4513:8cac with SMTP id 21-20020a17090a005500b001f745138cacmr13539850pjb.93.1661004801287; Sat, 20 Aug 2022 07:13:21 -0700 (PDT) Received: from localhost ([2001:4479:e300:5b00:c85d:e7b9:8f13:8764]) by smtp.gmail.com with ESMTPSA id e25-20020aa79819000000b0052895642037sm5295551pfl.139.2022.08.20.07.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Aug 2022 07:13:20 -0700 (PDT) From: Daniel Axtens To: John Paul Adrian Glaubitz , The development of GNU GRUB , Steve McIntyre Subject: Re: [PATCH] Remove HFS support In-Reply-To: References: <20220819135755.vpfkmfyvysmdbzov@tomti.i.net-space.pl> <0F68F479-0EC8-4BF8-B21D-81B5FC725226@physik.fu-berlin.de> <20220819180916.GG2668594@tack.einval.com> Date: Sun, 21 Aug 2022 00:13:18 +1000 Message-ID: <87v8qnngu9.fsf@dja-thinkpad.axtens.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=dja@axtens.net; helo=mail-pl1-x635.google.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: Sat, 20 Aug 2022 14:13:25 -0000 >> As Daniel Axtens has been finding out, the HFS code is terrible in >> terms of security. If you still need it for old/semi-dead machines, >> maybe you should fork an older grub release and stay with that? > > I don't know what should be the deal with the security of a boot loader > to be honest. If someone has access to your hardware so they can control > your bootloader, you have much worse problems anyway. > > Forking is also a terrible idea as every forked package means having to > track it manually. Not to engage in the Debian specific parts of this, but fwiw the threat model isn't hardware access. Firmware-enforced secure boot (e.g. UEFI, AIX and Linux on PowerVM, whatever modern macs do) basically goes: - assume an attacker gets root on a running system - prevent the attacker from compromising the kernel On Linux this takes 2 parts: some form of signing grub that gets validated by firmware, and lockdown mode once Linux is booted. Now I haven't really used a PowerMac since I was a kid, but if memory serves, they had no concept of this. If you got access to Mac OS (or if you got root on linux), there is no way to protect the kernel. There is, in effect, no security boundary between root and the kernel. Kind regards, Daniel > > Adrian > > -- > .''`. John Paul Adrian Glaubitz > : :' : Debian Developer > `. `' Physicist > `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913