From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6887C7618B for ; Wed, 24 Jul 2019 07:16:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 90AEA21951 for ; Wed, 24 Jul 2019 07:16:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726067AbfGXHQu (ORCPT ); Wed, 24 Jul 2019 03:16:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:49814 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726038AbfGXHQt (ORCPT ); Wed, 24 Jul 2019 03:16:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BBA2BAD17; Wed, 24 Jul 2019 07:16:48 +0000 (UTC) Date: Wed, 24 Jul 2019 09:16:53 +0200 From: Petr Vorel To: Mimi Zohar Cc: linux-integrity@vger.kernel.org, Vitaly Chikunov , "Bruno E . O . Meneguele" , Dmitry Eremin-Solenikov Subject: Re: [PATCH v3] ima-evm-utils: use tsspcrread to read the TPM 2.0 PCRs Message-ID: <20190724071653.GA21085@dell5510> Reply-To: Petr Vorel References: <1563913626-28061-1-git-send-email-zohar@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1563913626-28061-1-git-send-email-zohar@linux.ibm.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org Hi Mimi, > The kernel does not expose the crypto agile TPM 2.0 PCR banks to > userspace like it exposes PCRs for TPM 1.2. As a result, a userspace > application is required to read PCRs. > This patch adds tsspcrread support for reading the TPM 2.0 PCRs. > tsspcrread is one application included in the ibmtss package. > Sample error messages: > Failed to read PCRs: (tsspcrread failed: No such file or directory) > Failed to read PCRs: (TSS_Dev_Open: Error opening /dev/tpmrm0) > Signed-off-by: Mimi Zohar Reviewed-by: Petr Vorel Kind regards, Petr