summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Milan Broz [Thu, 30 Jul 2009 15:02:53 +0000 (15:02 +0000)]
Enable LUKS hash setting and document it.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@83
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Thu, 30 Jul 2009 15:01:22 +0000 (15:01 +0000)]
Remove internal SHA1 implementation, not needed now.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@82
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Thu, 30 Jul 2009 14:59:10 +0000 (14:59 +0000)]
Move XOR function to af.c, nobody outside of it use it now.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@81
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Thu, 30 Jul 2009 14:57:52 +0000 (14:57 +0000)]
Add required parameters for changing hash used in LUKS key setup scheme.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@80
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Thu, 30 Jul 2009 14:56:59 +0000 (14:56 +0000)]
Switch PBKDF2 from internal SHA1 to libgcrypt.
Also make hash algorithm not fixed here.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@79
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Thu, 30 Jul 2009 14:55:24 +0000 (14:55 +0000)]
Return ENOENT for empty keyslots, EINVAL will be used later for other type of errors.
(also clean some spaces)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@78
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Thu, 30 Jul 2009 14:48:08 +0000 (14:48 +0000)]
Remove po/cryptsetup-luks.pot, it's autogenerated (thanks to Ivan Stankovic)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@77
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Thu, 30 Jul 2009 14:46:56 +0000 (14:46 +0000)]
Print error when getline() fails (thanks to Ivan Stankovic)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@76
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Thu, 30 Jul 2009 14:46:20 +0000 (14:46 +0000)]
Fix DEBUG output (thanks to Ivan Stankovic)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@75
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Tue, 28 Jul 2009 09:29:13 +0000 (09:29 +0000)]
Optimize o_direct read/writes.
* Pad luks header to 512 sector size. We need read/write in whole
sector anyway and space is unused (wiped in luksFormat) so there is
no need for read/seek/write exercise.
* Rework read/write blockwise to not split operation to many pieces.
thanks to Sebastian Andrzej Siewior:
The buffer has to be aligned due to the O_DIRECT in open(). Currently a small
blocksize buffer is allocated and everything is read in multiple reads and
copied back to the original buffer. In my case AFEKSize gets computed to 64000
which results in 125 reads with 512 bytes each.
This patch changes this behavior to a single operation where the majority is
read()/write() plus an optional fixup in case the request is not modulo block
size.
* Use posix_memalign and check for alignment if available.
Othewise use old align functions. Add autoconf to detect posix_memalign.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@74
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Thu, 23 Jul 2009 11:04:46 +0000 (11:04 +0000)]
Fix segfault if provided slot in luksKillslot is invalid.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@73
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Wed, 22 Jul 2009 20:21:49 +0000 (20:21 +0000)]
Remove unneeded timeout when remove of temporary device succeeded.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@72
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Wed, 22 Jul 2009 10:43:40 +0000 (10:43 +0000)]
Cryptsetup version 1.0.7.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@66
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Thu, 16 Jul 2009 12:59:00 +0000 (12:59 +0000)]
Allow removal of last slot in luksRemoveKey and luksKillSlot.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@65
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Sun, 12 Jul 2009 21:37:03 +0000 (21:37 +0000)]
Add --disable-selinux option and fix static build if selinux is required.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@64
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Sat, 11 Jul 2009 07:09:05 +0000 (07:09 +0000)]
Reject unsupported --offset and --skip options for luksFormat and update man page.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@63
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Mon, 22 Jun 2009 14:13:40 +0000 (14:13 +0000)]
cryptsetup 1.0.7-rc1
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@60
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Mon, 22 Jun 2009 12:40:31 +0000 (12:40 +0000)]
Add some checks for error codes.
(fixes warning: ignoring return value ...)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@59
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Mon, 22 Jun 2009 12:38:08 +0000 (12:38 +0000)]
Fix device prompt quistion.
(fixes missing patch chunk in previous commit)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@58
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Sun, 21 Jun 2009 10:02:10 +0000 (10:02 +0000)]
Define device-mapper crypt UUID maximal length and check for its size.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@57
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Sat, 20 Jun 2009 21:15:04 +0000 (21:15 +0000)]
Various man page fixes.
(also merged some Debian/Ubuntu man page fixes, thanks to Martin Pitt)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@56
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Sat, 20 Jun 2009 20:24:56 +0000 (20:24 +0000)]
Set UUID in device-mapper for LUKS devices.
Device mapper device should use UUID string if possible.
UDEV can then easily distinguish the device type etc.
cryptsetup now uses CRYPT prefix for uuid.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@55
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Sat, 20 Jun 2009 20:22:27 +0000 (20:22 +0000)]
Retain readahead of underlying device.
(If libdevmapper version supports it).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@54
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Sat, 20 Jun 2009 20:20:41 +0000 (20:20 +0000)]
Display device name when asking for password.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@53
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Sat, 20 Jun 2009 09:24:33 +0000 (09:24 +0000)]
Check device size when loading LUKS header.
(And remove misleading error message later.)
Because kernel and libdevmapper does not provide
better error message then "invalid parameters"
add some error hint if dm-crypt mapping failed.
(Key size and kernel version check for XTS and LRW mode
for now.)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@52
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Fri, 19 Jun 2009 17:03:22 +0000 (17:03 +0000)]
Use better error messages if device doesn't exist
or is already used by other mapping.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@51
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Fri, 19 Jun 2009 15:53:45 +0000 (15:53 +0000)]
Fix make distcheck (Mike Kelly)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@50
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Sun, 5 Apr 2009 17:21:03 +0000 (17:21 +0000)]
Should fix Issue 5.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@49
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Wed, 1 Apr 2009 20:36:35 +0000 (20:36 +0000)]
Segfault bugfix thanks to Oliver Metz.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@48
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Fri, 16 Jan 2009 17:06:31 +0000 (17:06 +0000)]
Remove precompiled pot files.
Fix uninitialized return value variable in setup.c.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@47
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Tue, 13 Jan 2009 20:09:17 +0000 (20:09 +0000)]
Cleanups thanks to Ivan Stankovic
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@46
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Tue, 13 Jan 2009 19:48:25 +0000 (19:48 +0000)]
Remove unnecessary files from po/. They will be regenerated by ./autogen.sh
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@45
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Fri, 19 Dec 2008 19:39:42 +0000 (19:39 +0000)]
* Fix wrong output for remaining key at key deletion.
* Allow deletion of key slot while other keys have the same key
information (that implied rewritting verification logic).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@41
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Wed, 5 Nov 2008 15:05:15 +0000 (15:05 +0000)]
Add missing AM_PROG_CC_C_O to configure.in
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@40
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Wed, 5 Nov 2008 11:30:21 +0000 (11:30 +0000)]
Remove duplicate sentence in man page (patch by Till Maas).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@39
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Wed, 5 Nov 2008 11:23:24 +0000 (11:23 +0000)]
Wipe start of device before LUKS-formatting.
Cryptsetup keeps some sectors (between the physical LUKS header
and keyslot data) on disk untouched, unfortunatelly ext2/3/4 signature can
be there and blkid detects filesystem here instead of LUKS.
This patch wipes the first eight sectors on disk with zero during luksFormat.
This should be probably solved by physical header padding in next version.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@38
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Wed, 5 Nov 2008 11:21:53 +0000 (11:21 +0000)]
Do not process configure.in in hidden directories.
(E.g. quilt uses ".pc" dir for file backups to track
changes and processing this directory by autogen is incorrect.)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@37
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Thu, 23 Oct 2008 19:08:40 +0000 (19:08 +0000)]
Remove more autoconf stuff as it is generated by autogen.sh anyway.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@36
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Thu, 16 Oct 2008 09:24:23 +0000 (09:24 +0000)]
Remove config.sub/config.guess as they are regenerated by autogen.sh
Remove reference to m4/Makefile.in from configure.in
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@35
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Sun, 12 Oct 2008 12:21:13 +0000 (12:21 +0000)]
Remove ltmain.sh and m4, and strip the former LUKS branch tag of the gettext package identifier
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@34
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Mon, 22 Sep 2008 12:07:31 +0000 (12:07 +0000)]
Return preset error description in case of IO or header format error.
(All password related errors still return -EPERM - "No key available with this passphrase.")
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@33
36d66b0a-2a48-0410-832c-
cd162a569da5
Milan Broz [Tue, 16 Sep 2008 15:35:50 +0000 (15:35 +0000)]
Use remapping to error target instead of calling udevsettle for temporary crypt device.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@32
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Thu, 11 Sep 2008 09:10:55 +0000 (09:10 +0000)]
Check device mapper communication and warn user in case the communication fails. Thanks to Milan Broz.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@31
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Wed, 10 Sep 2008 10:55:28 +0000 (10:55 +0000)]
Thanks to Milan Broz <mbroz@redhat.com> for this patch:
Fix signal handler to proper close device, otherwise if the descriptor
is 0, it keeps device open and temporary-cryptsetup-$PID mapping
is not removed (leaving device open and unusable).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@30
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Mon, 1 Sep 2008 08:54:05 +0000 (08:54 +0000)]
Thanks to Ivan Stankovic
* write_lseek_blockwise: declare innerCount outside the if block
* add -Wall to the default CFLAGS
* fix some signedness issues
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@29
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Wed, 20 Aug 2008 10:40:45 +0000 (10:40 +0000)]
Error handling improvement thanks to Erik Edin.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@28
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Mon, 30 Jun 2008 12:21:06 +0000 (12:21 +0000)]
Add non-exclusive override to interface definition, add regression test
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@26
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Mon, 30 Jun 2008 12:20:24 +0000 (12:20 +0000)]
Add non-exclusive override via --non-exclusive.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@25
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Sat, 28 Jun 2008 17:45:55 +0000 (17:45 +0000)]
Refactor key slot selection into keyslot_from_option. Either autoselect next
free keyslot or honor user choice (after checking).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@24
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Sat, 22 Mar 2008 08:29:12 +0000 (08:29 +0000)]
Purge leftovers from patching (.orig)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@4
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Sat, 22 Mar 2008 08:23:35 +0000 (08:23 +0000)]
Initial checking of what was revision 56 on luks.endorphin.org/svn/cryptsetup
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@3
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Wed, 12 Mar 2008 10:45:48 +0000 (10:45 +0000)]
Initial test commit of a single file.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@2
36d66b0a-2a48-0410-832c-
cd162a569da5
Clemens Fruhwirth [Tue, 11 Mar 2008 14:21:47 +0000 (14:21 +0000)]
Initial directory structure.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@1
36d66b0a-2a48-0410-832c-
cd162a569da5