]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fips/fips.sh: also check for crypto-$mod in /proc/crypto
authorHarald Hoyer <harald@redhat.com>
Wed, 30 Nov 2016 12:54:49 +0000 (13:54 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 30 Nov 2016 12:56:23 +0000 (13:56 +0100)
if the module name is the alias crypto-<algo>, check if <algo> is in
/proc/crypto as "name : <algo>" or "driver: <algo>"

modules.d/01fips/fips.sh

index 7fa48f138aa298c756790cf48900a85776b56f88..0b69a823fb6cde6ecc4d209dce2980533ed9642b 100755 (executable)
@@ -96,7 +96,7 @@ do_fips()
                 _found=0
                 while read _k _s _v; do
                     [ "$_k" != "name" -a "$_k" != "driver" ] && continue
-                    [ "$_v" != "$_module" ] && continue
+                    [ "$_v" != "$_module" ] && [ "crypto-$_v" != "$_module" ] && continue
                     _found=1
                     break
                 done </proc/crypto