diff options
author | Darin Petkov <petkov@chromium.org> | 2010-10-13 10:59:44 -0700 |
---|---|---|
committer | Darin Petkov <petkov@chromium.org> | 2010-10-13 10:59:44 -0700 |
commit | 698d04196deec8374ff148291db0afc7fec9cdcc (patch) | |
tree | 2835c2c975e5db2f9ac5b853f35d833121cd4e09 /install_plan.h | |
parent | 7ea3233e05ea10345aae337cd095f2c46ca90520 (diff) |
AU: Verify source rootfs/kernel hashes before applying delta.
New style full updates will not send the old rootfs hash so no check takes
place.
BUG=7562
TEST=unit tests, gmerged on device and tested with good/bad source partition
Change-Id: I65b28bf57110e4d87472d4aea59121878cde24b0
Review URL: http://codereview.chromium.org/3712003
Diffstat (limited to 'install_plan.h')
-rw-r--r-- | install_plan.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/install_plan.h b/install_plan.h index 8dc42aa7..9911d325 100644 --- a/install_plan.h +++ b/install_plan.h @@ -6,6 +6,8 @@ #define CHROMEOS_PLATFORM_UPDATE_ENGINE_INSTALL_PLAN_H__ #include <string> +#include <vector> + #include "base/logging.h" // InstallPlan is a simple struct that contains relevant info for many @@ -37,6 +39,8 @@ struct InstallPlan { std::string download_hash; // hash of the data at the url std::string install_path; // path to install device std::string kernel_install_path; // path to kernel install device + std::vector<char> current_kernel_hash; // computed by FileSystemCopierAction + std::vector<char> current_rootfs_hash; // computed by FileSystemCopierAction bool operator==(const InstallPlan& that) const { return (is_full_update == that.is_full_update) && |