platform_system_core/fs_mgr
bowgotsai b51722b4e2 fs_mgr: support using libavb to enable dm-verity
external/avb/libavb provides the new Android Verified Boot (AVB) flow.
It has different verity metadata format than previous formats in
fs_mgr_verity.cpp fs_mgr should support using libavb to read the metadata
(a.k.a. HASHTREE descriptor in AVB) to enable dm-verity in kernel.

Two important files in this commit:

 - fs_mgr_avb_ops.c: an implementation of struct AvbOps* for libavb to do
   platform dependent I/O operations, e.g., read_from_partition.

 - fs_mgr_avb.cpp: it reads the metadata (a.k.a. vbmeta images in AVB) from
   all partitions, verifies its integrity against the values of
   androidboot.vbmeta.{hash_alg, size, digest} passed from bootloader in
   kernel command line. Then enable dm-verity for partitions having the
   corresponding HASHTREE descriptor and with an 'avb' fstab flag.

Bug: 31264231
Test: Enable dm-verity on /system partition
Test: Enable dm-verity with FEC on /system partition

Change-Id: I4652806984fe5a30c61be0839135b5ca78323d38
2017-01-25 18:03:20 +08:00
..
include Add eraseblk and logicalblk fs_mgr flags 2017-01-24 18:43:39 -08:00
Android.mk fs_mgr: support using libavb to enable dm-verity 2017-01-25 18:03:20 +08:00
fs_mgr.c fs_mgr: support using libavb to enable dm-verity 2017-01-25 18:03:20 +08:00
fs_mgr_avb.cpp fs_mgr: support using libavb to enable dm-verity 2017-01-25 18:03:20 +08:00
fs_mgr_avb_ops.cpp fs_mgr: support using libavb to enable dm-verity 2017-01-25 18:03:20 +08:00
fs_mgr_avb_ops.h fs_mgr: support using libavb to enable dm-verity 2017-01-25 18:03:20 +08:00
fs_mgr_dm_ioctl.cpp fs_mgr: support using libavb to enable dm-verity 2017-01-25 18:03:20 +08:00
fs_mgr_format.c Update the header path for ext4_utils. 2016-10-09 10:23:36 -07:00
fs_mgr_fstab.c fs_mgr: support using libavb to enable dm-verity 2017-01-25 18:03:20 +08:00
fs_mgr_main.c fs_mgr: fix clang static analyzer warning 2017-01-20 18:01:49 +08:00
fs_mgr_priv.h fs_mgr: support using libavb to enable dm-verity 2017-01-25 18:03:20 +08:00
fs_mgr_priv_avb.h fs_mgr: support using libavb to enable dm-verity 2017-01-25 18:03:20 +08:00
fs_mgr_priv_dm_ioctl.h fs_mgr: use std::string for function parameters in fs_mgr_dm_ioctl.cpp 2017-01-13 17:39:04 +08:00
fs_mgr_priv_sha.h fs_mgr: support using libavb to enable dm-verity 2017-01-25 18:03:20 +08:00
fs_mgr_priv_verity.h fs_mgr: add verify_dev flag to fs_mgr_setup_verity() 2016-12-16 15:00:05 +08:00
fs_mgr_slotselect.c fs_mgr: Track the bootloader_message struct change. 2016-06-09 15:13:15 -07:00
fs_mgr_verity.cpp fs_mgr: use std::string for function parameters in fs_mgr_dm_ioctl.cpp 2017-01-13 17:39:04 +08:00