Blame SOURCES/0477-fips-fips.sh-also-check-for-crypto-mod-in-proc-crypt.patch

712866
From 455f87f41f808e97c243585691e615bc1a487013 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Wed, 30 Nov 2016 13:54:49 +0100
712866
Subject: [PATCH] fips/fips.sh: also check for crypto-$mod in /proc/crypto
712866
712866
if the module name is the alias crypto-<algo>, check if <algo> is in
712866
/proc/crypto as "name : <algo>" or "driver: <algo>"
712866
---
712866
 modules.d/01fips/fips.sh | 2 +-
712866
 1 file changed, 1 insertion(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/01fips/fips.sh b/modules.d/01fips/fips.sh
5c6c2a
index 7fa48f13..0b69a823 100755
712866
--- a/modules.d/01fips/fips.sh
712866
+++ b/modules.d/01fips/fips.sh
712866
@@ -96,7 +96,7 @@ do_fips()
712866
                 _found=0
712866
                 while read _k _s _v; do
712866
                     [ "$_k" != "name" -a "$_k" != "driver" ] && continue
712866
-                    [ "$_v" != "$_module" ] && continue
712866
+                    [ "$_v" != "$_module" ] && [ "crypto-$_v" != "$_module" ] && continue
712866
                     _found=1
712866
                     break
712866
                 done