ANDROID: dm: android-verity: Add android verity target
authorBadhri Jagan Sridharan <Badhri@google.com>
Tue, 15 Dec 2015 04:09:39 +0000 (20:09 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commit7069aa29ed6606135b548a47350965c07b51b744
tree20afdbc46860fd5491e1ba5b60c4b6ec38027b30
parent834155c54dc917399dbb41a4b3c754b489542dcb
ANDROID: dm: android-verity: Add android verity target

This device-mapper target is virtually a VERITY target. This
target is setup by reading the metadata contents piggybacked
to the actual data blocks in the block device. The signature
of the metadata contents are verified against the key included
in the system keyring. Upon success, the underlying verity
target is setup.

BUG: 27175947

Change-Id: I7e99644a0960ac8279f02c0158ed20999510ea97
Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
[AmitP: Folded following android-4.9 commit changes into this patch
        56f6a6b2b1cd ("ANDROID: dm-android-verity: Rebase on top of 4.1")]
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
drivers/md/Kconfig
drivers/md/Makefile
drivers/md/dm-android-verity.c [new file with mode: 0644]
drivers/md/dm-android-verity.h [new file with mode: 0644]
drivers/md/dm-verity-target.c
drivers/md/dm-verity.h