Milan Broz
c2ddd48f50
Avoid tar archive warnings if tests are run as superuser.
2016-04-19 14:56:43 +02:00
Milan Broz
eb8ff73595
Merge branch 'VittGam/cryptsetup-patch-1'
2016-04-19 11:24:09 +02:00
Milan Broz
54c4b1656f
Include sys/sysmacros.h if present.
...
Needed for major/minor definitions.
Thanks Mike Frysinger for pointing this out.
2016-04-19 10:57:45 +02:00
Milan Broz
1000b40a3a
Link reencryption utility to uuid library.
...
(Fixes last patch.)
2016-04-19 10:22:26 +02:00
VittGam
e7e5354332
Fix off-by-one error in maximum keyfile size.
...
Allow keyfiles up to DEFAULT_KEYFILE_SIZE_MAXKB * 1024 bytes in size, and not that value minus one.
Signed-off-by: Vittorio Gambaletta <git-cryptsetup@vittgam.net >
2016-04-19 03:58:10 +00:00
Ondrej Kozina
b5365ba13d
cryptsetup-reencrypt: enable resume of decryption
...
to enable resume of interrupted decryption user has
to pass uuid of the former luks device. That uuid is used
to resume the operation if temporary files LUKS-* still
exist.
2016-04-13 15:01:37 +02:00
Milan Broz
f2cdc6f5f4
Update po files.
2016-04-13 14:58:55 +02:00
Arno Wagner
a0c251c7cc
sync to WIKI version
2016-03-23 15:53:02 +01:00
Milan Broz
d7a224e47a
Disable DIRECT_IO for LUKS header with unaligned keyslots.
...
Fixes issue#287.
Such a header is very rare, it is not worth to do more detection here.
2016-03-23 13:44:37 +01:00
Milan Broz
6894701392
Merge branch 'athira-rajeev/cryptsetup-fix_device_block_size_fd'
2016-03-23 10:06:40 +01:00
Athira Rajeev
8e4e898ce5
Fix device_block_size_fd to return bsize correctly incase of files.
...
This patch is for issue #287
In the code for returning block size ( device_block_size_fd in lib/utils_device.c ),
always returns zero in case of files and device_read_test is not executed.
This patch is to fix device_block_size_fd to return block size correctly incase of files.
Signed-off-by: Athira Rajeevatrajeev@linux.vnet.ibm.com
2016-03-19 18:57:45 +05:30
Milan Broz
add8fb8fd2
Update README for 1.7.1.
2016-02-28 14:48:41 +01:00
Milan Broz
3807dbf2f3
Add 1.7.1 release notes.
2016-02-28 13:38:42 +01:00
Milan Broz
b5d1c9241c
Fix align test for new scsi_debug defaults.
2016-02-28 11:12:40 +01:00
Ondrej Kozina
3e742452cd
cryptsetup-reencrypt: harden checks for hdr backups removal
...
There're various situations where hdr backups together with log file
may get removed even when the hdr was already marked unusable. This
patch fixes the most sever case already reported and generaly tries
harder protecting the log file and both hdr backups.
2016-02-28 09:44:22 +01:00
Ondrej Kozina
d7b127549c
cryptsetup-reencrypt: drop unreachable code path
...
MAKE_USABLE flag is never used in device_check()
2016-02-28 09:44:07 +01:00
Milan Broz
d841f97d44
Update po files.
2016-02-28 09:31:36 +01:00
Milan Broz
0c7d947d2d
Update po files.
2016-02-23 17:41:55 +01:00
Milan Broz
05604b77ea
Move README back.
2016-02-23 17:40:10 +01:00
Ondrej Kozina
2c072eb6b6
Clarify the reencrypt_keyslot= option
2016-02-21 18:48:49 +01:00
Milan Broz
080a9863c1
Temporarily rename README.txt (until GitLab updates markdown README preference handling)
2016-01-30 08:33:04 +01:00
Milan Broz
22f5760d47
Update TODO.
2016-01-26 15:17:02 +01:00
Milan Broz
4dc88e8ffb
Fix kernel crypto backend to set key before accept call even for HMAC.
2016-01-04 14:19:50 +01:00
Milan Broz
229497871d
Fix write_lseek prototype and avoid using void in arithmetic warning.
2016-01-03 16:05:17 +01:00
Milan Broz
9ce5dd1082
Fix cipher_null key setting in kernel crypto backend.
2016-01-03 11:03:47 +01:00
Ondrej Kozina
03d9db921b
Fix hang in low level device-mapper code.
...
udev cookies should be set right in before the dm_task_run()
call otherwise we risk a hang while waiting for a cookie
associated with not yet executed dm task.
For example: failing to add table line (dm_task_add_target())
results in such hang.
2016-01-02 21:06:15 +01:00
Milan Broz
93ed401b7c
Set skcipher key before accept() call in kernel crypto backend.
...
Also relax input errno checking to catch all errors.
2016-01-02 20:02:28 +01:00
Milan Broz
e34938f21d
Allow special "-" (standard input) keyfile hangdling even for TCRYPT devices.
...
Fail if there are more keyfiles specified for non-TCRYPT device.
Fixes issue#269.
2016-01-01 19:15:06 +01:00
Milan Broz
87dbaa0bd7
Update sr.po.
2015-12-25 10:55:00 +01:00
Milan Broz
119627c8cf
Merge branch 'misc/cryptsetup-add_gitignore'
2015-12-25 10:53:16 +01:00
Michael Scherer
973efb63ab
Add a basic .gitignore in the project
2015-12-19 22:49:16 +01:00
Milan Broz
a1511e6a86
Merge branch 'louipc/cryptsetup-master'
2015-12-13 10:07:03 +01:00
Loui Chang
1d5663ddec
Update version control history url
...
Signed-off-by: Loui Chang <louipc.ist@gmail.com >
2015-12-13 00:17:25 -05:00
Loui Chang
5e8d92146b
Man page typo
...
Signed-off-by: Loui Chang <louipc.ist@gmail.com >
2015-12-13 00:17:01 -05:00
Ondrej Kozina
8e160562ee
read_lseek_blockwise: use void pointer
2015-12-12 17:02:27 +01:00
Milan Broz
7033105ce7
Fix password handling from stdin (it cannot use offset).
2015-12-01 12:20:39 +01:00
Ondrej Kozina
091dfa0c26
Slight code style improvements for blockwise functions.
2015-12-01 10:57:04 +01:00
Ondrej Kozina
7fc006b63b
Add interrupt safe read_lseek_blockwise function.
2015-12-01 10:52:42 +01:00
Ondrej Kozina
3e653ace3e
Use const for header in LUKS_keyslot_area.
2015-12-01 10:52:25 +01:00
Ondrej Kozina
64f3df44ee
Use read/write buffer functions where appropriate.
2015-12-01 10:51:56 +01:00
Ondrej Kozina
42ccddeff3
Add read_buffer and write_buffer functions.
...
Introduce functions for proper I/O handling. These functions
are able to deal with interrupts and partial I/O.
2015-12-01 10:44:02 +01:00
Ondrej Kozina
0435fbf2e5
Avoid write with zero size.
...
This can happen if write buffer size is smaller than underlying
block size and initial buffer is misaligned.
Also use size_t for buffer length variables.
2015-12-01 10:42:08 +01:00
Milan Broz
34ddae154e
Fix luksKillSlot to not suppress provided password in batch mode.
...
Batch mode should enable no-query keyslot wipe but only if user
did not provided password or keyfile explicitely.
Fixes issue #265 .
Signed-off-by: Milan Broz <gmazyland@gmail.com >
2015-11-22 12:50:34 +01:00
Milan Broz
8da37ce4b0
Update test (removal of get_last_error).
2015-11-20 09:18:58 +01:00
Milan Broz
9cbe74c2db
Remove last error handling (error is logged).
2015-11-20 09:18:58 +01:00
Milan Broz
002ba59ff1
Simplify tools_get_key.
2015-11-20 09:18:31 +01:00
Milan Broz
d293de579a
Fix various backward incompatibilities in password processing.
2015-11-20 09:18:31 +01:00
Milan Broz
4aea3b81ee
Remove password callback interface.
...
This was a design mistake and should not be handled inside libcryptsetup code.
2015-11-20 09:18:31 +01:00
Milan Broz
5293f5aae1
Move terminal handling to tools wrapper.
2015-11-20 09:18:31 +01:00
Milan Broz
39698fa6b7
Remove terminal input from libcryptsetup API calls.
2015-11-20 09:18:31 +01:00