summaryrefslogtreecommitdiffstats
path: root/fs_mgr/fs_mgr_verity.cpp
diff options
context:
space:
mode:
authorBowgo Tsai <bowgotsai@google.com>2017-10-15 03:26:47 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-15 03:26:47 +0000
commit2da820c0ab87812902b1aac7f782a66060d19a76 (patch)
tree03161f1b5ff1c587136b2958278fa4fe5fa5d879 /fs_mgr/fs_mgr_verity.cpp
parent33c3c190f7b328a55c4d2db917bec10d116d71ba (diff)
parentee042cac7110d304e28a551b5e7b13e98985a85c (diff)
downloadsystem_core-2da820c0ab87812902b1aac7f782a66060d19a76.tar.gz
system_core-2da820c0ab87812902b1aac7f782a66060d19a76.tar.bz2
system_core-2da820c0ab87812902b1aac7f782a66060d19a76.zip
Merge "fs_mgr: removing is_device_secure()" am: af54c27e1b am: 6353d514e8
am: ee042cac71 Change-Id: I3579738b8d9a3d4026294ba3392b56a55aedb9a9
Diffstat (limited to 'fs_mgr/fs_mgr_verity.cpp')
-rw-r--r--fs_mgr/fs_mgr_verity.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/fs_mgr/fs_mgr_verity.cpp b/fs_mgr/fs_mgr_verity.cpp
index 7f8e1e213..896b60313 100644
--- a/fs_mgr/fs_mgr_verity.cpp
+++ b/fs_mgr/fs_mgr_verity.cpp
@@ -765,13 +765,6 @@ int fs_mgr_setup_verity(struct fstab_rec *fstab, bool wait_for_verity_dev)
const std::string mount_point(basename(fstab->mount_point));
bool verified_at_boot = false;
- // This is a public API and so deserves its own check to see if verity
- // setup is needed at all.
- if (!is_device_secure()) {
- LINFO << "Verity setup skipped for " << mount_point;
- return FS_MGR_SETUP_VERITY_SKIPPED;
- }
-
if (fec_open(&f, fstab->blk_device, O_RDONLY, FEC_VERITY_DISABLE,
FEC_DEFAULT_ROOTS) < 0) {
PERROR << "Failed to open '" << fstab->blk_device << "'";
@@ -792,7 +785,7 @@ int fs_mgr_setup_verity(struct fstab_rec *fstab, bool wait_for_verity_dev)
#ifdef ALLOW_ADBD_DISABLE_VERITY
if (verity.disabled) {
retval = FS_MGR_SETUP_VERITY_DISABLED;
- LINFO << "Attempt to cleanly disable verity - only works in USERDEBUG";
+ LINFO << "Attempt to cleanly disable verity - only works in USERDEBUG/ENG";
goto out;
}
#endif