diff options
author | Chong Cai <chongc@google.com> | 2021-06-29 17:42:43 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-29 17:44:53 -0700 |
commit | 57095bd3bd75338fd6a95a7478c9cb444b5e9980 (patch) | |
tree | 6338a1db4244b8070d881e227f885b936b6ad1b8 /vdso/barrier.h | |
parent | 90dbb4b0c7e594ba67fec26c2cdb1dfd7d7454de (diff) |
Sort children map before hash
The unordered map may generate different hash due to its order. The
children map needs to be sorted each time before hashing to avoid false
verification failure due to the map.
Store the sorted children map in verity dentry to avoid sorting it each
time verification happens.
Also serialize the whole VerityDescriptor struct to hash now that the
map is removed from it.
PiperOrigin-RevId: 382201560
Diffstat (limited to 'vdso/barrier.h')
0 files changed, 0 insertions, 0 deletions