Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp927744ybk; Wed, 13 May 2020 17:27:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzibuZYr6X8aIYZL8D37UnW1SXjB54S5amKWVXd8t3qaKrzfba+R+bPlRcIaXc5Yn5rLk0Z X-Received: by 2002:a17:906:304d:: with SMTP id d13mr1427363ejd.159.1589416036270; Wed, 13 May 2020 17:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589416036; cv=none; d=google.com; s=arc-20160816; b=Kg4g3dHO4R/+JYhxYNowtgEGws173AE1l1xx8pesbhLDx3WAFiRWFP/kTcjUridk7c GZVKlT8OD/ckX3TWspgdTh+Q8D3bB+LQ8lO6xuU4fD02aqF8LEoMV8gI600b8m+hIbEO evkuMqbnUwXJHiVzr6NVhacgEIRTcv5nyH16mCHx+Qqx8SL+PMsEMBT6eTyGwZHKJia0 TJNuf0sOrpwSx/oGZAh/J9tRhzyedrZ+ECBGqBqeVgAREkRoinRb7cgQBXq/KblErzvz XGPrQhHQdSYwfesFYvI2yOi88N5HmeluOvBfX7uBz7bPzqH4i6Ubhs0Gec7CwTKfkkNO 1Enw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id:ironport-sdr:ironport-sdr; bh=2fdXRzI+i7ZnqVk5tbBSzhFwI3AFKuE1oPJ0U8PnA7Y=; b=eGdS005G74l37hmowXZ73NL7OQmTr+Rv+dHuZTEnEIKxBH5own0J3e2g4wfXfokD79 lHTN7cAcJauLwP3kTzPSrRJnRrUjjo+3KJQnCg8D7rQeafLX+F4LTVYswO8lat76ibgk suionlt3PTjCkB8o0Y9m4swoIGsNGXAteLevAEOnW6E7FNTuvXR19UqS8YBwhaL82htB oIR6/lYKV9Ty/v0uy4cBopBRjcuKvn4tR+NfQ1nIhZHCODsidOWjX3dQD7fy028Tnvsl ed6rm5WREObY7XQZFZ5SOtthdwT38OqCPSYXdTLjbgBnvzZFsoIYQ0NmR8TyF7kNSWvx KLmQ== 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 r18si634406edm.489.2020.05.13.17.26.53; Wed, 13 May 2020 17:27:16 -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 S1733082AbgENAZ1 (ORCPT + 99 others); Wed, 13 May 2020 20:25:27 -0400 Received: from mga01.intel.com ([192.55.52.88]:53240 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732946AbgENAZ0 (ORCPT ); Wed, 13 May 2020 20:25:26 -0400 IronPort-SDR: pw48jvxnERiPyZBSrKdMTKCsAM/mOxATAGPHq+ahdRvbcbobJR3CJmk+E8d8dCqr2XfgWJM5cf 6NZtcSQQgggg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2020 17:25:26 -0700 IronPort-SDR: LmigXyC+PKXEwMmfY0sVl4rNnEd46L+o3kglBun/40P0Ry5MzcqKSfH2nUh0qUui+AXBzt99h0 L6gOZAQubFMg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,389,1583222400"; d="scan'208";a="262661894" Received: from gliber-mobl1.ger.corp.intel.com ([10.249.38.41]) by orsmga003.jf.intel.com with ESMTP; 13 May 2020 17:25:20 -0700 Message-ID: <07bb6080f8be9f6613f460e2d6e19f3d456e219c.camel@linux.intel.com> Subject: Re: [PATCH v4 1/4] KEYS: trusted: Add generic trusted keys framework From: Jarkko Sakkinen To: Sumit Garg , zohar@linux.ibm.com, jejb@linux.ibm.com Cc: dhowells@redhat.com, jens.wiklander@linaro.org, corbet@lwn.net, jmorris@namei.org, serge@hallyn.com, casey@schaufler-ca.com, janne.karhunen@gmail.com, daniel.thompson@linaro.org, Markus.Wamser@mixed-mode.de, keyrings@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, op-tee@lists.trustedfirmware.org, tee-dev@lists.linaro.org Date: Thu, 14 May 2020 03:25:14 +0300 In-Reply-To: <1588758017-30426-2-git-send-email-sumit.garg@linaro.org> References: <1588758017-30426-1-git-send-email-sumit.garg@linaro.org> <1588758017-30426-2-git-send-email-sumit.garg@linaro.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-05-06 at 15:10 +0530, Sumit Garg wrote: > Current trusted keys framework is tightly coupled to use TPM device as > an underlying implementation which makes it difficult for implementations > like Trusted Execution Environment (TEE) etc. to provide trusked keys > support in case platform doesn't posses a TPM device. > > So this patch tries to add generic trusted keys framework where underlying > implemtations like TPM, TEE etc. could be easily plugged-in. > > Suggested-by: Jarkko Sakkinen > Signed-off-by: Sumit Garg I tend to agree how this is implemented and could merge it as such. I'm just thinking if we could refine this patch in a way that instead of copying TRUSTED_DEBUG macro we could just replace pr_info() statements with pr_debug()? /Jarkko