Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: delta_diff_generator.cc

Issue 3712003: AU: Verify source rootfs/kernel hashes before applying delta. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: verify source partitions only for new updates Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « action_processor.h ('k') | delta_performer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: delta_diff_generator.cc
diff --git a/delta_diff_generator.cc b/delta_diff_generator.cc
index 9659ad206834aae15cdc8ede66b6f232d25a17c0..f024481b048ade7128ce4e672a8f54c1437e16b7 100644
--- a/delta_diff_generator.cc
+++ b/delta_diff_generator.cc
@@ -611,6 +611,7 @@ bool InitializePartitionInfo(bool is_kernel,
TEST_AND_RETURN_FALSE(hasher.Finalize());
const vector<char>& hash = hasher.raw_hash();
info->set_hash(hash.data(), hash.size());
+ LOG(INFO) << "hash: " << hasher.hash();
return true;
}
@@ -619,12 +620,8 @@ bool InitializePartitionInfos(const string& old_kernel,
const string& old_rootfs,
const string& new_rootfs,
DeltaArchiveManifest* manifest) {
- if (!old_kernel.empty()) {
- TEST_AND_RETURN_FALSE(
- InitializePartitionInfo(true,
- old_kernel,
- manifest->mutable_old_kernel_info()));
- }
+ // TODO(petkov): Generate the old kernel info when we stop generating full
+ // updates for the kernel partition.
TEST_AND_RETURN_FALSE(
InitializePartitionInfo(true,
new_kernel,
« no previous file with comments | « action_processor.h ('k') | delta_performer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698