Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1k8wvx-00067u-UW for mharc-grub-devel@gnu.org; Thu, 20 Aug 2020 22:37:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8wvv-000678-TG for grub-devel@gnu.org; Thu, 20 Aug 2020 22:37:35 -0400 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]:35012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k8wvu-0004DK-78 for grub-devel@gnu.org; Thu, 20 Aug 2020 22:37:35 -0400 Received: by mail-pj1-x1044.google.com with SMTP id t6so183896pjr.0 for ; Thu, 20 Aug 2020 19:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9hUQr5GPwRTcU5muEvxrmgoy8KVlugfy/m1yUSCzAww=; b=o/+OU23annNn5X/q8xyuYeXSKOVVs5KTt6QcrenO4DK7afSSSxDXsndnaS+nl8UUva tdPrsNL8QozIJSijZSD03xgoDxIHG/iQwydsdlGilDvJTXMrJx6YkVNKbrRMTBv2hYpA QFChON9QE3nJErwR1DeOHbeje6UzxAu/RVtuI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9hUQr5GPwRTcU5muEvxrmgoy8KVlugfy/m1yUSCzAww=; b=HZ8jWZ/5rl5Mx0XXOh1vLc2vW/HhmN9KF4dpFi151s2Vj3k5L6WdRIQ73Hkt3TnZjk Tl4NKLvLweFMp5SBn3eCRwcz5FDtQw4RAvhFOEtATE1/h6lgSKIpLuJcgk32h7TJbb02 m4gvtBNnJBxVOiuQsa7nE/eIzHUlyTw84PW7Q+ZCMssEsWf5xFI8MhlRIQpNMnYkb6PO Ujli1dKe4fse0fvtr886NHC5fSCJq3jaZnip82PT0sKZR5Cnlt16+RtutSECfQ4WjV6B GWFGkGzlVjTxOwN2lQ6fcGuHkhnU+Cluzyj9tiwzq8wxOZ7WbZaHxLxvAQK1mpoStD4t UaRQ== X-Gm-Message-State: AOAM531x7vieuY/9mACuKIpzRzq2qtDW6czg5EGn78ltvYKIBf5dKbgy m7EK86d+0LrqCvx2oCxtZI/32X3YLV1QlA== X-Google-Smtp-Source: ABdhPJxx74Nj8sQ6UkosElLCIHFK2gXYwOpsgICC24bdx4oLKLTz/EOwUuqyx/fURcW4BEVw9rrtjw== X-Received: by 2002:a17:90a:fe91:: with SMTP id co17mr697858pjb.103.1597977451788; Thu, 20 Aug 2020 19:37:31 -0700 (PDT) Received: from localhost (2001-44b8-1113-6700-0951-8f5b-1590-b7af.static.ipv6.internode.on.net. [2001:44b8:1113:6700:951:8f5b:1590:b7af]) by smtp.gmail.com with ESMTPSA id 12sm459747pfn.173.2020.08.20.19.37.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2020 19:37:31 -0700 (PDT) From: Daniel Axtens To: grub-devel@gnu.org Cc: rashmica.g@gmail.com, alastair@d-silva.org, Daniel Axtens Subject: [PATCH 0/3] Add support for signing grub with an appended signature Date: Fri, 21 Aug 2020 12:37:17 +1000 Message-Id: <20200821023720.13747-1-dja@axtens.net> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1044; envelope-from=dja@axtens.net; helo=mail-pj1-x1044.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, URIBL_BLOCKED=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: Fri, 21 Aug 2020 02:37:36 -0000 Part of a secure boot chain is allowing boot firmware to verify the grub core.img. For UEFI platforms, this is done by signing the PE binary with a tool like pesign or sb-sign. However, for platforms that don't implement UEFI, an alternative scheme is required. These patches provide some infrastructure and documentation for signing grub's core.img with a Linux-kernel-module style appended signature. Because some platforms, such as powerpc-ieee1275, load grub from a raw disk partition rather than a filesystem, we extend grub-install to add an ELF note that allows us to specify the size and location of the signature. More details are in patch 1, including a link to an open-source firmware capable of verifying a grub image signed this way. Daniel Axtens (2): docs/grub: Document signing grub under UEFI docs/grub: Document signing grub with an appended signature Rashmica Gupta (1): Add suport for signing grub with an appended signature docs/grub.texi | 64 ++++++++++++++++++++++++++++++++++++- include/grub/util/install.h | 8 +++-- include/grub/util/mkimage.h | 4 +-- util/grub-install-common.c | 16 ++++++++-- util/grub-mkimage.c | 11 +++++++ util/grub-mkimagexx.c | 39 +++++++++++++++++++++- util/mkimage.c | 10 +++--- 7 files changed, 138 insertions(+), 14 deletions(-) -- 2.25.1