From patchwork Wed Sep 20 08:13:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Thi=C3=A9baud_Weksteen?= X-Patchwork-Id: 9961091 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5BD2F60234 for ; Wed, 20 Sep 2017 08:15:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C0E128FFA for ; Wed, 20 Sep 2017 08:15:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40BEC28FFD; Wed, 20 Sep 2017 08:15:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC66C29009 for ; Wed, 20 Sep 2017 08:15:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751871AbdITIOR (ORCPT ); Wed, 20 Sep 2017 04:14:17 -0400 Received: from mail-wr0-f201.google.com ([209.85.128.201]:43171 "EHLO mail-wr0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751809AbdITIOL (ORCPT ); Wed, 20 Sep 2017 04:14:11 -0400 Received: by mail-wr0-f201.google.com with SMTP id w12so190272wrc.2 for ; Wed, 20 Sep 2017 01:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:date:in-reply-to:message-id:references:subject:from:to :cc; bh=i/y6ftxsPJ0TbfUGNUbYRPAaGrJ6Pu+aLiQ6ixqV/yU=; b=OXWz9VIof9tlnQmmYBadPKqwSpw9fipG+xIR4usWtcuCzLFvVOE38dTYdfFd8s18nO WGIYadYlT/47LNJR5bmKoR64SPQG0tQIZmT+Ukpk41UkoZ+pk6H/+rW/af6lS0qM7BFY KbhN/G6qR/wNr6otIwL1fziR1LtTZy12reCm+ZSBsagfzoNnI9pPCaUAP93GdQzr6hLo ZmVTyIl2fh1hZK+7OvyvM+lY02Kfb9/83mWmAr2Xtycob1USXeqpHb4nbGHgKt0+Ls5X T7aazB9Rc2sBqh8w3/Gyh1wb0fbrIQJ4ISva0M90F9rC2M8FkXHNfRT6uA872ppe5F0u /MIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id :references:subject:from:to:cc; bh=i/y6ftxsPJ0TbfUGNUbYRPAaGrJ6Pu+aLiQ6ixqV/yU=; b=oEgx5D+qZkMmhcM6m0yFveO7wGwgQZl2Z31Q3op1jTSW6rDC8uvPH/9Z+8BHqi8Txk MXXwJRYIghxfhOa7rC4S+0pqxEQMFVeX/yP+duIlnXHtengg2C9Ar5jXawtEJejhMzcN YjpA+voRlp5p8yF47BWZbtyjbl/xD2wnNruiwcXX8wqTdbH2fa7K3o5veIOlu4692cbP 3Xj+ANjsNe1wDSSEIWjlsb360RSZO6S70F9KChKjPXp/FDNJ3QwpDISD3y4etcnXbvqv EE0iIx94Rr3C85EvD/7ktEHzimsAu6VK/QftncyPhUSvga6X88qM0REcvKXPqCfwbkS3 ZhWA== X-Gm-Message-State: AHPjjUhtVsoGeYEq9ax6VSYh1B9sKF5IDiEFBZt9z99O/xBjTW4a5yuh EjpysUmMuzI0TufCHAvdbgM3tMUt2Q== X-Google-Smtp-Source: AOwi7QD7Mo+luwqPsscFVOeqkQ1kcqYljbJjNSRsw6I8gvme/qM8QqrCP9LYvBw/0Qn1JA3GguEzZDTjjQ== MIME-Version: 1.0 X-Received: by 10.28.135.132 with SMTP id j126mr365480wmd.0.1505895249993; Wed, 20 Sep 2017 01:14:09 -0700 (PDT) Date: Wed, 20 Sep 2017 10:13:38 +0200 In-Reply-To: <20170920081340.7413-1-tweek@google.com> Message-Id: <20170920081340.7413-4-tweek@google.com> References: <20170920081340.7413-1-tweek@google.com> X-Mailer: git-send-email 2.14.1.821.g8fa685d3b7-goog Subject: [PATCH v3 3/5] tpm: add event log format version From: Thiebaud Weksteen To: linux-efi@vger.kernel.org, linux-integrity@vger.kernel.org, tpmdd-devel@lists.sourceforge.net Cc: ard.biesheuvel@linaro.org, matt@codeblueprint.co.uk, linux-kernel@vger.kernel.org, mjg59@google.com, peterhuewe@gmx.de, jarkko.sakkinen@linux.intel.com, jgunthorpe@obsidianresearch.com, tpmdd@selhorst.net, Thiebaud Weksteen Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Although defined as part of the TCG EFI specification, we add these definitions here so that any event log provider may reference them. Signed-off-by: Thiebaud Weksteen --- include/linux/tpm_eventlog.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/tpm_eventlog.h b/include/linux/tpm_eventlog.h index 446656d1f317..6337614b0855 100644 --- a/include/linux/tpm_eventlog.h +++ b/include/linux/tpm_eventlog.h @@ -8,6 +8,9 @@ #define ACPI_TCPA_SIG "TCPA" /* 0x41504354 /'TCPA' */ #define TPM2_ACTIVE_PCR_BANKS 3 +#define EFI_TCG2_EVENT_LOG_FORMAT_TCG_1_2 0x1 +#define EFI_TCG2_EVENT_LOG_FORMAT_TCG_2 0x2 + #ifdef CONFIG_PPC64 #define do_endian_conversion(x) be32_to_cpu(x) #else