-
Notifications
You must be signed in to change notification settings - Fork 711
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12946 from Mab879/clean_up_fips
RHEL FIPS Clean Up
- Loading branch information
Showing
11 changed files
with
94 additions
and
78 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
linux_os/guide/system/software/integrity/fips/enable_dracut_fips_module/ansible/shared.yml
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
2 changes: 1 addition & 1 deletion
2
linux_os/guide/system/software/integrity/fips/enable_dracut_fips_module/bash/shared.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
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
27 changes: 0 additions & 27 deletions
27
linux_os/guide/system/software/integrity/fips/enable_fips_mode/ansible/shared.yml
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
linux_os/guide/system/software/integrity/fips/enable_fips_mode/bash/shared.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 |
---|---|---|
@@ -1,26 +1,7 @@ | ||
# platform = multi_platform_all | ||
{{{ bash_instantiate_variables("var_system_crypto_policy") }}} | ||
|
||
if {{{ bash_bootc_build() }}}; then | ||
crypto_policies_no_reload="--no-reload" | ||
cat > /usr/lib/bootc/kargs.d/01-fips.toml << EOF | ||
kargs = ["fips=1"] | ||
EOF | ||
else | ||
fips-mode-setup --enable | ||
fi | ||
|
||
stderr_of_call=$(update-crypto-policies $crypto_policies_no_reload --set ${var_system_crypto_policy} 2>&1 > /dev/null) | ||
rc=$? | ||
|
||
if test "$rc" = 127; then | ||
echo "$stderr_of_call" >&2 | ||
echo "Make sure that the script is installed on the remediated system." >&2 | ||
echo "See output of the 'dnf provides update-crypto-policies' command" >&2 | ||
echo "to see what package to (re)install" >&2 | ||
|
||
false # end with an error code | ||
elif test "$rc" != 0; then | ||
echo "Error invoking the update-crypto-policies script: $stderr_of_call" >&2 | ||
false # end with an error code | ||
fi |
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
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
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
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
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
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