From patchwork Fri Sep 6 06:59:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 273095 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id CCB582C00EE for ; Fri, 6 Sep 2013 17:00:01 +1000 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1VHq1Q-000285-L2; Fri, 06 Sep 2013 07:00:00 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1VHq1L-00027r-1b for fwts-devel@lists.ubuntu.com; Fri, 06 Sep 2013 06:59:55 +0000 Received: from [175.41.48.77] (helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1VHq1K-0004nw-EG; Fri, 06 Sep 2013 06:59:55 +0000 From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH 3/3] [RESEND] uefi: uefidump: Add support for VendorKeys Date: Fri, 6 Sep 2013 14:59:50 +0800 Message-Id: <1378450790-20650-1-git-send-email-ivan.hu@canonical.com> X-Mailer: git-send-email 1.7.9.5 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com From: IvanHu The VendorKeys variable is an 8-bit unsigned integer that defines whether the PK, KEK, db and dbx databases have been modified by anyone other than the platform vendor or a holder of the vendor-provided keys. This variable is new added to the UEFI spec version 2.4. Signed-off-by: Ivan Hu Acked-by: Colin Ian King Acked-by: Keng-Yu Lin --- src/uefi/uefidump/uefidump.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/uefi/uefidump/uefidump.c b/src/uefi/uefidump/uefidump.c index 2a34d8e..7dd9683 100644 --- a/src/uefi/uefidump/uefidump.c +++ b/src/uefi/uefidump/uefidump.c @@ -723,6 +723,13 @@ static void uefidump_info_osindications_supported(fwts_framework *fw, fwts_uefi_ } } +static void uefidump_info_vendor_keys(fwts_framework *fw, fwts_uefi_var *var) +{ + uint8_t value = (uint8_t)var->data[0]; + + fwts_log_info_verbatum(fw, " Value: 0x%2.2" PRIx8 ".", value); +} + static uefidump_info uefidump_info_table[] = { { "PlatformLangCodes", uefidump_info_platform_langcodes }, { "PlatformLang", uefidump_info_platform_lang }, @@ -749,6 +756,7 @@ static uefidump_info uefidump_info_table[] = { { "SignatureSupport", uefidump_info_signature_support }, { "HwErrRecSupport", uefidump_info_hwerrrec_support }, { "OsIndicationsSupported", uefidump_info_osindications_supported }, + { "VendorKeys", uefidump_info_vendor_keys }, { NULL, NULL } };