Skip to contentSkip to conversation

PGP signature patches

DISCUSSION David Howells 3 participants 6 messages Aug 15, 2024 – Aug 18, 2024 Keys/keyrings

lore
Share & tools
lore

David Howells

author maintainer
#0 lore raw

Hi Roberto,

I've found another use for the PGP patches: modern Lenovo laptops have an EFI variable containing a list of allowed keys - but they're in PGP form, not X.509. So we're going to need a PGP parser to cope with that.

I would like to look at getting the patches into linux-next at least, aiming at the next merge window. Do you still have a reasonably up-to-dateish branch with them on?

David

maintainer
#1 lore raw
Quoted 9 lines · David Howells

Hi Roberto,

I've found another use for the PGP patches: modern Lenovo laptops have an EFI variable containing a list of allowed keys - but they're in PGP form, not X.509. So we're going to need a PGP parser to cope with that.

I would like to look at getting the patches into linux-next at least, aiming at the next merge window. Do you still have a reasonably up-to-dateish branch with them on?

Is this possible to emulate with QEMU?

Quoted 2 lines

David

BR, Jarkko

#3 lore raw
In reply to David Howells
Quoted 9 lines · David Howells

Hi Roberto,

I've found another use for the PGP patches: modern Lenovo laptops have an EFI variable containing a list of allowed keys - but they're in PGP form, not X.509. So we're going to need a PGP parser to cope with that.

I would like to look at getting the patches into linux-next at least, aiming at the next merge window. Do you still have a reasonably up-to-dateish branch with them on?

Hi David

that is a great news!

The kernel patch set is still the one I sent some time ago:

https://lore.kernel.org/linux-integrity/[email protected]/

At the end of the cover letter, there is also a link with the diff from the version you wrote.

Compared to your patches, I also added support for keyring restriction by signature (patch 10). For that, I also need to search a key with a partial ID (patch 9). These two patches can be dropped for now, if you want.

Thanks

Roberto

#2 lore raw
In reply to Jarkko Sakkinen
Quoted 7 lines · Jarkko Sakkinen
Quoted 6 lines · David Howells

Hi Roberto,

I've found another use for the PGP patches: modern Lenovo laptops have an EFI variable containing a list of allowed keys - but they're in PGP form, not X.509. So we're going to need a PGP parser to cope with that.

Quoted 5 lines
Quoted 3 lines

I would like to look at getting the patches into linux-next at least, aiming at the next merge window. Do you still have a reasonably up-to-dateish branch with them on?

Is this possible to emulate with QEMU?

Unfortunately not, it is a trust anchor in the kernel. QEMU would need to be added to the TCB, and made tamperproof against other user space processes. Also, the PGP verification will be done from the very beginning of the boot phase.

Thanks

Roberto