EAC Linux v2 says custom Secure Boot keys should go in the firmware signature database instead of being enrolled as MOKs when using shim. Does that distinction hold on distributions that trust firmware keys for kernel module verification?
Does EAC Linux v2's Secure Boot key advice work on Fedora and Debian?
Answers
That distinction may not solve the module trust problem on those kernels. Fedora and Debian carry a patch that makes the platform keyring available for module signature verification. That keyring includes certificates from the Secure Boot signature database, commonly called db.
So moving a custom signing certificate from MOK to db does not necessarily stop it from being trusted for modules. A module signed by that key may still be accepted, depending on the kernel's configuration and verification path.
Reply to this answer
The FAQ is addressing a real concern about MOKs. They can be trusted for module signatures even when they weren't used in the boot chain. But that doesn't establish that a custom db key is harmless on every supported distribution.
It would be useful to get clarification from Epic on whether EAC checks db keys too, or whether its guidance assumes a kernel that doesn't use them for module verification.
Reply to this answer
I wouldn't jump straight to saying every installation is broken. The patch raises a compatibility question, but the available details don't show exactly what EAC checks or how it handles each kernel configuration.
If the requirement really is that arbitrary owner keys cannot authorize modules, distributions might need to change that trust path or make it optional. Whether Epic and the distributions would actually do that is a separate question.
Reply to this answer
Add your answer
Answers are reviewed before publication.
kartGearboxGlimmer:
So the issue is where the kernel accepts the key, not just whether shim uses it during boot?
mechLegDay+Seltzer:
Right. Boot verification and module verification are related, but the kernel's trusted keyrings determine what can be accepted for modules.