Bug 1084796
Summary: | upstream test fails in FIPS mode | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ondrej Moriš <omoris> | ||||||
Component: | perl | Assignee: | Petr Pisar <ppisar> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Martin Kyral <mkyral> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 7.0 | CC: | isenfeld, jplesnik, mkyral, ppisar | ||||||
Target Milestone: | rc | Keywords: | Patch | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
URL: | https://rt.perl.org/Ticket/Display.html?id=121591 | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | perl-5.16.3-285.el7 | Doc Type: | Bug Fix | ||||||
Doc Text: |
Cause:
Executing perl upstream tests while FIPS mode is enabled.
Consequence:
Some tests fail.
Fix:
t/op/crypt.t and t/op/taint.t tests have been modified
to use SHA-256 hash algorithm if default algorithm is
not available.
Result:
All perl upstream tests run in FIPS-enabled environment
pass.
|
Story Points: | --- | ||||||
Clone Of: | |||||||||
: | 1128032 (view as bug list) | Environment: | |||||||
Last Closed: | 2015-03-05 07:55:16 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: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 839624 | ||||||||
Attachments: |
|
Description
Ondrej Moriš
2014-04-06 17:17:00 UTC
That's because the DES algorithm which is a default one is disabled in FIPS mode. And the test: SKIP: { skip ("VOS crypt ignores salt.", 1) if ($^O eq 'vos'); ok(substr(crypt("ab", "cd"), 2) ne substr(crypt("ab", "ce"), 2), "salt makes a difference"); } Just calls for the default one---DES. Unfortunately, there is no standardized way of recognizing FIPS mode. We can add a quirk specific pro glibc on Linux (the proc file system) or just skip the test on undef return value or to change the salt values to something sensible for today's glibc. Created attachment 883569 [details]
Proposed fix for t/op/crypt.t
Submitted to upstream <https://rt.perl.org/Ticket/Display.html?id=121591> Created attachment 963321 [details] Proposed fix for t/op/taint.t Upstream tracker is <https://rt.perl.org/Public/Bug/Display.html?id=123338>. 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, 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://rhn.redhat.com/errata/RHBA-2015-0338.html |