Commit 62ae2f6
Ensure UEFI log capabilities are set to false
This change corrects the supports_partial_access and appendable flags
for UEFI log evidence to ensure they are always set to false.
The agent was previously reporting that the UEFI event log supported
partial access and was appendable. This is incorrect because the UEFI
log is a complete, immutable record generated at boot time. It cannot be
appended to, nor can its entries be fetched partially after the boot
process is complete.
This change correctly sets these two boolean flags to false, aligning
the agent's reported capabilities with the actual behavior of UEFI event
logs.
Apart from that, added a new unit test, test_uefi_log_capabilities_flags,
to verify that these flags are correctly set to false when fetching
attestation data.
Co-Authored-By: Claude <[email protected]>
Signed-off-by: Sergio Arroutbi <[email protected]>1 parent cbce0e8 commit 62ae2f6
1 file changed
+50
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
| 170 | + | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
727 | 775 | | |
0 commit comments