git: c4b927c341e2 - main - geli tests: Use shorter passphrases in setkey_passphrase
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 Oct 2023 20:58:05 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=c4b927c341e23eea17f75d139aafcf58545c5b0e
commit c4b927c341e23eea17f75d139aafcf58545c5b0e
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-10-02 20:55:26 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-10-02 20:57:51 +0000
geli tests: Use shorter passphrases in setkey_passphrase
There is an undocumented limit on the length of a GELI passphrase, and
the test exceeded that. Most of the time it worked because a nul
terminator would appear early enough in the string.
Reported by: Jenkins
Fixes: 2b7b09ac9675 ("geli tests: Add a regression test for geli setkey -J")
---
tests/sys/geom/class/eli/setkey_test.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/sys/geom/class/eli/setkey_test.sh b/tests/sys/geom/class/eli/setkey_test.sh
index ce3833f5fe0c..34fb8221ab04 100644
--- a/tests/sys/geom/class/eli/setkey_test.sh
+++ b/tests/sys/geom/class/eli/setkey_test.sh
@@ -108,9 +108,9 @@ setkey_passphrase_body()
atf_check dd if=/dev/random of=rnd bs=512 count=${sectors} status=none
hash1=`dd if=rnd bs=512 count=${sectors} status=none | md5`
atf_check_equal 0 $?
- atf_check dd if=/dev/random of=pass1 bs=512 count=32 status=none
- atf_check dd if=/dev/random of=pass2 bs=512 count=32 status=none
- atf_check dd if=/dev/random of=pass3 bs=512 count=32 status=none
+ atf_check dd if=/dev/random of=pass1 bs=512 count=1 status=none
+ atf_check dd if=/dev/random of=pass2 bs=512 count=1 status=none
+ atf_check dd if=/dev/random of=pass3 bs=512 count=1 status=none
atf_check geli init -B none -J pass1 ${md}
atf_check geli attach -j pass1 ${md}