-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround package_nfs-utils_removed issue on bootable containers
The rule is affected by https://issues.redhat.com/browse/RHEL-74244 which causes that RHEL 10 bootable container hardened with STIG profile fails to build. Therefore, until this issue is resolved, we will have a special RHEL 10 only remediation which workarounds the problem on bootable containers. Moreover, the `nfs-utils` package is removed as a dependency of `gssproxy` package so the same workaround is also needed for the rule `package_gssproxy_removed`.
- Loading branch information
1 parent
2edb023
commit b67b0e1
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
linux_os/guide/services/nfs_and_rpc/package_nfs-utils_removed/bash/rhel10.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# platform = Red Hat Enterprise Linux 10 | ||
# reboot = false | ||
# strategy = disable | ||
# complexity = low | ||
# disruption = low | ||
|
||
# This RHEL 10 special remediation is a workaround for | ||
# https://issues.redhat.com/browse/RHEL-74244 | ||
# and once the issue is resolved we will remove it. | ||
if {{{ bash_bootc_build() }}}; then | ||
mkdir -p /var/lib/rpm-state | ||
fi | ||
|
||
dnf -y remove nfs-utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,5 @@ template: | |
name: package_removed | ||
vars: | ||
pkgname: nfs-utils | ||
backends: | ||
bootc: "off" |
14 changes: 14 additions & 0 deletions
14
linux_os/guide/system/software/system-tools/package_gssproxy_removed/bash/rhel10.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# platform = Red Hat Enterprise Linux 10 | ||
# reboot = false | ||
# strategy = disable | ||
# complexity = low | ||
# disruption = low | ||
|
||
# This RHEL 10 special remediation is a workaround for | ||
# https://issues.redhat.com/browse/RHEL-74244 | ||
# and once the issue is resolved we will remove it. | ||
if {{{ bash_bootc_build() }}}; then | ||
mkdir -p /var/lib/rpm-state | ||
fi | ||
|
||
dnf -y remove gssproxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,4 @@ template: | |
pkgname: gssproxy | ||
backends: | ||
anaconda: "off" | ||
bootc: "off" |