summaryrefslogtreecommitdiffstats
path: root/modules.d/01fips/fips.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/01fips/fips.sh')
-rwxr-xr-xmodules.d/01fips/fips.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules.d/01fips/fips.sh b/modules.d/01fips/fips.sh
index 2e7b7cb..c81c2a6 100755
--- a/modules.d/01fips/fips.sh
+++ b/modules.d/01fips/fips.sh
@@ -97,7 +97,6 @@ fips_load_crypto() {
read -d '' -r FIPSMODULES < /etc/fipsmodules
fips_info "Loading and integrity checking all crypto modules"
- mv /etc/modprobe.d/fips.conf /etc/modprobe.d/fips.conf.bak
for _module in $FIPSMODULES; do
if [ "$_module" != "tcrypt" ]; then
if ! nonfatal_modprobe "${_module}" 2> /tmp/fips.modprobe_err; then
@@ -113,7 +112,10 @@ fips_load_crypto() {
fi
fi
done
- mv /etc/modprobe.d/fips.conf.bak /etc/modprobe.d/fips.conf
+ if [ -f /etc/fips.conf ]; then
+ mkdir -p /run/modprobe.d
+ cp /etc/fips.conf /run/modprobe.d/fips.conf
+ fi
fips_info "Self testing crypto algorithms"
modprobe tcrypt || return 1