diff options
author | Milan Broz <mbroz@redhat.com> | 2011-04-26 00:15:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-04-26 21:50:15 +0200 |
commit | 2d745456b2852d102e6f27f685c97118f2190669 (patch) | |
tree | bed2ca2f4fbd833c2b008f449589ba30ba149a6e /m4 | |
parent | 641e01dcdcc810026ee4156d1694d97e10a1ba07 (diff) |
cryptsetup: fix keyfile size option processing
/etc/crypttab uses "size" argument only for plain crypt mapping
(and input is limited to volume key size)
For LUKS it always read whole keyfile (no arguments except "luks"
should be in crypttab).
Because of bug in cryptsetup 1.2.0 (fixed in 1.3.0) library
did not enforced keyfile size argument, so this bug was
hidden for some time.
Patch also converts size in bits to bytes like excepted
by libcryptsetup api.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=36264
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions