Milan Broz
2d745456b2
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
2011-04-26 21:50:15 +02:00
Lennart Poettering
1c1890bee6
Revert "cryptsetup: pass 0 as key size to crypt_activate_by_keyfile()"
...
This reverts commit 9402841ef1
.
This freezes boot-up when /dev/urandom is used as key source
2011-04-21 03:15:12 +02:00
Lennart Poettering
9402841ef1
cryptsetup: pass 0 as key size to crypt_activate_by_keyfile()
...
https://bugs.freedesktop.org/show_bug.cgi?id=36264
2011-04-20 19:22:45 +02:00
Lennart Poettering
9072492933
crypto: let the cryptsetup binary handles its own configurable timeouts
2011-04-16 02:03:34 +02:00
Lennart Poettering
7dcda352a6
ask-password: support passwords without timeouts
2011-04-13 21:42:46 +02:00
Lennart Poettering
f6a6225e41
def: centralize definition of default timeout in one place
2011-03-17 04:02:35 +01:00
Lennart Poettering
dd5e696d93
cryptsetup: add a terse help
2011-02-25 02:56:27 +01:00
Lennart Poettering
b61e476f51
cryptsetup: try to show the mount point for a crypto disk if we can
2011-02-23 18:46:27 +01:00
Lennart Poettering
21bc923aa3
ask-password: supported plymouth cached passwords
2011-02-23 01:12:07 +01:00
Lennart Poettering
bd40a2d830
clang: fix some issues found with clang-analyzer
2011-01-22 02:19:16 +01:00
Lennart Poettering
1cd4a9f0e9
cryptsetup: actually show disk name
2010-11-18 23:40:27 +01:00
Lennart Poettering
b1a2da0a79
cryptsetup: show udev device name when asking for password
2010-11-18 23:34:42 +01:00
Lennart Poettering
42e19823e6
cryptsetup: reword questions a little
2010-11-16 03:47:14 +01:00
Lennart Poettering
494856b55c
cryptsetup: include device name in password question
2010-11-16 03:24:17 +01:00
Lennart Poettering
b853f6e9d6
cryptsetup: lock ourselves into memory as long as we deal with passwords
2010-11-16 03:23:52 +01:00
Lennart Poettering
1fc7633598
cryptsetup: handle password=none properly
2010-11-14 19:59:10 +01:00
Lennart Poettering
e2d480b9d1
cryptsetup: properly parse cipher= switch
2010-11-14 19:59:10 +01:00
Lennart Poettering
260ab28795
cryptsetup: support non-LUKS crypto partitions
2010-11-14 19:59:10 +01:00
Lennart Poettering
bb7df0da2d
log: add automatic log target
2010-11-12 01:01:04 +01:00
Lennart Poettering
7f4e08056d
cryptsetup: hook up tool with ask-password
2010-11-12 00:40:27 +01:00
Lennart Poettering
e23a0ce8ba
cryptsetup: minimal cryptsetup unit generator
2010-11-10 22:38:43 +01:00