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

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