Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1119505ybg; Tue, 2 Jun 2020 01:43:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHGw3GtXZyB2Jrp8sCnfcld8nwl8vANI96YugK22fCimMuogEcJqjTSzco5ZklbHCsin9W X-Received: by 2002:a17:906:7746:: with SMTP id o6mr8227267ejn.75.1591087381033; Tue, 02 Jun 2020 01:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591087381; cv=none; d=google.com; s=arc-20160816; b=sLuc7wFnrxZwc+XbRyIv/vEINwxQMUn6Fc+h2Mcue7ehx7LF8GOrZ/4TcZLdwVI+YS lXfzjpgwfKmFAKQpNLsjHw34uih9KEF+NFa/RRzDA1JQURpnqCNXg7/81SJsJ8jlzCcQ r4SoBlUgsuJAtlKIjZJebXI/zgWoqZAuz3XaXhqxSbYKFE/Ty++W3Ki3+L1TTGj0hYXo 1Vc7HWxDXakHq1jh/sz60065bZr6fk9KyEaiCiPFnJVX/nqO5z2yQajUV3gWf4ttUzXD wGbo0jKqNVX43QXjErnLpGryifv1BCVQTkryfGX4cLJ3ES5jhtFTr5Ld/HJsRjSd3BjJ nl6w== 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=Ba7tS1EJd6J4rrFJlCgFQCMg5mXZk8lm0TUhKeqkFLg=; b=qxD7ji49QWy6qZcSY7JdXvzc61qeDAqAH1ubHhhjo3IqZcA+hPOUxEXGDsOClMq7eG zdBVKzK079uTtUI+vQPLC05VDJTpUSSXBT5K6wffDQh7uyYnnhaxgulqDXQtCgFLId33 jG1+EngesHtJ+l68rf3EJyTNuNrbdqomqWLuSfLZEWFOIHkSMEUlyZxmB04ZVNTWP59A QYvd1TVREQI5+6tHndGvFP3NSaa5Cp68+BEvPhhpbXmrBF58QcHqu/tbCtm71PqQTd1m WDqZRhlmZa7Cf4DuBMK7MFK4r9MErosWHEevx5BmCvqg8ZcDig/D5gr7FysZeW43r88N FJGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DaRRRUXP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si1091286ejd.215.2020.06.02.01.42.38; Tue, 02 Jun 2020 01:43:01 -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; dkim=pass header.i=@linaro.org header.s=google header.b=DaRRRUXP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726420AbgFBIkv (ORCPT + 99 others); Tue, 2 Jun 2020 04:40:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbgFBIku (ORCPT ); Tue, 2 Jun 2020 04:40:50 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 722E9C05BD43 for ; Tue, 2 Jun 2020 01:40:50 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id z9so892335ljh.13 for ; Tue, 02 Jun 2020 01:40:50 -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=Ba7tS1EJd6J4rrFJlCgFQCMg5mXZk8lm0TUhKeqkFLg=; b=DaRRRUXPe+h4lT7HKYjlwOZPLtpKjj5wrJfc7A/FfABHr7pqA6sBVcDxFpYhyNGX2f mhQciVg9mJcl5lbwYvIUHYTLOz+H/JseFNTfhgEH1PUTCmGJfi2vmR2tmRbnXSyFTDE4 w4eCcHJwLE+Jelj9ifdDTlnu0lIKZx10kGWKP+LOH+aLlwER7WRXA5g20mnYOxnaNwWm 3M56FsBpyAAfxXgbKJti+9pbhLY8t86m4/VdbDv6kUVoyahF+iMYkTHJDo4u8M+83rUy MafhdMblZid34Foa6n+p2WuWVyEuwMjkPZdBGHlFOS0Ezjf8cSGe7D1etislzBDLC4++ g6iQ== 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=Ba7tS1EJd6J4rrFJlCgFQCMg5mXZk8lm0TUhKeqkFLg=; b=h32XOkQSU8CnOQPzxDtW0s1706DyPliawd28/UnW1b4x3CN6C1ZRYkk5gHiGcrOVf+ JVKZe8kR1MP49oT/liYCZMSyLsUdOn3Y3EUlJs2QW9wTKQo9VsbROeQKGglkdGQkdhI8 PbnBF8XFhLKsQgBjSfC7Ry//qu6tYdkt/Zw3CjnU6zQidIC+J1f8Nee3DFLgrWyc41qN lypXhB7Ujpmbe336gUjdP8n3bUbjm/w4cvM6CZmaRKO6L5x2lOPp2EWKgUAiKvcv73Y7 eCeLH2z1Qx8peWNooK9C0aGTMZhzgQ7EgC1zFVTlfTLcL8q6R+Z7Pz2z5o/+TCG0R+Fu pgeA== X-Gm-Message-State: AOAM530pKORmaNay+PO4xExWN4gcR8rcbAJSim8ADTWpKORc2KQj3N/Z rA5KPW4qdgwuzQrBMGJPm/yY2Ak1vMHLCPLIzgVo6A== X-Received: by 2002:a2e:81c5:: with SMTP id s5mr11803430ljg.372.1591087248899; Tue, 02 Jun 2020 01:40:48 -0700 (PDT) MIME-Version: 1.0 References: <1588758017-30426-1-git-send-email-sumit.garg@linaro.org> <1588758017-30426-2-git-send-email-sumit.garg@linaro.org> <20200601021132.GA796225@linux.intel.com> <20200602071407.GB16602@linux.intel.com> In-Reply-To: <20200602071407.GB16602@linux.intel.com> From: Sumit Garg Date: Tue, 2 Jun 2020 14:10:37 +0530 Message-ID: Subject: Re: [PATCH v4 1/4] KEYS: trusted: Add generic trusted keys framework To: Jarkko Sakkinen Cc: Mimi Zohar , James Bottomley , dhowells@redhat.com, Jens Wiklander , Jonathan Corbet , James Morris , "Serge E. Hallyn" , Casey Schaufler , Janne Karhunen , Daniel Thompson , Markus Wamser , "open list:ASYMMETRIC KEYS" , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, Linux Doc Mailing List , Linux Kernel Mailing List , linux-arm-kernel , op-tee@lists.trustedfirmware.org, "tee-dev @ lists . linaro . org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Jun 2020 at 12:44, Jarkko Sakkinen wrote: > > On Mon, Jun 01, 2020 at 02:41:55PM +0530, Sumit Garg wrote: > > > This, I think is wrong. You should have a compile time flag for TPM e.g. > > > CONFIG_TRUSTED_TPM, not this dynamic mess. > > > > > > > The whole idea to have it dynamic was to have a common trusted keys > > module which could support both TPM and TEE implementation depending > > on hardware. I guess it may be useful in scenarios where a particular > > hardware supports a TPM chip while other doesn't but both need to run > > a common kernel image. > > For now it should only scale to what is needed. No problems refining > it later when there is something to enable. > Fair enough, will switch to compile time mode then. -Sumit > /Jarkko