Bug 2157836
Summary: | rpm-plugin-ima tried to add IMA signature to non-existing files | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Coiby <coxu> |
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED ERRATA | QA Contact: | Jan Blazek <jblazek> |
Severity: | low | Docs Contact: | Mariya Pershina <mpershin> |
Priority: | unspecified | ||
Version: | 9.2 | CC: | ffesti, mbanas, mpershin, mthacker |
Target Milestone: | rc | Keywords: | AutoVerified, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rpm-4.16.1.3-23.el9 | Doc Type: | Bug Fix |
Doc Text: |
.Installing packages with IMA signatures on file systems without extended file attributes no longer fails
Previously, RPM tried to apply IMA signatures to files even if they did not support these signatures. As a consequence, package installation failed. With this update, RPM skips applying IMA signatures. As a result, package installation no longer fails.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2023-11-07 08:52:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Deadline: | 2023-06-19 |
Description
Coiby
2023-01-03 07:31:42 UTC
This looks like a duplicate of or at least very similar to #2157835. https://github.com/rpm-software-management/rpm/commit/7db2efa95d859cebda2b095ffdffac42812bd6d9 should also fix this. (In reply to Florian Festi from comment #1) > This looks like a duplicate of or at least very similar to #2157835. > https://github.com/rpm-software-management/rpm/commit/ > 7db2efa95d859cebda2b095ffdffac42812bd6d9 should also fix this. The reasons I think this is a different bug are as follows, a) there are strange trailing characters ";63b3d90d" in the path e.g. "/boot/efi/EFI/BOOT/BOOTX64.EFI;63b3d90d" b) a different error "error: unpacking of archive failed on file /boot/efi/EFI/BOOT/BOOTX64.EFI;63b3d90d: cpio: (error 0x2)" is seen. These "trailing characters" is the temporary name the files gets while being un-packed. The file attributes are set there before the file is moved to it's actual position/name. It's the same issue happeningh at a slightly different place - leading to a slightly different error message. But the cause is the same: The efi file system doesn't support extended file attributes and the IMA plugin errors out because of that. We could probably even close this as an duplicate. Another question is whether these files/packages should have IMA signatures at all if the live in a place that doesn't support them. But I am not sure if the current IMA infrastructure supports omitting such signatures. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (rpm bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:6623 |