Merge "fs_mgr_verity: fix androidboot.veritymode=enforcing doesn't work" into oc-dev

This commit is contained in:
TreeHugger Robot 2017-05-10 02:22:40 +00:00 committed by Android (Google) Code Review
commit 5f68b422bd

View file

@ -663,7 +663,7 @@ int load_verity_state(struct fstab_rec* fstab, int* mode) {
/* use the kernel parameter if set */
std::string veritymode;
if (fs_mgr_get_boot_config("veritymode", &veritymode)) {
if (veritymode.compare("enforcing")) {
if (veritymode == "enforcing") {
*mode = VERITY_MODE_DEFAULT;
}
return 0;