Bug 2172264
| Summary: | tftp error when you add the "Network Servers" Software Group and select any CIS Security Profiles | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | ckrell |
| Component: | oscap-anaconda-addon | Assignee: | Matěj Týč <matyc> |
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> |
| Severity: | high | Docs Contact: | Jan Fiala <jafiala> |
| Priority: | high | ||
| Version: | 9.1 | CC: | gfialova, jafiala, jcastran, jcerny, jstodola, matyc, mhaicman, wsato |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | oscap-anaconda-addon-2.0.0-17.el9 | Doc Type: | Bug Fix |
| Doc Text: |
.`oscap-anaconda-addon` can now harden Network Servers for CIS
Previously, installing RHEL Network Servers with a CIS security profile (`cis`, `cis_server_l1`, `cis_workstation_l1`, or `cis_workstation_l2`) was not possible with the Network Servers package group selected. This problem is fixed by excluding the `tftp` package in `oscap-anaconda-addon-2.0.0-17.el9` provided with RHEL 9.3. As a consequence, you can install CIS-hardened RHEL Network Servers with the Network Servers package group.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-11-07 08:36:28 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: | |||
|
Description
ckrell
2023-02-21 19:05:55 UTC
This looks like a possible oscap-anaconda-addon issue, reassigning the bug. This is a manifestation of a conflict between the software selection and a hardening profile, and the addon handles this one gracefully - it informs the user before the installation starts, so they can react to this situation before the installation is started. I can imagine an even more graceful handling of the situation by e.g. filtering the list of software selections if the hardening profile is known, or by offering to proceed with the installation while prioritizing the hardening requirements, or something like that. However, I would see such requirements as RFEs - I think that the current behavior is not a result of a bug or defect that can be fixed in a straightforward way. There is something of a problem though. tftp is not part of the group and is not installed when you install the Network Server group. In fact nothing is installed, since all the packages are optional. > This shows no group name, thus not a group member [root@r9 ~]# repoquery --groupmember tftp tftp-5.2-35.el9.x86_64 tftp-5.2-37.el9.x86_64 > All packages are optional and thus nothing is actually installed unless a specific option is used. Even with that option used tftp is not pulled in. [root@r9 ~]# yum groupinfo "Network Servers" Updating Subscription Management repositories. Last metadata expiration check: 0:00:54 ago on Mon 27 Feb 2023 09:39:52 AM EST. Group: Network Servers Description: These packages include network-based servers such as DHCP, Kerberos and NIS. Optional Packages: dhcp-server dnsmasq freeradius frr idn2 krb5-server libreswan radvd rsyslog-gnutls rsyslog-gssapi rsyslog-mysql rsyslog-pgsql rsyslog-relp syslinux tang So the security profile excludes tftp, which is not about to be installed and is not a group member of anything selected. I agree, the listing is not correct - the package is an optional part of the group on the latest RHEL8, and it is completely unrelated on RHEL9. The installer therefore causes this false positive, that prevents users from installing the system in a straightforward way. A fix has been merged upstream by https://github.com/OpenSCAP/oscap-anaconda-addon/pull/248 The issue is fixed in oscap-anaconda-addon-2.0.0-17.el9. The installer reports that "package 'tftp' has been added to the list of excluded packages" and it's possible to finish the installation. The tftp package doesn't get installed. Marking as Verified:Tested Jan Fiala, the doc text for this bug applies for RHEL-9.2 as a known issue, but since this will be fixed in RHEL-9.3, the doc text needs to be updated. Can you please take care of it? Checked that oscap-anaconda-addon-2.0.0-17.el9 is in nightly compose RHEL-9.3.0-20230803.31 Automated tests completed without any regression. Moving to VERIFIED 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 (oscap-anaconda-addon bug fix and enhancement update), 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-2023:6531 |