Bug 2231404
| Summary: | The wrong IMA file signature verification key is on the .ima keyring | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Stefan Berger <stefanb> |
| Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 38 | CC: | acaringi, adscvr, airlied, alciregi, ansasaki, bskeggs, coxu, hdegoede, hpa, jarod, josef, kernel-maint, lgoncalv, linville, masami256, mchehab, ptalbert, ruyang, scorreia, steved |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-08-14 13:20:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Stefan Berger
2023-08-11 13:55:32 UTC
Hi Stefan,
I don't think this is a bug. This "Fedora kernel signing key: 76091380b4f96da2b73f660a58bb88e908ecd7ff" is use for verifying the kernel module signature by IMA. The module signing key gets automatically loaded into the .ima keyring as implemented by commit 6cbdfb3d91ba ("ima: enable loading of build time generated key on .ima keyring").
The key for signing package files hasn't bee be added to .ima keyring. I plan to build the IMA CA key into the .builtin_trusted_keys and let user space tools add the IMA code-signing key to the .ima keyring.
On F39 now. There's still this issue here that unfortunately none of the x509 certs can be loaded: [root@fedora ~]# keyctl padd asymmetric "" %keyring:.ima < /etc/keys/ima/fedora-39-ima.der add_key: Required key not available [root@fedora ~]# keyctl padd asymmetric "" %keyring:.ima < /etc/keys/ima/fedora-38-ima.der add_key: Required key not available |