Bug 24278 - rpm --addsign causes rpmReadSignature failure
Summary: rpm --addsign causes rpmReadSignature failure
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm   
(Show other bugs)
Version: 7.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
Whiteboard: Florence Beta-3
Depends On:
TreeView+ depends on / blocked
Reported: 2001-01-18 07:42 UTC by Jeremy Katz
Modified: 2007-04-18 16:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-04-03 12:09:51 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Jeremy Katz 2001-01-18 07:42:40 UTC
adding additional signatures seems to be broken with rpm 4.0.2.

1012 katzj@rivendell:~> rpm -Kv xinetd-
MD5 sum OK: c8ec559183ae44966e21c8820aacaa6a
gpg: Warning: using insecure memory!
gpg: Signature made Thu 19 Oct 2000 02:30:07 PM EDT using DSA key ID DB42A60E
gpg: Good signature from "Red Hat, Inc <security@redhat.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
gpg: Fingerprint: CA20 8686 2BD6 9DFC 65F6  ECC4 2191 80CD DB42 A60E
1013 katzj@rivendell:~> rpm --addsign xinetd-
Enter pass phrase:
Pass phrase is good.
gpg: Warning: using insecure memory!
1014 katzj@rivendell:~> rpm -Kvv xinetd-
D: Expected size:       106724 = lead(96)+sigs(229)+pad(3)+data(106396)
D:   Actual size:       106756
error: xinetd- rpmReadSignature failed

Comment 1 Glen Foster 2001-01-18 21:26:43 UTC
This defect is considered MUST-FIX for Florence Beta-3

Comment 2 Jeremy Katz 2001-01-22 07:09:30 UTC
Note that this only happens when you have an RPM which was created and signed by
an older version of RPM that you then add a signature too.  In this case, the
HEADER_IMAGE tag exists, but we don't want to subtract the offset from the sigsize

Comment 3 Jeff Johnson 2001-01-22 15:13:03 UTC
This is a legacy issue with old packages, sign with rpm-4.0 or earlier as

Deferred until after 7.1.

Comment 4 Jeff Johnson 2001-04-03 12:10:12 UTC
This should be fixed in rpm-4.0.2 final.

Note You need to log in before you can comment on or make changes to this bug.