[PATCH 3/3] [RESEND] uefi: uefidump: Add support for VendorKeys
Keng-Yu Lin
kengyu at canonical.com
Mon Sep 9 02:21:10 UTC 2013
On Fri, Sep 6, 2013 at 2:59 PM, Ivan Hu <ivan.hu at canonical.com> wrote:
> From: IvanHu <ivan.hu at canonical.com>
>
> 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 <ivan.hu at canonical.com>
> ---
> 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 }
> };
>
> --
> 1.7.9.5
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>
More information about the fwts-devel
mailing list