]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tpm2-util: give PCR 6 a name too
authorLennart Poettering <lennart@poettering.net>
Wed, 16 Aug 2023 15:25:05 +0000 (17:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Aug 2023 09:54:19 +0000 (11:54 +0200)
The specs call this TCG PC Client Platform Firmware Profile
Specification says this PCR is owned by the Host Platform Manufacturer,
at various places. Hence let's give it that name.

src/shared/tpm2-util.c
src/shared/tpm2-util.h

index 3f517d5919b0f4f8a7ac236305816210d06e04f1..1a3c162624c573c60076455255812632a25bf35e 100644 (file)
@@ -5008,6 +5008,7 @@ static const char* const pcr_index_table[_PCR_INDEX_MAX_DEFINED] = {
         [PCR_EXTERNAL_CONFIG]     = "external-config",
         [PCR_BOOT_LOADER_CODE]    = "boot-loader-code",
         [PCR_BOOT_LOADER_CONFIG]  = "boot-loader-config",
+        [PCR_HOST_PLATFORM]       = "host-platform",
         [PCR_SECURE_BOOT_POLICY]  = "secure-boot-policy",
         [PCR_KERNEL_INITRD]       = "kernel-initrd",
         [PCR_IMA]                 = "ima",
index 32da247c3771c6ae47621f993ee2afa6797b2830..7959a17b81ee8babf61ffb7746b8bf68ab52b07c 100644 (file)
@@ -308,6 +308,7 @@ enum {
         PCR_EXTERNAL_CONFIG     = 3,
         PCR_BOOT_LOADER_CODE    = 4,
         PCR_BOOT_LOADER_CONFIG  = 5,
+        PCR_HOST_PLATFORM       = 6,
         PCR_SECURE_BOOT_POLICY  = 7,
         /* The following names for PCRs 9…15 are based on the "Linux TPM PCR Registry"
         (https://uapi-group.org/specifications/specs/linux_tpm_pcr_registry/) */