Bug 2196876
| Summary: | OPENSSL_FORCE_FIPS_MODE=1 doesn't work on my Fedora 37. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jun Aruga <jaruga> |
| Component: | openssl | Assignee: | Dmitry Belyavskiy <dbelyavs> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 37 | CC: | cllang, crypto-team, dbelyavs, mspacek, mturk, sahana, tm |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-05-10 15:38:10 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
Jun Aruga
2023-05-10 15:22:35 UTC
The patch in question is 0009-Add-Kernel-FIPS-mode-flag-support.patch. At the moment, we do not have plans to backport the large number of FIPS patches to F37 due to the large number of them and the effect that would have on existing applications. > At the moment, we do not have plans to backport the large number of FIPS patches to F37 due to the large number of them and the effect that would have on existing applications. Sure. That's okay. > The patch in question is 0009-Add-Kernel-FIPS-mode-flag-support.patch. Below are the commits modifying the `0009-Add-Kernel-FIPS-mode-flag-support.patch` file on rawhide. The `0009-Add-Kernel-FIPS-mode-flag-support.patch` also exists in f37 branch too. Could you tell me which commit is the one to make the `OPENSSL_FORCE_FIPS_MODE=1` work in the 3 commits below? ``` $ git log --pretty=oneline 0009-Add-Kernel-FIPS-mode-flag-support.patch 194ef7464a4a825d24ffce8fb260dd79f95105d7 Rebase to upstream version 3.0.8 080143cbc1510f6f472685e88390b4509abb7365 Sync with RHEL - applying patches 347681c6b246d9b6a08c73bb40e5eefaf8596d71 Rebase to upstream version 3.0.0 ``` I want to know what versions of the openssl RPM packages the `OPENSSL_FORCE_FIPS_MODE=1` can work in on rawhide (f39) (and f38). * rawhide (f39): it works >= `openssl-X.Y.Z-R` * f38: it works >= `openssl-X.Y.Z-R` * f37: it doesn't work There is no difference of the `0009-Add-Kernel-FIPS-mode-flag-support.patch` between f38 and f39 branches. There is a big difference of the `0009-Add-Kernel-FIPS-mode-flag-support.patch` between f37 and f38 branches. It's probably 080143cbc1510f6f472685e88390b4509abb7365, where we applied most of the patches we had for FIPS compliance in RHEL at that time to Fedora. I'm not entirely sure why you're asking. F37 is not a good platform to test FIPS mode, since it will only have a partial implementation of the limitations now required by FIPS 140-3. If you want to test FIPS mode, use RHEL or Fedora rawhide (although RHEL is still ahead with a few more patches). Can you elaborate on what your use case is? > It's probably 080143cbc1510f6f472685e88390b4509abb7365, where we applied most of the patches we had for FIPS compliance in RHEL at that time to Fedora. Sure. Thank you for your input. > I'm not entirely sure why you're asking. F37 is not a good platform to test FIPS mode, since it will only have a partial implementation of the limitations now required by FIPS 140-3. If you want to test FIPS mode, use RHEL or Fedora rawhide (although RHEL is still ahead with a few more patches). > > Can you elaborate on what your use case is? My use case is that I want to test Ruby OpenSSL binding features in the Ruby RPM (rpms/ruby) with OpenSSL RPM enabling FIPS mode in the Fedora's mock environment, and also may test it in the ruby.spec file %check section. The `OPENSSL_FORCE_FIPS_MODE=1` is a great convenient feature to test with the OpenSSL FIPS mode in Fedora. That's why I needed to know the OpenSSL package versions supporting the `OPENSSL_FORCE_FIPS_MODE=1`. 4855397272f7585ea8fa9f9659a7d4e410bd7a65 is the first commit that would enable OPENSSL_FORCE_FIPS_MODE. The patch was present before that, but not enabled in openssl.spec. That would be openssl-3.0.5-3.fc38. I believe that was before F38 was branched, i.e. in rawhide, so any version of OpenSSL on F38 should support OPENSSL_FORCE_FIPS_MODE. Note that there are a few additional changes in RHEL's FIPS mode that we have not yet ported to Fedora, so be aware that what you're getting might not match what RHEL has. We'll probably fix this in the coming months. All right. Thank you for checking the info! It's very helpful!
> Note that there are a few additional changes in RHEL's FIPS mode that we have not yet ported to Fedora, so be aware that what you're getting might not match what RHEL has. We'll probably fix this in the coming months.
Sure. I will keep it in mind.
|