From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932125AbbKBRoU (ORCPT ); Mon, 2 Nov 2015 12:44:20 -0500 Received: from mga09.intel.com ([134.134.136.24]:54270 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754392AbbKBRoP (ORCPT ); Mon, 2 Nov 2015 12:44:15 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,234,1444719600"; d="scan'208";a="840810191" Date: Mon, 2 Nov 2015 19:44:08 +0200 From: Jarkko Sakkinen To: Mimi Zohar Cc: Peter Huewe , Marcel Selhorst , David Howells , tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, chris.j.arges@canonical.com, seth.forshee@canonical.com, colin.king@canonical.com, josh@joshtriplett.org, Jason Gunthorpe , David Safford , James Morris , "Serge E. Hallyn" Subject: Re: [PATCH RFC] tpm: seal with a policy Message-ID: <20151102174408.GB3982@intel.com> References: <1446306824-25175-1-git-send-email-jarkko.sakkinen@linux.intel.com> <1446468522.2789.7.camel@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1446468522.2789.7.camel@linux.vnet.ibm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 02, 2015 at 07:48:42AM -0500, Mimi Zohar wrote: > On Sat, 2015-10-31 at 17:53 +0200, Jarkko Sakkinen wrote: > > Support for sealing with a policy. > > > > Two new options for trusted keys: > > > > * 'policydigest=': provide a policydigest for the seal operation. > > * 'policyhandle=': provide handle for a policy session for unsealing. > > Please expand the patch description explaining the motivation for these > new options. In what cases are they needed? Are they system or session > policies? They are session policies. By using TPM2 commands you can specify conditions in which unseal should work like auth value, PCRs, localities and so forth and combine these with logical connectors. I'll think about this and write proper documentation. > Mimi /Jarkko