Ondrej Kozina
cc27088df9
Add support for LUKS2 token export and import.
2018-07-19 14:44:54 +02:00
Milan Broz
2f83bf9f83
Change wording of blkid signature messages.
2018-07-18 13:22:11 +02:00
Ondrej Kozina
30d109c0e9
Add support for blkid scans and signature wiping in tools.
2018-07-11 22:21:32 +02:00
Milan Broz
aee55b0595
Use fixed buffer in log function.
...
And unify EOL for error and verbose messages.
2018-04-26 10:00:31 +02:00
Milan Broz
10bb78458d
Move EOL in tool verbose and error messages to log wrapper.
2018-04-25 10:43:02 +02:00
Milan Broz
4e5e8fd8fe
cryptsetup: Print message about operation aborted if user did not answer YES.
...
Thanks Colin Walters for the initial idea in !33 .
2018-01-24 10:17:28 +01:00
Milan Broz
1fe014dbae
Update copyright year.
2018-01-20 17:55:21 +01:00
Milan Broz
f7dadfb646
Fix some benign compiler warnings.
2017-10-28 14:12:25 +02:00
Milan Broz
7e53c87f5c
Add parameter for progress update without in separate lines.
...
Useful for reencryption or integrity format.
2017-10-04 15:22:32 +02:00
Milan Broz
540972ff59
Move progress function to utils.
2017-08-22 16:13:40 +02:00
Milan Broz
edba04c978
Fix batch mode for tools progress function.
2017-06-08 15:05:28 +02:00
Milan Broz
3a27c84d98
Rewrite and export crypt_wipe function.
...
The crypt_wipe can be used to wipe any part of the device,
and also to initialize integrity based device (to reset checksum).
2017-06-07 15:31:13 +02:00
Milan Broz
98368c4770
Update copyright years.
2017-03-12 13:17:15 +01:00
Tobias Stoeckmann
14ebbce280
Avoid buffer overflow in uuid_or_device.
...
The function uuid_or_device is prone to a buffer overflow if a very long
spec has been defined. The range check happens against PATH_MAX, with
i being set to 5 (due to "UUID=" offset of spec), but "/dev/disk/by-uuid"
has been already written into device.
The difference between "/dev/disk/by-uuid" and "UUID=" is 13, therefore
the correct range check must happen against PATH_MAX - 13.
@@ -204,7 +204,7 @@ const char *uuid_or_device(const char *spec)
strcpy(device, "/dev/disk/by-uuid/");
2016-07-02 20:41:51 +02:00
Milan Broz
7eba57b4c0
Avoid possible divide-by-zero warnings.
2016-04-24 12:38:19 +02:00
Milan Broz
9cbe74c2db
Remove last error handling (error is logged).
2015-11-20 09:18:58 +01:00
Milan Broz
7843415243
Move string_to_size to userspace tools.
2015-08-26 12:42:25 +02:00
Milan Broz
eccf347568
Flush stdout when expecting user input on stdin.
2015-01-10 20:36:49 +01:00
Milan Broz
e24a72f84c
Fix crash if non-GNU strerror_r is used.
...
The strerror_r call exists in POSIX and GNU variant,
if POSIX variant is used (like in musl libc replacement)
we cannot rely on char* pointer.
Fixes issue#237.
2015-01-10 20:33:42 +01:00
Milan Broz
bb8dbfdf5b
Update author name.
2014-06-23 21:40:12 +02:00
Milan Broz
2e97d8f8e8
Prepare version 1.6.4.
2014-02-27 14:36:13 +01:00
Milan Broz
3bf40bb8dd
Add 1.6.3 ChangeLog.
2013-12-13 21:33:53 +01:00
Milan Broz
29f21208a0
Change License from GPLv2 only to GPLv2+ ("or any later").
...
Agreed by all copyright authors.
2012-12-29 11:33:54 +01:00
Milan Broz
83f02e6682
Add copyright line for files I have written or modified.
2012-12-21 16:40:33 +01:00
Milan Broz
e030e3bd15
Add optional libpwquality support for new LUKS passwords.
...
If password is entered through terminal (no keyfile specified)
and cryptsetup is compiled with --enable-pwquality, default
system pwquality settings are used to check password quality.
2012-12-19 17:25:11 +01:00
Milan Broz
c950cf265f
Prepare cryptsetup functions for pwquality check.
2012-12-19 15:27:29 +01:00
Milan Broz
32c578729c
Handle signals in tool context.
2012-12-11 19:01:46 +01:00
Milan Broz
710aad20d3
Move signal handling into common utils code.
2012-12-11 15:40:42 +01:00
Milan Broz
ff9db165eb
Use common utils_tools.c for all tools.
...
Unify tool environment and deduplicate code.
2012-08-13 18:31:26 +02:00