diff options
author | Bowgo Tsai <bowgotsai@google.com> | 2017-10-15 03:26:47 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-10-15 03:26:47 +0000 |
commit | 2da820c0ab87812902b1aac7f782a66060d19a76 (patch) | |
tree | 03161f1b5ff1c587136b2958278fa4fe5fa5d879 /fs_mgr/fs_mgr_verity.cpp | |
parent | 33c3c190f7b328a55c4d2db917bec10d116d71ba (diff) | |
parent | ee042cac7110d304e28a551b5e7b13e98985a85c (diff) | |
download | system_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.cpp | 9 |
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 |