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 2154804 - RFE: Disable rngd as part of fips-mode-setup
Summary: RFE: Disable rngd as part of fips-mode-setup
Keywords:
Status: CLOSED DUPLICATE of bug 2156554
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: crypto-policies
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Alexander Sosedkin
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-19 10:16 UTC by Marko Myllynen
Modified: 2024-12-12 21:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-10 16:45:59 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-142875 0 None None None 2022-12-19 10:16:35 UTC

Description Marko Myllynen 2022-12-19 10:16:03 UTC
Description of problem:
Steve Grubb says:

If you are booting in FIPS mode on 8.4 or later, you get the jitterentropy source instead of the interrupt driven LRNG. Rngd cannot seed the jitterentropy source, so it is not needed.

So it would be appropriate to disable rngd as part of "fips-mode-setup --enable" in case it was enabled.

Version-Release number of selected component (if applicable):
crypto-policies-scripts-20220815-1.git0fbe86f.el9

Comment 3 Alexander Sosedkin 2022-12-19 10:31:47 UTC
Would it make more sense to instead disable it
with a `ConditionKernelCommandLine=!fips=1` in rngd unit file?

Comment 4 Marko Myllynen 2022-12-19 10:43:38 UTC
Thanks, that indeed might be a better approach than disabling the service once in a script.

Comment 5 Jan Pazdziora (Red Hat) 2022-12-28 19:33:32 UTC
Marko, would it make sense then to change the Component field of this bugzilla to rng-tools?

Comment 6 Vladis Dronov 2022-12-29 15:16:30 UTC
i will update rngd's unit file in the upcoming release (bz2141379 bz2156554), thank you for a research and a solution.

Comment 7 Vladis Dronov 2022-12-29 16:25:36 UTC
systemctl status reports in FIPS mode:

+ rngd.service - Hardware RNG Entropy Gatherer Daemon
  Condition: start condition failed at Thu 2022-12-29 11:17:43 EST; 2min 41s ago
             └─ ConditionKernelCommandLine=!fips=1 was not met
   Main PID: 180 (code=exited, status=0/SUCCESS)
Dec 29 11:17:43 s390x-kvm-023.lab.eng.rdu2.redhat.com systemd[1]: Hardware RNG Entropy Gatherer Daemon was skipped because of an unmet condition check (ConditionKernelCommandLine=!fips=1).

Comment 8 Vladis Dronov 2022-12-29 17:59:44 UTC
now dracut should do the same for initramfs service file:

# rpm -qf /usr/lib/dracut/modules.d/06rngd/rngd.service 
dracut-049-218.git20221019

Comment 9 Vladis Dronov 2023-01-06 15:02:44 UTC
(In reply to Vladis Dronov from comment #6)
> i will update rngd's unit file in the upcoming release (bz2141379 bz2156554), thank you for a research and a solution.

rng-tools were updated in: rng-tools-6.15-3.el8 rng-tools-6.15-3.el9


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