Summary: | systemd-cryptsetup does not allow a hash type of "plain" | ||
---|---|---|---|
Product: | systemd | Reporter: | Will <a08198uym0921c0981> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Will
2012-10-31 00:59:46 UTC
This bug is loosely related to this one: https://bugs.freedesktop.org/show_bug.cgi?id=52630 ...but mine points out the lack of actual expected functionality. Works for me: # dd if=/dev/urandom of=/mykey bs=256 count=1 # cryptsetup create --key-file=/mykey -s 256 --cipher=aes-cbc-essiv:sha256 --hash=plain home /dev/vdd # echo 'home /dev/vdd /mykey hash=plain,cipher=aes-cbc-essiv:sha256,size=256' >>/etc/crypttab # systemctl daemon-reload # systemctl start systemd-cryptsetup@home.service # systemctl status systemd-cryptsetup@home.service systemd-cryptsetup@home.service - Cryptography Setup for home Loaded: loaded (/etc/crypttab) Active: active (exited) since Tue, 2012-11-06 00:22:35 EST; 3s ago Docs: man:systemd-cryptsetup@.service(8) man:crypttab(5) Process: 938 ExecStart=/usr/lib/systemd/systemd-cryptsetup attach home /dev/vdd /mykey hash=plain,cipher=aes-cbc-essiv:sha256,size=256 (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/systemd-cryptsetup@.service/home Nov 06 00:22:35 beatbox systemd[1]: Starting Cryptography Setup for home... Nov 06 00:22:35 beatbox systemd[1]: Started Cryptography Setup for home. Hmm... does not work for me after a reboot unless I invoke cryptsetup again to create another volume. Will need to look into this more later... Fixed in git. The problem is that cryptsetup, on the front end, converts hashtype "plain" to a NULL params.hash argument in passing to crypt_format. systemd-cryptsetup didn't do this, so it tried to pass an invalid hash to the libcryptsetup backend. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.