summaryrefslogtreecommitdiffstats
path: root/src/fundamental
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-06-30 00:41:48 +0200
committerLuca Boccassi <bluca@debian.org>2023-06-30 18:17:56 +0200
commitd5f91cf79361cab58e32bf7b76c41ba244add75f (patch)
treec76efdaec0a15c5e84180dee893df18eb3a443ba /src/fundamental
parentukify: merge .sbat sections from stub and kernel (diff)
downloadsystemd-d5f91cf79361cab58e32bf7b76c41ba244add75f.tar.xz
systemd-d5f91cf79361cab58e32bf7b76c41ba244add75f.zip
boot: measure .sbat section
We are now merging .sbat sections from sd-stub and kernel image, so measure it in PCR11.
Diffstat (limited to 'src/fundamental')
-rw-r--r--src/fundamental/tpm-pcr.c1
-rw-r--r--src/fundamental/tpm-pcr.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/fundamental/tpm-pcr.c b/src/fundamental/tpm-pcr.c
index 0685d37b05..2f7e9b428d 100644
--- a/src/fundamental/tpm-pcr.c
+++ b/src/fundamental/tpm-pcr.c
@@ -12,6 +12,7 @@ const char* const unified_sections[_UNIFIED_SECTION_MAX + 1] = {
[UNIFIED_SECTION_SPLASH] = ".splash",
[UNIFIED_SECTION_DTB] = ".dtb",
[UNIFIED_SECTION_UNAME] = ".uname",
+ [UNIFIED_SECTION_SBAT] = ".sbat",
[UNIFIED_SECTION_PCRSIG] = ".pcrsig",
[UNIFIED_SECTION_PCRPKEY] = ".pcrpkey",
NULL,
diff --git a/src/fundamental/tpm-pcr.h b/src/fundamental/tpm-pcr.h
index 4989d93f0c..f8ed816894 100644
--- a/src/fundamental/tpm-pcr.h
+++ b/src/fundamental/tpm-pcr.h
@@ -30,6 +30,7 @@ typedef enum UnifiedSection {
UNIFIED_SECTION_SPLASH,
UNIFIED_SECTION_DTB,
UNIFIED_SECTION_UNAME,
+ UNIFIED_SECTION_SBAT,
UNIFIED_SECTION_PCRSIG,
UNIFIED_SECTION_PCRPKEY,
_UNIFIED_SECTION_MAX,