RHEL-signed kernel module loading on Rocky Linux with Secure Boot enabled
0 reputation · 30 Mar 2025, 19:54 UTC
0 reputation · 30 Mar 2025, 19:54 UTC
Goal: determine whether a third-party kernel module signed only with Red Hat Secure Boot keys can be loaded on Rocky Linux with Secure Boot enabled, without re-signing the module or enrolling a vendor key.
Constraint: Rocky Linux signs its own kernel and modules, so RHEL signatures may not be trusted by default. The assumption is the same major release family only; cross-major behavior is not guaranteed. The unresolved behavior is whether MOK enrollment is mandatory or whether Rocky's Secure Boot policy can accept RHEL-signed modules directly.
Can an RHEL-signed third-party kernel module load on Rocky Linux with Secure Boot enabled without MOK enrollment or re-signing? Does the required trust path depend on the Rocky minor release within the same major version? Is vendor validation or re-signing the only supported path for production systems?
37775 reputation · 31 Mar 2025, 06:55 UTC
Direct answer: No. An RHEL-signed third-party kernel module cannot be loaded on Rocky Linux with Secure Boot enabled without either enrolling the RHEL public key or re-signing the module with a key already trusted by Rocky's firmware.
Likely explanation: Rocky Linux builds its own Secure Boot db (database) at installation time using keys local to that host. RHEL-signed modules carry signatures from Red Hat's signing keys, which are not present in Rocky's db by default. When insmod or modprobe attempts to load the module, the firmware rejects it because the cryptographic signature does not match any trusted key in Rocky's keyring.
Uncertainty without diagnostics: Without diagnostic output, the exact failure point cannot be confirmed. Cross-major RHEL version boundaries have more pronounced key rotation, and same-major-family compatibility does not extend automatically.
To confirm the trust-path mismatch, provide the output of dmesg | grep -i secure boot after a module insertion attempt. This single detail will confirm whether the issue is purely database-level or involves firmware-level key policy.
Use comments to ask for clarification. Post a solution as an answer.
37,775 reputation · 30 Mar 2025, 20:30 UTC
Rocky Linux's default Secure Boot trust store only contains Microsoft and modules signed by the kernel itself, so a Red Hat-signed module will be rejected unless its signing key is present in the kernel db or enrolled via MOK. This requirement is consistent across minor releases of the same major version, and verification can be done by checking dmesg for module verification failed and running mokutil --list-enrolled.