Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2974962ybl; Mon, 19 Aug 2019 10:08:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKZYLNu8nd2nTFsy3Vkt5U9MstnJWy+caUARH7w3bJH/y+53UWbix/1pMcPRlcjURP/bIB X-Received: by 2002:a17:902:566:: with SMTP id 93mr23902082plf.172.1566234505733; Mon, 19 Aug 2019 10:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566234505; cv=none; d=google.com; s=arc-20160816; b=LyXQ4u2DpslcNJ3TYiDx1sz7xWZBg2bBMT1Kdpu9bTfcOt0tNeTjpkNKHODYtWMWWv XqaYsMXurwggusslFGMwirtQnCHcdQL/PVFZWI7aVXHD9IfSApAYbrDR5UfLJIGai7Vg 3wNeNbctIoNQulX/HNgCXtvgs+fhZya95t12d+QQcQxrikcN6kpYZsPdm//MTolmRh8M niV9VjqrHhmaeni1hS83VoZ/vF2in+Bn/q711Rm55XCOXGqniNiSF9oNVH+sU8qpil5h jSIa2E8bgIV/TvK47EqFyuq7ib9i+qAKVftY4E3VU/cijGVPXEKbCn95l6qGxcfJcvOU pH7A== 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=gOJ3RxNyhqrQ4oc/+lvSXvh4LRo1vEL9qFUTRz3DtaA=; b=UUguNN56no2ED5kl9HazElPdySR9F5bmBs39h3LgaZcHpuXfySBN0GmD9+5wHwfjMf K978aaF/CCESRH/5Qb9bRow/ar8sZWRP7BTtsHRenjYpv6OJBqlqRHK5GAp69JFThm1u IA5UpB5qP7AwBeTr0jV8mSOGEkO4TacApUO/Qh9lMybb792Cnqyv+B9uBYE8PCudUS1f 44IzTyJsvcSr23iMO1YdqIVGB+J8VlpFbEvYwH6/Rb/XSDFxpxuMJ+FP/p9fiJl6GnLH xQNtC85R0f1kWjS9RuMmMWxGDSk675+4Ukncqrq8Fwytd3EbeVnVMkb5JIdK9EwHVbp3 merA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 b96si9174407plb.56.2019.08.19.10.08.11; Mon, 19 Aug 2019 10:08:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 S1727424AbfHSRH6 (ORCPT + 99 others); Mon, 19 Aug 2019 13:07:58 -0400 Received: from mga17.intel.com ([192.55.52.151]:27377 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726987AbfHSRH6 (ORCPT ); Mon, 19 Aug 2019 13:07:58 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Aug 2019 10:07:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,405,1559545200"; d="scan'208";a="353304889" Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.125]) by orsmga005.jf.intel.com with ESMTP; 19 Aug 2019 10:07:50 -0700 Date: Mon, 19 Aug 2019 20:07:50 +0300 From: Jarkko Sakkinen To: Sumit Garg Cc: keyrings@vger.kernel.org, linux-integrity@vger.kernel.org, linux-crypto@vger.kernel.org, linux-security-module@vger.kernel.org, dhowells@redhat.com, herbert@gondor.apana.org.au, davem@davemloft.net, peterhuewe@gmx.de, jgg@ziepe.ca, jejb@linux.ibm.com, arnd@arndb.de, gregkh@linuxfoundation.org, zohar@linux.ibm.com, jmorris@namei.org, serge@hallyn.com, casey@schaufler-ca.com, ard.biesheuvel@linaro.org, daniel.thompson@linaro.org, linux-kernel@vger.kernel.org, tee-dev@lists.linaro.org Subject: Re: [RFC/RFT v4 4/5] KEYS: trusted: move tpm2 trusted keys code Message-ID: <20190819170750.7cl7bdmtam3jras4@linux.intel.com> References: <1565682784-10234-1-git-send-email-sumit.garg@linaro.org> <1565682784-10234-5-git-send-email-sumit.garg@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1565682784-10234-5-git-send-email-sumit.garg@linaro.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: NeoMutt/20180716 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Aug 13, 2019 at 01:23:03PM +0530, Sumit Garg wrote: > Move TPM2 trusted keys code to trusted keys subsystem. The reason > being it's better to consolidate all the trusted keys code to a single > location so that it can be maintained sanely. > > Suggested-by: Jarkko Sakkinen > Signed-off-by: Sumit Garg > --- > drivers/char/tpm/tpm-chip.c | 1 + > drivers/char/tpm/tpm-interface.c | 56 ----- > drivers/char/tpm/tpm.h | 16 -- > drivers/char/tpm/tpm2-cmd.c | 308 +----------------------- > include/keys/trusted_tpm.h | 7 + > include/linux/tpm.h | 56 +++-- > security/keys/trusted-keys/Makefile | 1 + > security/keys/trusted-keys/trusted-tpm2.c | 378 ++++++++++++++++++++++++++++++ Would prefer trusted_tpm2.c. /Jarkko