Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp491885imu; Thu, 8 Nov 2018 11:09:36 -0800 (PST) X-Google-Smtp-Source: AJdET5dmJlEz14G45N8DgLxX+nI/ErkmZ7a11slchRWqtb0GpROWfa9vpTdT9U39e3EFtR8OVEPv X-Received: by 2002:a63:77ce:: with SMTP id s197mr4753059pgc.89.1541704175948; Thu, 08 Nov 2018 11:09:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541704175; cv=none; d=google.com; s=arc-20160816; b=WArPCP8eZiWbYJIctEF0MaSfthnkv4C7xoe+ge4R7mW+FvYyR/J/P6R9pznKmphK8I VoMpnnbB/24A1qXYnRSd8cF3nrArgf5MxyFd5kJTL98UP7N12Uy3Gh/qYnMwR4mc8KBE 2RcOMK0AzWSWfX+/85xE8dmQCBEi5QXeO23dUGTUQ8RRidZ5cT/+aVyQXbSJ4YvQqTo/ lKMhJhA81jvIUxQE3MIyMpHaLjRvY5ut7+uPbQ5t+QwQTH63rkKSU9juf5QmBf4ZRvBk BNXSJsRaRHf4dBaLUzYQHH3rqQ4TH5SJGPghpVEHffWpm9jcGruQGFKc9AZKvkdyxBqN wg8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=q/RTZ5vh2F4QKHMOk0aNJB7F4lwXGSp3DkbHpCYcvMo=; b=JkXJlM/4xz7ezAva6qVHGCooQKpSK21wjPovaBL59VeRfSL3d+AxkDT1cEsB3DCAks s4lafXCmYoADdf8YYZPKfMRhNDi1aWuSL6tmA2CFyJjaAZfowT3HDRQqOy8UJrvIsGZW HY+utWMu9Od3vLrgHWWYOutN/3h1AFicYY9m3DJfRByTX0LZy8Df3EZq/BkzVDy0w2h4 GsBf3CJX0mKuNl/F+qEYxfe4B5GkMP+ifKxHOG6xo7Wz0slX3esSh3zpgxtUzv860ZSZ KVa+5+J7ZlobNR4LrDNFFUbycuBC4i+DQR8BqnayqH34HO8vDcTquXLZsYRGaHyxJoTv 0XxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h16si4491321pgj.203.2018.11.08.11.09.19; Thu, 08 Nov 2018 11:09:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727084AbeKIEpc (ORCPT + 99 others); Thu, 8 Nov 2018 23:45:32 -0500 Received: from mga12.intel.com ([192.55.52.136]:53864 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726801AbeKIEpb (ORCPT ); Thu, 8 Nov 2018 23:45:31 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Nov 2018 11:08:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,480,1534834800"; d="scan'208";a="90556687" Received: from smartikx-mobl2.ger.corp.intel.com (HELO localhost) ([10.249.254.135]) by orsmga008.jf.intel.com with ESMTP; 08 Nov 2018 11:08:36 -0800 Date: Thu, 8 Nov 2018 21:08:35 +0200 From: Jarkko Sakkinen To: Peter Huewe Cc: Roberto Sassu , zohar@linux.ibm.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, silviu.vlasceanu@huawei.com Subject: Re: [PATCH v4 4/6] tpm: modify tpm_pcr_read() definition to pass a TPM hash algorithm Message-ID: <20181108190835.GF20608@linux.intel.com> References: <20181106150159.1136-1-roberto.sassu@huawei.com> <20181106150159.1136-5-roberto.sassu@huawei.com> <20181108140454.GE8922@linux.intel.com> <7a43680a-a216-a191-62a3-c2fb4e72d699@huawei.com> <20181108151504.GD14072@linux.intel.com> <289C0413-4FFB-4831-B82A-D0C3A965053D@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <289C0413-4FFB-4831-B82A-D0C3A965053D@gmx.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 08, 2018 at 04:19:09PM +0100, Peter Huewe wrote: > > > Am 8. November 2018 16:15:04 MEZ schrieb Jarkko Sakkinen : > >On Thu, Nov 08, 2018 at 03:16:03PM +0100, Roberto Sassu wrote: > >> On 11/8/2018 3:04 PM, Jarkko Sakkinen wrote: > >> > On Tue, Nov 06, 2018 at 04:01:57PM +0100, Roberto Sassu wrote: > >> > > Currently the TPM driver allows other kernel subsystems to read > >only the > >> > > SHA1 PCR bank. This patch modifies the parameters of > >tpm_pcr_read() and > >> > > tpm2_pcr_read() to pass a tpm_digest structure, which contains > >the desired > >> > > hash algorithm. Also, since commit 125a22105410 ("tpm: React > >correctly to > >> > > RC_TESTING from TPM 2.0 self tests") removed the call to > >tpm2_pcr_read(), > >> > > the new parameter is expected to be always not NULL. > >> > > > >> > > Due to the API change, IMA functions have been modified. > >> > > > >> > > Signed-off-by: Roberto Sassu > >> > > Acked-by: Mimi Zohar > >> > > >> > Does not apply to the current upstream (with tpm1-cmd.c). > >> > >> Unfortunately, I cannot fetch the repository as infradead.org only > >> supports the git protocol (I'm behind a proxy). > >> > >> Roberto > > > >I use a proxy script similar to this: > > > >https://gist.github.com/sit/49288 > > > >(random googling but gives the idea) > > > >/Jarkko > Moving to a kernel.org repo would be really a benefit or convincing them to have a https interface as well. > We have the same proxy issue with infradead. > Peter > -- > Sent from my mobile So you are unable to use core.gitproxy to configure the proxy? /Jarkko