summaryrefslogtreecommitdiff
path: root/scripts/update_payload/checker.py
diff options
context:
space:
mode:
authorTianjie <xunchang@google.com>2020-07-09 17:04:28 -0700
committerTianjie Xu <xunchang@google.com>2020-07-10 17:34:42 +0000
commit1205ea684e81a6f14db7d5556f3eda2fd014b8d8 (patch)
tree988b705ee5a8b6da6b8fbaca0ee60461c5ddc267 /scripts/update_payload/checker.py
parent002faadc0f857ef192e598e0c5c0832d0cd7610b (diff)
Validate payload data for each operation
For streaming update, we currently verify: 1. the hash of manifest before applying ops 2. the hash of the entire payload after we apply all ops 3. the final patched on filesystems after the update So there is some potential to exploit the patching libraries, if some attacker manage to provide us malicious patch data after the manifest verification. Therefore, this cl enables the validation of patch data for each install operation. The hash itself is embedded in the payload manifest; and thus has been verified upfront. Bug: 160800689 Test: unittests, apply an OTA Change-Id: Idd4cbe167ce63f197d821752f75e45add0ea829c (cherry picked from commit ef49160c9bd2621dd3084fa061f09d176304ca49)
Diffstat (limited to 'scripts/update_payload/checker.py')
0 files changed, 0 insertions, 0 deletions