mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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")
(cherry picked from commit c4b927c341e23eea17f75d139aafcf58545c5b0e)
This commit is contained in:
parent
a50d5a7c1f
commit
d1b263065a
1 changed files with 3 additions and 3 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue