PGP signature patches
David Howells
maintainerHi 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
Jarkko Sakkinen
maintainerQuoted 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
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
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
David Howells
maintainerI've pulled your patches up to v6.11-rc3:
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=pgplib
David
Quoted 3 lines · David Howells
I've pulled your patches up to v6.11-rc3:
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=pgplib
Thanks. I also found some bug fixes from openEuler 22.03 LTS (the PGP patch set was already merged there).
Will send a new version of the patch set shortly.
Roberto