Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3614655ybl; Mon, 19 Aug 2019 22:55:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9/QnqHZuDEgf/CJILPV0Tm5hqcEx11W7S/7kB0ofLh94IMo4N+i5zr/BY2HehXHMfAlPF X-Received: by 2002:a65:6850:: with SMTP id q16mr23753280pgt.423.1566280507636; Mon, 19 Aug 2019 22:55:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566280507; cv=none; d=google.com; s=arc-20160816; b=rAJBMcu07rgGJHuIASfL+iWicF8hKCSDG/KUnHT7uWcP/bGPXiHK9x7sIxjc0XM0QN zpihYLfb1Dm4UH91SJxV3YFW7/9pek/Gw+g0LO9p8cMD5wdUvo/vcjGXu2VqhYUrrr82 j2J7Xa+YjPU414rT31eTyTxm12FaZ4agrk6SiqAHCaj+NDK4QawUQmXsq/N/78WtbeKS FfCLDl5bVFmNsfU+BV/5hpyW1XsHkr/t4UzDTb6gLReKbPao/xE2wOyrz0SLviGq8Csv VzBxnMOCdhwP7DIExqxFrl37UWo3EkEBOCFaoZ2NZbkZLucOpNVj0NiOLLXCT7jxk2cD jaig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jowVXpXZgLEBuubaLIPC/QF8SFYMD8+3/TNrlzPJxE8=; b=SzsCBuxyO2erUiqYiipHLsWl3TDoePRnRrBRUNrYqkQgjo8N/Ocd136QI759CdrBBD 4dHgKaFl8qeaPdnDANbS4ph3r6LNEhi8/XHGFXWjE2Vk8/DJHzRkrIhRtRuVNSqXxELM Hu7Q22VSFVJV3YFJYN7I0mD4QGgaLa/eSU2PCO7sHlirsfE31/t/TSsadt7xnpovdLn2 19KnzdnqIt6eR7C37BcBPXxLbacuvzGym0dgFercwi9IcVDYUsjtMneLm1hs+Uv21rq7 diRIdsbXqT8CITZFhekzbdXXgP+qHBk9AMsMOKltxakGFqm1pXAejo8O02r+UqYV7tBN 0Mbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mBAWDpjT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 124si11622245pgd.142.2019.08.19.22.54.54; Mon, 19 Aug 2019 22:55:07 -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; dkim=pass header.i=@linaro.org header.s=google header.b=mBAWDpjT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726049AbfHTFyu (ORCPT + 99 others); Tue, 20 Aug 2019 01:54:50 -0400 Received: from mail-lf1-f49.google.com ([209.85.167.49]:38327 "EHLO mail-lf1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729024AbfHTFyu (ORCPT ); Tue, 20 Aug 2019 01:54:50 -0400 Received: by mail-lf1-f49.google.com with SMTP id h28so3144981lfj.5 for ; Mon, 19 Aug 2019 22:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jowVXpXZgLEBuubaLIPC/QF8SFYMD8+3/TNrlzPJxE8=; b=mBAWDpjTTfJVh3RC0922MA5+HowZtwi7RtzXrtoBI1p2A0G0YGWQXsIiSmuUuqYyCU MAyIWLCURsQlmS5RB3pHRhsabjxs0tQ/4YtoNmDgSGxpPYggJKJyeVZs7oThaxWQP8Ur YaZ2GhoxcFJjPekwgESCVZnPcqH5ldcWCjWaagKDoMMDrDsj+LD4Z8EvfU4PWOv2Ubwm lWFXcNFcNmAkglcGF5BU5vjQUtUTkTI2VE7CdEmu0B5ao5QZCjEiZWJDDqG5dXHVfLh+ ocmeghdQqT00z2j9smJzZApj6YMlQN+lUKqAF8lJAfaJlPX+3VyK0GBaUdH+szAJX/Vh PPUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jowVXpXZgLEBuubaLIPC/QF8SFYMD8+3/TNrlzPJxE8=; b=RNR5Q8pL9VMXUHvVlRXC9ok4nyT8fjMo77pRuo/oTC5DwKAlNAr0LZWt9WR/W+wBlV sGUX0xEAX53UqqwMXqu9zv2XDulsKtw8RRCh/Zh2XS4KXFWvJfHP9xEfS56etUqaEogV /pSF79GO+dLVMmQGaIy9c/zfoH0C1t51oJaxgN9HAP2Iyb2h3wc/JTr/GowTyYqJS+9D Qpfqp1158UOwbG2aOR2UHf7kMdzZSANToFmxaE8B+pVWpXai4eLELiLPkmDzLsDmQDZZ 7tN2+/f5YTmKcl0QB+3DmbfHyIs49wMaOp+FNyZO2CRaUICBBr/N3T0HNTLZsqUm6pl5 Lm3Q== X-Gm-Message-State: APjAAAUqMbl4VUA9pMveBrOcullMFYs4+S+3Wr5Kpvu258x3zVZHhhk8 CVHbjLc8iP5MiX7cn2HBmUWsoaw4SVhsEnl7EeTV4g== X-Received: by 2002:ac2:5c42:: with SMTP id s2mr14740567lfp.61.1566280488399; Mon, 19 Aug 2019 22:54:48 -0700 (PDT) MIME-Version: 1.0 References: <1565682784-10234-1-git-send-email-sumit.garg@linaro.org> <1565682784-10234-5-git-send-email-sumit.garg@linaro.org> <20190819170750.7cl7bdmtam3jras4@linux.intel.com> In-Reply-To: <20190819170750.7cl7bdmtam3jras4@linux.intel.com> From: Sumit Garg Date: Tue, 20 Aug 2019 11:24:37 +0530 Message-ID: Subject: Re: [RFC/RFT v4 4/5] KEYS: trusted: move tpm2 trusted keys code To: Jarkko Sakkinen Cc: keyrings@vger.kernel.org, linux-integrity@vger.kernel.org, "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , linux-security-module@vger.kernel.org, dhowells@redhat.com, Herbert Xu , davem@davemloft.net, peterhuewe@gmx.de, jgg@ziepe.ca, jejb@linux.ibm.com, Arnd Bergmann , Greg Kroah-Hartman , Mimi Zohar , James Morris , "Serge E. Hallyn" , Casey Schaufler , Ard Biesheuvel , Daniel Thompson , Linux Kernel Mailing List , "tee-dev @ lists . linaro . org" Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, 19 Aug 2019 at 22:37, Jarkko Sakkinen wrote: > > 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. > Okay. -Sumit > /Jarkko