]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pcrlock: decode new smbios events
authorLennart Poettering <lennart@amutable.com>
Thu, 21 May 2026 16:16:45 +0000 (18:16 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 21 May 2026 20:44:06 +0000 (21:44 +0100)
src/pcrlock/pcrlock.c

index fa2ee54c5756d2865b6ecf72cbdf3403503cdb5e..cfdf0f59612d8c146fe6f8ccc07efa85b54e145c 100644 (file)
@@ -744,6 +744,23 @@ static int event_log_record_extract_firmware_description(EventLogRecord *rec) {
                                 break;
                         }
 
+                        /* SMBIOS structures measured by sd-boot/sd-stub. The tagged event payload is just a
+                         * constant identifying string ("smbios:typeN"), hence don't show it. */
+                        case SMBIOS_TYPE1_EVENT_TAG_ID:
+                                if (!strextend_with_separator(&rec->description, ", ", "systemd: SMBIOS system information (type 1)"))
+                                        return log_oom();
+                                break;
+
+                        case SMBIOS_TYPE2_EVENT_TAG_ID:
+                                if (!strextend_with_separator(&rec->description, ", ", "systemd: SMBIOS baseboard information (type 2)"))
+                                        return log_oom();
+                                break;
+
+                        case SMBIOS_TYPE11_EVENT_TAG_ID:
+                                if (!strextend_with_separator(&rec->description, ", ", "systemd: SMBIOS OEM strings (type 11)"))
+                                        return log_oom();
+                                break;
+
                         default: {
                                 _cleanup_free_ char *s = NULL;