RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2048455 - `rpmdbCookie()` API function does not work in FIPS mode
Summary: `rpmdbCookie()` API function does not work in FIPS mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: rpm
Version: 9.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Michal Domonkos
QA Contact: swm-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-31 09:52 UTC by Jaroslav Rohel
Modified: 2022-05-17 16:35 UTC (History)
3 users (show)

Fixed In Version: rpm-4.16.1.3-10.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 16:01:24 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rpm-software-management rpm pull 1906 0 None Merged Bump hash for rpmdb cookie to SHA256 to appease FIPS 2022-01-31 10:00:47 UTC
Red Hat Issue Tracker RHELPLAN-110368 0 None None None 2022-01-31 09:55:26 UTC
Red Hat Product Errata RHBA-2022:4021 0 None None None 2022-05-17 16:01:27 UTC

Description Jaroslav Rohel 2022-01-31 09:52:23 UTC
Description of problem:
`rpmdbCookie()` API function does not work in FIPS mode. The implementation of the function uses SHA1, which is not available in FIPS mode. 

How reproducible:
Call the `rpmdbCookie()` function in FIPS mode and check its result. Returns empty.

Actual results:
Empty return value.

Expected results:
cookie of the rpm database.

Additional info:
I found the problem during solving https://bugzilla.redhat.com/show_bug.cgi?id=2043476

AC:
* rpmdbCookie() (ts.dbCookie() in Python) returns a SHA256 hash now.
We don't need a specific Beaker test for RPM here; the function itself is covered by our upstream suite (which is also run in Beaker) so that should suffice for regression testing purposes, and for the SHA256 part, the test for DNF Bug 2043476 will be used.

Comment 8 errata-xmlrpc 2022-05-17 16:01:24 UTC
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 (new packages: rpm), 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-2022:4021


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