diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-05-10 11:47:57 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-05-11 13:12:08 +0100 |
commit | b0582f6b635011506fdf68d0afdc128ab10f6c6a (patch) | |
tree | 31888c6e476c270c992bbc543c126ef2e9dc099f /test | |
parent | 885b5cabe29d98ba7406d03aa5b4a2560c892504 (diff) | |
download | systemd-b0582f6b635011506fdf68d0afdc128ab10f6c6a.tar.gz |
cryptenroll: actually allow using multiple "special" strings when wiping
The systemd-cryptenroll man page states:
Takes a comma separated list of numeric slot indexes, or the special
strings ..., or any combination of these strings or numeric
indexes, in which case all slots matching either are wiped.
but we'd allow only one special string at any given time as the value
was not ORed when assigning. So, for example, --wipe=recovery,password
would actually become --wipe=password, etc.
Diffstat (limited to 'test')
-rwxr-xr-x | test/units/testsuite-70.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/units/testsuite-70.sh b/test/units/testsuite-70.sh index c86a9ab2db..571a93faa0 100755 --- a/test/units/testsuite-70.sh +++ b/test/units/testsuite-70.sh @@ -258,7 +258,7 @@ systemd-cryptenroll "$img" | grep recovery cryptenroll_wipe_and_check "$img" --wipe=empty (! cryptenroll_wipe_and_check "$img" --wipe=empty) cryptenroll_wipe_and_check "$img" --wipe=empty,0 -cryptenroll_wipe_and_check "$img" --wipe=0,0,empty,0,pkcs11,fido2,000,recovery +PASSWORD=foo NEWPASSWORD=foo cryptenroll_wipe_and_check "$img" --wipe=0,0,empty,0,pkcs11,fido2,000,recovery,password --password systemd-cryptenroll "$img" | grep password (! systemd-cryptenroll "$img" | grep recovery) # We shouldn't be able to wipe all keyslots without enrolling a new key first |