Milan Broz
02f860140d
Fix trailing space.
2014-06-23 23:30:11 +02:00
Milan Broz
cad0cbf0c8
Fix integer type warnings in debug log.
2014-04-13 16:41:29 +02:00
Cristian Rodríguez
a809224ec7
Fix all format string issues found by the attribute format patch
2014-04-12 08:52:20 +02:00
Mikulas Patocka
4f990d5a74
dm-verity: Fix a boundary condition that caused failure for certain device sizes
...
On Fri, 28 Jun 2013, Mikulas Patocka wrote:
Fix a boundary condition that caused failure for certain device sizes
The problem is reported at
http://code.google.com/p/cryptsetup/issues/detail?id=160
This is the userspace fix.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com
2013-06-28 17:05:45 +02:00
Cristian Rodríguez
1349efa34d
Fix buildsytem to always include config.h.
...
- config.h must always be the first file to be included
- Use AM_CFLAGS and AM_LDFLAGS consistently and properly.
(Modified to disable build without largefile support etc
by Milan Broz <gmazyland@gmail.com >)
2013-06-23 17:14:33 +02:00
Milan Broz
929dc47be4
Fix displaying of error messages for mising kernel features.
2013-01-08 14:19:31 +01:00
Dave Reisner
ab080ab544
build: use AM_CPPFLAGS instead of INCLUDES
...
The latter is marked as deprecated as of automake 1.12.4:
warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
2012-12-30 18:36:46 +01:00
Milan Broz
6190ad928d
Support device/file images if O_DIRECT cannot be used (1.5.1).
...
On some filesystems (like tmpfs) O_DIRECT cannot be used.
So just try to open device without O_DIRECT in the second try.
2012-12-29 15:33:20 +01:00
Milan Broz
7eccb7ff50
Change License for sub-libraries from GPLv2 only to LGPLv2.1+ ("or any later")
...
This includes crypto, loopaes, tcrypt handling code I have written myself
and verity code written originally by Mikulas Patocka and modified by me,
copyright by Red Hat.
Other part of library have to stay GPLv2+ only for now
(no agreement from all authors).
2012-12-29 11:47:28 +01:00
Milan Broz
89e09afdf6
Fix some problems found by Coverity static analysis.
2012-09-19 13:58:00 +02:00
Milan Broz
97224b072a
Add context to DM helpers.
...
(To be used later.)
2012-08-14 16:25:21 +02:00
Milan Broz
65f975655c
New device access backend.
...
Allocate loop device late (only when real block device needed).
Rework underlying device/file access functions.
Move all device (and ioctl) access to utils_device.c.
Allows using file where appropriate without allocation loop device.
2012-08-12 22:00:17 +02:00
Milan Broz
5f7309bfa0
Add some verity api test.
...
Fix set_data_device bug it uncovered.
Fix api-test for nonFIPS hash.
2012-07-09 18:09:51 +02:00
Milan Broz
28f860def2
Remove old dm-verity superblock handling.
2012-06-19 15:57:05 +02:00
Milan Broz
e129bffce9
Remove redundant condition in overflow test.
2012-06-18 17:12:41 +02:00
Milan Broz
03dc073f2b
Use block sizes in superblock in 32bit.
2012-06-11 13:42:53 +02:00
Milan Broz
b402f087d7
Verity salt size is really uint16 in sb and uint32 internally.
2012-06-11 13:30:41 +02:00
Milan Broz
62f334cfa5
Check various number limits.
2012-06-11 00:09:15 +02:00
Milan Broz
6d2c15ea79
Avoid some clang warnings.
2012-06-10 19:55:43 +02:00
Milan Broz
4b8f91d0d9
Remove some compilation warnings.
2012-06-10 18:56:04 +02:00
Milan Broz
c364290be9
Silence sb warning for now.
2012-06-10 18:20:59 +02:00
Milan Broz
de9393879e
Add more verity debug messages.
2012-06-10 12:58:18 +02:00
Milan Broz
db51a343de
Move defines from header.
2012-06-09 23:26:45 +02:00
Milan Broz
e2375c8368
Add verity uuid specification.
2012-06-09 23:20:43 +02:00
Milan Broz
697c6c9324
Prepare new superblock format.
2012-06-09 22:02:06 +02:00
Milan Broz
ade21e6c60
Support empty salt for verity, support no superblock.
2012-06-09 13:12:04 +02:00
Milan Broz
fcf5b414d6
Remove redundant flags.
2012-06-09 11:54:10 +02:00
Milan Broz
f4101d0f8b
Use action names in veritysetup (similar to cryptsetup).
2012-06-08 21:51:58 +02:00
Milan Broz
ce2218ed65
Support init_by_name for verity.
2012-06-08 16:38:26 +02:00
Milan Broz
cdae1b4c60
Move verity_sb definition to private file.
2012-06-08 10:14:54 +02:00
Milan Broz
c4b16923bb
Unify dm backend for crypt/verity.
2012-06-08 10:12:12 +02:00
Milan Broz
cd8826618d
Warn if block exceeds page size.
2012-06-07 15:09:58 +02:00
Milan Broz
ab0f7346bc
Fix some strings, fix sb_offset.
2012-06-07 14:51:42 +02:00
Milan Broz
9fb8b816c5
Change int types.
2012-06-07 14:29:43 +02:00
Milan Broz
0e79728f86
Detect dm-verity in kernel.
2012-06-07 12:32:06 +02:00
Milan Broz
4b0b82adc5
Rewrite veritysetup to use libcryptsetup.
2012-06-07 00:18:49 +02:00