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

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