https://gitlab.com/cryptsetup/cryptsetup/-/commit/64fb1c1b2673e7f366b789943d1627c859a70b1f.patch https://gitlab.com/cryptsetup/cryptsetup/-/merge_requests/737 From 64fb1c1b2673e7f366b789943d1627c859a70b1f Mon Sep 17 00:00:00 2001 From: Gabi Falk Date: Sun, 22 Dec 2024 16:00:00 +0000 Subject: [PATCH] tests/compat-test: Adjust test for compatibility with passwdqc Unlike libpwquality, passwdqc does not consider 'compatkey' a strong password and rejects 512 character long passwords. Closes: https://gitlab.com/cryptsetup/cryptsetup/-/issues/928 Signed-off-by: Gabi Falk --- tests/compat-test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/compat-test b/tests/compat-test index 0b2463dd..f01f3032 100755 --- a/tests/compat-test +++ b/tests/compat-test @@ -250,7 +250,7 @@ echo $PWD1 | $CRYPTSETUP luksAddKey $IMG $FAST_PBKDF_OPT 2>/dev/null && fail echo -e "$PWD1\n$PWD2" | $CRYPTSETUP luksAddKey $IMG $FAST_PBKDF_OPT || fail echo -e "$PWD0\n$PWD1" | $CRYPTSETUP luksAddKey $IMG $FAST_PBKDF_OPT 2>/dev/null && fail echo "[4] change key" -echo -e "$PWD1\n$PWD0\n" | $CRYPTSETUP luksChangeKey $FAST_PBKDF_OPT $IMG || fail +echo -e "$PWD1\n$PWD0\n" | $CRYPTSETUP luksChangeKey --force-password $FAST_PBKDF_OPT $IMG || fail echo -e "$PWD1\n$PWD2\n" | $CRYPTSETUP luksChangeKey $FAST_PBKDF_OPT $IMG 2>/dev/null && fail [ $? -ne 2 ] && fail "luksChangeKey should return EPERM exit code" echo "[5] remove key" @@ -941,7 +941,7 @@ prepare "[35] Interactive format of device." wipe expect_run - >/dev/null <$KEYE expect_run - >/dev/null <