Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp754670pxa; Wed, 19 Aug 2020 14:04:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjtuX69KVJZS0duUXmMWyn7Y/UKrS4V/0ms9hGXyEsswWYMrZg+2kYeeXlgrFwGUwkQjll X-Received: by 2002:a50:ee04:: with SMTP id g4mr25830865eds.117.1597871049458; Wed, 19 Aug 2020 14:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597871049; cv=none; d=google.com; s=arc-20160816; b=HG/mXxqx2mJBaXcKv1CWgDrci2zp9Tz3UiS2RgNluBAuPCp0lvSDI7j6RuroAp02Eg 8ivv/m+jqa17MVx6JSyFU64PqaPaA6Bkc136mayCaJCgV2OLD604LqwgQq/LfbdFBETb k+DLwerr3Kei0fjOSP8vENSpxYmcVd9lYaGxIqHaz5uc3ZmbQjLVGTm843fQOxBCIcU4 ahrIDCW2w1thRyqMIGLdZoRyqwNIdPm3qRklX3n/CIfNLGg1TAMxCbsbFx17pwCpJ6z8 tv+Y+i2N3biVKDzty8FRbPMJhtmT9kviAUri3OuvzGsjk8rrOasb3zST5R+jK1xR4Kwc ouWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=1CH/Fh9uaVYo+21eXvQ4NMiKcWUGGPvmVZPvy778Xdg=; b=EufYZgkILljFbe0MKR6fZMXaj4WrbdaLC03M99Bjoak96ZTQTERRGh4QyXCQ4nO6WX 3LfOA6hmqOlCOy0JdcNXIl/pfVvWpVjjxBHs2PC3FIiVUXuN1JwU8izrNBb/4MmZtRhG cLzVdCpyudAA0FB3MEYsHO9UdCK4dyg7zcMKOsobj6pBn08tG0QWYRodAIG11+3nWsFa Z/k1QOMAwdWriTJfDVEljksVZeIxJZ5I7GgGa8Eh8dIdwtoTjYxoK+nsc6tsqmB+8Urj CJmGwS7nWycqnPhdMIMKeLIpHtxMWQ2DLFh63kmTna1kksfXsVhfIGu6beBo3kXuGsVr 3PUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id oz27si15854433ejb.27.2020.08.19.14.03.45; Wed, 19 Aug 2020 14:04:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727093AbgHSVCk (ORCPT + 99 others); Wed, 19 Aug 2020 17:02:40 -0400 Received: from mga14.intel.com ([192.55.52.115]:29543 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725275AbgHSVCj (ORCPT ); Wed, 19 Aug 2020 17:02:39 -0400 IronPort-SDR: VoSWgiOfmsgktYujjmhu2NltbWaDAvItNfcIuPb2MBbPyDvIj8Qrl7e8J1XzLJto0EjcdIF3gd 4qBo0OgUj4IA== X-IronPort-AV: E=McAfee;i="6000,8403,9718"; a="154460071" X-IronPort-AV: E=Sophos;i="5.76,332,1592895600"; d="scan'208";a="154460071" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2020 14:02:38 -0700 IronPort-SDR: 0Yqr6WirhGtPp3nZaOvCaw5me76ITpDhOkoyNUDuA/FxcM+wT0Ov/0tZW5UsLLVLCJ/g6dBFLw qkVfa5iVxYfw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,332,1592895600"; d="scan'208";a="472380103" Received: from pbooyens-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.52.107]) by orsmga005.jf.intel.com with ESMTP; 19 Aug 2020 14:02:35 -0700 Date: Thu, 20 Aug 2020 00:02:34 +0300 From: Jarkko Sakkinen To: Coly Li Cc: keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Williams , James Bottomley , Mimi Zohar , Stefan Berger Subject: Re: [PATCH v3] docs: trusted-encrypted.rst: update parameters for command examples Message-ID: <20200819210234.GB9942@linux.intel.com> References: <20200818170002.38145-1-colyli@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200818170002.38145-1-colyli@suse.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 19, 2020 at 01:00:02AM +0800, Coly Li wrote: > The parameters in command examples for tpm2_createprimary and > tpm2_evictcontrol are outdated, people (like me) are not able to create > trusted key by these command examples. > > This patch updates the parameters of command example tpm2_createprimary > and tpm2_evictcontrol in trusted-encrypted.rst. With Linux kernel v5.8 > and tpm2-tools-4.1, people can create a trusted key by following the > examples in this document. > > Signed-off-by: Coly Li > Cc: Dan Williams > Cc: James Bottomley > Cc: Jarkko Sakkinen > Cc: Mimi Zohar > Cc: Stefan Berger OK, now it is clear. Thank you. Reviewed-by: Jarkko Sakkinen /Jarkko > --- > Changelog: > v3: update commit log with review comments from Jarkko Sakkinen. > v2: remove the change of trusted key related operation. > v1: initial version. > > Documentation/security/keys/trusted-encrypted.rst | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/Documentation/security/keys/trusted-encrypted.rst b/Documentation/security/keys/trusted-encrypted.rst > index 9483a7425ad5..1da879a68640 100644 > --- a/Documentation/security/keys/trusted-encrypted.rst > +++ b/Documentation/security/keys/trusted-encrypted.rst > @@ -39,10 +39,9 @@ With the IBM TSS 2 stack:: > > Or with the Intel TSS 2 stack:: > > - #> tpm2_createprimary --hierarchy o -G rsa2048 -o key.ctxt > + #> tpm2_createprimary --hierarchy o -G rsa2048 -c key.ctxt > [...] > - handle: 0x800000FF > - #> tpm2_evictcontrol -c key.ctxt -p 0x81000001 > + #> tpm2_evictcontrol -c key.ctxt 0x81000001 > persistentHandle: 0x81000001 > > Usage:: > -- > 2.26.2 >