From: Luca Boccassi Date: Sun, 23 Apr 2023 17:33:24 +0000 (+0100) Subject: stub: add comment on measurement of io.systemd.stub.kernel-cmdline-extra X-Git-Tag: v254-rc1~663 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54e4b42fded7820654ccd95dfe076b274d84757d;p=thirdparty%2Fsystemd.git stub: add comment on measurement of io.systemd.stub.kernel-cmdline-extra --- diff --git a/src/boot/efi/stub.c b/src/boot/efi/stub.c index 6339d82ddc8..eb4bd77ac3c 100644 --- a/src/boot/efi/stub.c +++ b/src/boot/efi/stub.c @@ -277,6 +277,7 @@ static EFI_STATUS run(EFI_HANDLE image) { mangle_stub_cmdline(cmdline); } + /* SMBIOS strings are measured in PCR1, so we do not re-measure these command line extensions. */ const char *extra = smbios_find_oem_string("io.systemd.stub.kernel-cmdline-extra"); if (extra) { _cleanup_free_ char16_t *tmp = TAKE_PTR(cmdline), *extra16 = xstr8_to_16(extra);