From patchwork Fri Mar 31 05:57:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ivanhu X-Patchwork-Id: 1763588 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=fwts-devel-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=T7Of6cfv; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PnqLl4RYtz1yYb for ; Fri, 31 Mar 2023 16:57:18 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1pi7lC-0005wO-1C; Fri, 31 Mar 2023 05:57:14 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1pi7lA-0005wH-Ok for fwts-devel@lists.ubuntu.com; Fri, 31 Mar 2023 05:57:12 +0000 Received: from canonical.com (unknown [106.104.136.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 8C2023F123 for ; Fri, 31 Mar 2023 05:57:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1680242232; bh=Th23pS4Hds3RA2+IKnhhY6S1pKTrOJt5tyH4+9hp7wc=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=T7Of6cfvO4h1wbMr/V0MGHbceYB12wEms6WRdDh0zYF2YLDd9n3Vm1spHaF4jEGyh ss15OdC6yUUjSKYrdF9kMZnAhg5YThqFhXxc7rvoWRVGWgCoh/e3vLraQb1hJXdtP1 jJG1cClWLNKbCoVbEqBOZCV0mMitmGTKd5QvhmiAF9h5R7CWYKGXZSrYh05eG6/4ch g2ZwyVqRdaRROmnkpu4Za+2Vmk+oX8VvSbrQbJ5SZActJQK/01MUvsZ0Ffl3nKMMR/ tCJpJWRkFFfRTy1bXt6JHDflEVukKTLhHe75WzxTJzwnwd8vXdwqcpLLSB/5W9hCNu RUgIJpfUvxNfA== From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] dmicheck: extent the dmi_patterns for the default serial number string Date: Fri, 31 Mar 2023 13:57:02 +0800 Message-Id: <20230331055702.252232-1-ivan.hu@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: "fwts-devel" BugLink: https://bugs.launchpad.net/fwts/+bug/2013208 "Unspecified System Serial Number" should be checked as well. Signed-off-by: Ivan Hu --- src/dmi/dmicheck/dmicheck.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dmi/dmicheck/dmicheck.c b/src/dmi/dmicheck/dmicheck.c index ebfc0c94..a6f19932 100644 --- a/src/dmi/dmicheck/dmicheck.c +++ b/src/dmi/dmicheck/dmicheck.c @@ -154,6 +154,7 @@ static const fwts_dmi_pattern dmi_patterns[] = { { "DMISerialNumber", "Serial Number", "To Be Filled By O.E.M." }, { "DMISerialNumber", "Serial Number", "Unknow" }, { "DMISerialNumber", "Serial Number", "Unknown" }, + { "DMISerialNumber", "Serial Number", "Unspecified System Serial Number" }, { "DMISerialNumber", "Serial Number", "XXXXXXXXXXXX" }, { "DMISerialNumber", "Serial Number", "XXXXXXXXXXX" }, { "DMISerialNumber", "Serial Number", "XXXXXXXXXX" },