mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
The previous commit introduced GptLib by extracting PartitionDxe's GPT parsing and validation code. It provides a shared implementation for edk2 components that need to parse and validate GPT data consistently. Update DxeTpm2MeasureBootLib to use GptLib when selecting on-disk GPT data for measurement. Validate the current primary GPT or, when it is invalid, validate the backup and the header at its AlternateLBA. Do not extend PCR[5] if no valid header can be selected. The measurement therefore uses GPT data read from disk at measurement time and applies the shared parser and validation logic. Ref: https://seclists.org/oss-sec/2026/q2/727 Signed-off-by: Richard Lyu <richard.lyu@suse.com> |
||
|---|---|---|
| .. | ||
| InternalUnitTest | ||
| DxeTpm2MeasureBootLib.c | ||
| DxeTpm2MeasureBootLib.inf | ||
| DxeTpm2MeasureBootLib.uni | ||
| DxeTpm2MeasureBootLibSanitization.c | ||
| DxeTpm2MeasureBootLibSanitization.h | ||