]> git.itanic.dy.fi Git - linux-stable/commit
selftests: net: fcnal-test: check if FIPS mode is enabled
authorMagali Lemes <magali.lemes@canonical.com>
Tue, 13 Jun 2023 12:32:22 +0000 (09:32 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jun 2023 08:29:46 +0000 (10:29 +0200)
commitd967bd7ea6cc249063e7be2cac6d9107bee51e3d
tree056172fb6fca443311869ec479f71fee936d6919
parent964cfdfd4b4f438c289c1f40481524d46e5a3f85
selftests: net: fcnal-test: check if FIPS mode is enabled

[ Upstream commit d7a2fc1437f71cb058c7b11bc33dfc19e4bf277a ]

There are some MD5 tests which fail when the kernel is in FIPS mode,
since MD5 is not FIPS compliant. Add a check and only run those tests
if FIPS mode is not enabled.

Fixes: f0bee1ebb5594 ("fcnal-test: Add TCP MD5 tests")
Fixes: 5cad8bce26e01 ("fcnal-test: Add TCP MD5 tests for VRF")
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Magali Lemes <magali.lemes@canonical.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/fcnal-test.sh