platform_system_core/fs_mgr
Bowgo Tsai 1140954877 fs_mgr_avb: allow verification error when the device is unlocked
Current AVB flow in fs_mgr doesn't allow verification error even if the
device is unlocked. This makes first stage mount fail when the device
is flashed with a different-sized boot.img because there is verification
error (HASH_MISMATCH) for the boot partition.

Fix this by allowing verification error only when the device is
unlocked. Whether to enable dm-verity for HASHTREE partitions is still
controlled by the HASHTREE_DISABLED flag in the top-level vbmeta.

Bug: 37985430
Test: First stage mount /vendor with AVB on a device.
      Check dm-verity is enabled on /vendor.
Test: Unlock device, flash a different-sized boot.img. Boot device and check
      dm-verity is still enabled on /vendor.
Test: First stage mount /vendor with AVB on a device with HASHTREE_DISABLED
      is set on the top-level vbmeta, check dm-verity is not enable on /vendor.

Change-Id: I709431bc1c37e4f86133d171cee8e90621cdb857
2017-05-05 22:36:40 +08:00
..
include fs_mgr_avb: allow verification error when the device is unlocked 2017-05-05 22:36:40 +08:00
.clang-format Fix-up coding style 2017-02-18 12:33:36 +08:00
Android.mk fs_mgr: make is_device_secure() work even in the absence of properties. 2017-02-27 12:46:18 -08:00
fs_mgr.cpp use passed blk dev name for quota / super block check 2017-05-04 18:31:06 -07:00
fs_mgr_avb.cpp fs_mgr_avb: allow verification error when the device is unlocked 2017-05-05 22:36:40 +08:00
fs_mgr_avb_ops.cpp fs_mgr: Clear AvbOps struct. 2017-05-01 13:25:20 -04:00
fs_mgr_avb_ops.h fs_mgr_avb: refactors how vbmeta is loaded 2017-04-13 18:28:53 +08:00
fs_mgr_boot_config.cpp fs_mgr: remove the repetitive and annoying bootconfig error print 2017-04-20 14:41:23 -07:00
fs_mgr_dm_ioctl.cpp Fix-up coding style 2017-02-18 12:33:36 +08:00
fs_mgr_format.cpp fs_mgr: Switch to LOG()/PLOG() defined in <android-base/logging.h> 2017-01-26 21:47:55 +08:00
fs_mgr_fstab.cpp fs_mgr: adds/changes some public APIs for early mount in init 2017-04-13 18:29:10 +08:00
fs_mgr_main.cpp fs_mgr: Switch to LOG()/PLOG() defined in <android-base/logging.h> 2017-01-26 21:47:55 +08:00
fs_mgr_priv.h fs_mgr: support AVB in fs_mgr_update_verity_state() 2017-04-14 12:10:49 +08:00
fs_mgr_priv_boot_config.h early_mount: fs_mgr: move all fstab logic into fs_mgr 2017-02-23 16:48:43 -08:00
fs_mgr_priv_dm_ioctl.h Fix-up coding style 2017-02-18 12:33:36 +08:00
fs_mgr_priv_sha.h fs_mgr_avb: refactors how vbmeta is loaded 2017-04-13 18:28:53 +08:00
fs_mgr_slotselect.cpp fs_mgr: adding fs_mgr_get_slot_suffix() public API 2017-04-13 18:28:48 +08:00
fs_mgr_verity.cpp fs_mgr: support AVB in fs_mgr_update_verity_state() 2017-04-14 12:10:49 +08:00