All of lore.kernel.org
 help / color / mirror / Atom feed
From: sudhakar <sudhakar@linux.ibm.com>
To: Daniel Kiper <dkiper@net-space.pl>
Cc: grub-devel@gnu.org, dja@axtens.net, jan.setjeeilers@oracle.com,
	julian.klode@canonical.com, mate.kukri@canonical.com,
	pjones@redhat.com, msuchanek@suse.com, mlewando@redhat.com,
	stefanb@linux.ibm.com, "Alastair D'Silva" <alastair@d-silva.org>
Subject: Re: [PATCH v2 07/21] grub-install: support embedding x509 certificates
Date: Tue, 10 Jun 2025 21:52:07 +0530	[thread overview]
Message-ID: <d9b6d4e2e2cc206d92fc8d6a72ff1a58@linux.ibm.com> (raw)
In-Reply-To: <20250528154755.kmxicsjhw3vlqrlq@tomti.i.net-space.pl>

Hi Daniel,

Thank you for your valuable review. splited this patch into two in v3.

Thanks,
Sudhakar Kuppusmay

On 2025-05-28 21:17, Daniel Kiper wrote:
> On Thu, Mar 27, 2025 at 01:02:28AM +0530, Sudhakar Kuppusamy wrote:
>> From: Alastair D'Silva <alastair@d-silva.org>
>> 
>> To support verification of appended signatures, we need a way to
>> embed the necessary public keys. Existing appended signature schemes
>> in the Linux kernel use X.509 certificates, so allow certificates to
>> be embedded in the grub core image in the same way as PGP keys.
> 
> s/grub/GRUB/
> 
>> Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
>> Signed-off-by: Daniel Axtens <dja@axtens.net>
>> Signed-off-by: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
>> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
>> Reviewed-by: Avnish Chouhan <avnish@linux.ibm.com>
>> ---
>>  grub-core/commands/pgp.c    |  2 +-
>>  include/grub/kernel.h       |  2 ++
>>  include/grub/util/install.h |  3 +++
>>  util/grub-install-common.c  | 19 ++++++++++++++++++-
>>  util/grub-mkimage.c         | 14 ++++++++++++--
>>  util/mkimage.c              | 33 +++++++++++++++++++++++++++++++--
>>  6 files changed, 67 insertions(+), 6 deletions(-)
>> 
>> diff --git a/grub-core/commands/pgp.c b/grub-core/commands/pgp.c
>> index 961abf775..fa3ef5c75 100644
>> --- a/grub-core/commands/pgp.c
>> +++ b/grub-core/commands/pgp.c
>> @@ -944,7 +944,7 @@ GRUB_MOD_INIT(pgp)
>>      grub_memset (&pseudo_file, 0, sizeof (pseudo_file));
>> 
>>      /* Not an ELF module, skip.  */
>> -    if (header->type != OBJ_TYPE_PUBKEY)
>> +    if (header->type != OBJ_TYPE_GPG_PUBKEY)
> 
> This patch should be split into two. One should do required renames in
> existing code and another one should add X.509 code.
> 
> Daniel

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

  reply	other threads:[~2025-06-10 16:29 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-26 19:32 [PATCH v2 00/21] Appended Signature Secure Boot Support for PowerPC Sudhakar Kuppusamy
2025-03-26 19:32 ` [PATCH v2 01/21] powerpc-ieee1275: Add support for signing grub with an appended signature Sudhakar Kuppusamy
2025-05-22 17:49   ` Daniel Kiper
2025-06-10 16:27     ` sudhakar
2025-03-26 19:32 ` [PATCH v2 02/21] docs/grub: Document signing grub under UEFI Sudhakar Kuppusamy
2025-05-22 17:53   ` Daniel Kiper
2025-03-26 19:32 ` [PATCH v2 03/21] docs/grub: Document signing grub with an appended signature Sudhakar Kuppusamy
2025-05-22 18:19   ` Daniel Kiper
2025-06-10 16:33     ` sudhakar
2025-03-26 19:32 ` [PATCH v2 04/21] dl: provide a fake grub_dl_set_persistent for the emu target Sudhakar Kuppusamy
2025-05-22 18:23   ` Daniel Kiper
2025-03-26 19:32 ` [PATCH v2 05/21] pgp: factor out rsa_pad Sudhakar Kuppusamy
2025-05-22 18:31   ` Daniel Kiper
2025-03-26 19:32 ` [PATCH v2 06/21] crypto: move storage for grub_crypto_pk_* to crypto.c Sudhakar Kuppusamy
2025-05-22 18:34   ` Daniel Kiper
2025-03-26 19:32 ` [PATCH v2 07/21] grub-install: support embedding x509 certificates Sudhakar Kuppusamy
2025-05-28 15:47   ` Daniel Kiper
2025-06-10 16:22     ` sudhakar [this message]
2025-03-26 19:32 ` [PATCH v2 08/21] appended signatures: import GNUTLS's ASN.1 description files Sudhakar Kuppusamy
2025-05-28 15:55   ` Daniel Kiper
2025-06-10 16:20     ` sudhakar
2025-03-26 19:32 ` [PATCH v2 09/21] appended signatures: parse PKCS#7 signedData and X.509 certificates Sudhakar Kuppusamy
2025-05-28 16:44   ` Daniel Kiper
2025-06-10 16:19     ` sudhakar
2025-03-26 19:32 ` [PATCH v2 10/21] appended signatures: support verifying appended signatures Sudhakar Kuppusamy
2025-04-15  3:46   ` Gary Lin via Grub-devel
2025-05-21 12:49     ` sudhakar
2025-05-28 17:20   ` Daniel Kiper
2025-06-10 16:18     ` sudhakar
2025-03-26 19:32 ` [PATCH v2 11/21] appended signatures: verification tests Sudhakar Kuppusamy
2025-05-28 17:29   ` Daniel Kiper
2025-06-10 16:16     ` sudhakar
2025-03-26 19:32 ` [PATCH v2 12/21] appended signatures: documentation Sudhakar Kuppusamy
2025-03-26 19:32 ` [PATCH v2 13/21] ieee1275: enter lockdown based on /ibm,secure-boot Sudhakar Kuppusamy
2025-03-26 19:32 ` [PATCH v2 14/21] ieee1275: Platform Keystore (PKS) Support Sudhakar Kuppusamy
2025-03-26 19:32 ` [PATCH v2 15/21] ieee1275: Read the DB and DBX secure boot variables Sudhakar Kuppusamy
2025-03-26 19:32 ` [PATCH v2 16/21] appendedsig: The creation of trusted and distrusted lists Sudhakar Kuppusamy
2025-03-26 19:32 ` [PATCH v2 17/21] appendedsig: While verifying the kernel, use " Sudhakar Kuppusamy
2025-03-26 19:32 ` [PATCH v2 18/21] powerpc_ieee1275: set use_static_keys flag Sudhakar Kuppusamy
2025-03-26 19:32 ` [PATCH v2 19/21] appendedsig: Reads the default DB keys from ELF Note Sudhakar Kuppusamy
2025-03-26 19:32 ` [PATCH v2 20/21] appendedsig: The grub command's trusted and distrusted support Sudhakar Kuppusamy
2025-04-15  8:24   ` Gary Lin via Grub-devel
2025-05-21 12:49     ` sudhakar
2025-04-17  7:43   ` Gary Lin via Grub-devel
2025-05-21 12:46     ` sudhakar
2025-03-26 19:32 ` [PATCH v2 21/21] appendedsig: documentation Sudhakar Kuppusamy
2025-05-13 14:16 ` [PATCH v2 00/21] Appended Signature Secure Boot Support for PowerPC Marta Lewandowska via Grub-devel
2025-05-20 13:50   ` sudhakar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d9b6d4e2e2cc206d92fc8d6a72ff1a58@linux.ibm.com \
    --to=sudhakar@linux.ibm.com \
    --cc=alastair@d-silva.org \
    --cc=dja@axtens.net \
    --cc=dkiper@net-space.pl \
    --cc=grub-devel@gnu.org \
    --cc=jan.setjeeilers@oracle.com \
    --cc=julian.klode@canonical.com \
    --cc=mate.kukri@canonical.com \
    --cc=mlewando@redhat.com \
    --cc=msuchanek@suse.com \
    --cc=pjones@redhat.com \
    --cc=stefanb@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.