]> git.proxmox.com Git - efi-boot-shim.git/commit
tpm: Don't log duplicate identical events
authorChris Coulson <chris.coulson@canonical.com>
Thu, 26 Sep 2019 19:01:01 +0000 (20:01 +0100)
committerPeter Jones <pjones@redhat.com>
Fri, 24 Jul 2020 00:53:24 +0000 (20:53 -0400)
commit58df8d745c6516818ba6ebfa8fe826702c1621a0
treeef3cbac40b73e2f0277f20235569598ae4d92b5b
parentd57e53f3bddc4bc7299b3d5efd5ba8c547e8dfa5
tpm: Don't log duplicate identical events

According to the comment in tpm_measure_variable ("Don't measure something that we've already measured"), shim
shouldn't measure duplicate events if they are identical, which also aligns with section 2.3.4.8 of the TCG PC
Client Platform Firmware Profile Specification ("If it has been measured previously, it MUST NOT be measured
again"). This is currently broken because tpm_data_measured() uses the return value of CompareGuid() incorrectly.

Upstream-commit-id: 103adc89ce5
tpm.c