Bug 36057
Summary: | With rpm 4.0.2, only root can '--checksig' some RH errata rpms succesfully | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Petri Piira <petri.piira> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED WORKSFORME | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-04-16 15:48:31 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
Petri Piira
2001-04-16 15:22:20 UTC
This problem could be caused by the owner and group of the files inside the rpm (cpio) archive - I checked one of the 'good' packages, it had uid / gid 0, but one of the failing packages had a nonzero uid/gid for all files? This works for me: bash$ rpm --checksig --nogpg pine-4.33-6.6x.i386.rpm pine-4.33-6.6x.i386.rpm: md5 OK First the internal uid/gid is not the problem. Second, the md5sum checked by rpm is not at all the same as that generated by md5sum(1). The rpm md5sum applies to the header+payload, and the failure of the rpm md5sum indicates that the packages are corrupt. You can verify that the package(s) are corrupt independently of rpm by comparing the md5sum in the errata notice with the md5sum you are generating using md5sum(1). So, why the package is "not corrupt", when checked by root user, but the same physical file is "corrupt" when checked by an ordinary user? If the exact same file is reported to be corrupt and not corrupt by the same rpm application, I'd say there us a bug in rpm - the file either is corrupt, or is not, it can't oscillate between those states depending on who runs the rpm --checksig. |