Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2134915ybl; Tue, 3 Dec 2019 19:35:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyKeGWMSl7Hw1AeWQc6e9Zth7SbcMbWrBHu+3DHOsgjLJHbKTcDjjZvdxhSQHxF3vEs61eL X-Received: by 2002:a05:6808:12:: with SMTP id u18mr880815oic.51.1575430509380; Tue, 03 Dec 2019 19:35:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575430509; cv=none; d=google.com; s=arc-20160816; b=N1WsTgH0rZ86eiBLkZbZWJLxeSqeHY864fHpDuUWglqYJAXamX/Dn12zZOGVEVvIQF QYce4WX0Wt2dJpnHcaR0KQIrVPG1AHT/mzuXIg0Rjge40n91I6XrGlVr6K7YOAm8pQjM EA0UGTEQBOz9VTrbSvtqdyHiME8+AYCfAJ/Zr3lNoDF1cwrtBKNuRbCM8qhnbM1+4hWe sAGCtrEKCTjNHkdzS4uv3Q9oQ7BcG033hlK4TO0LGWXGncE+EDAZfAhfY5Otvp8kKrRT dPhFpwAIJzVcG5T2yxt0wFQVEpFhg9D1+fZKbrI+Mt7m/LOVQ7SlctPxHEh5nfSC52PW mF2A== 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 :references:in-reply-to:date:cc:to:from:subject:message-id; bh=bsKcRuhijgR8FFVxcQ6i8xD+vDp4vH/PkqBsH065oKU=; b=gGX7NkqDdPSKHCQs8JaFseUbvRS9VKZH3wQjZV14cp8WoMyCUT5bdOAxAa2hyc/+MH LPwFXmqcU4RCLuhS5V8HGH0tUSxcaiJ1y/zMFbSh+1vUziHcj0sBtUyZ/5dn1UNlF13W Wb9GcViH5NL332l3E+Q6CaUELw+laYbVgoSJe/BTzBzESoE9w86BgzI46cYeqQGI2wkj JYlR5RlptYNAhRuR8rhF2jRWjdCo5S5Otfc0pRHuHr50Ha4ToDJ9nB3gwAf7hpLi3w7I YnL+OzWkF2R9oHlWscaP4C0K1dTnanMtx4yEDwABg5RdtemNU5cbSW6ASmGVHG/jMzs6 vxhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i140si2685619oib.90.2019.12.03.19.34.53; Tue, 03 Dec 2019 19:35:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726926AbfLDDeW (ORCPT + 99 others); Tue, 3 Dec 2019 22:34:22 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:4636 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726804AbfLDDeW (ORCPT ); Tue, 3 Dec 2019 22:34:22 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xB43REQd115453; Tue, 3 Dec 2019 22:33:13 -0500 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com with ESMTP id 2wnsvhfdn7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 03 Dec 2019 22:33:13 -0500 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id xB43UthK007794; Wed, 4 Dec 2019 03:33:12 GMT Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by ppma04dal.us.ibm.com with ESMTP id 2wkg2728j0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Dec 2019 03:33:12 +0000 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xB43XBFg28115206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Dec 2019 03:33:11 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D7DB8AE062; Wed, 4 Dec 2019 03:33:11 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8B2B2AE05C; Wed, 4 Dec 2019 03:33:10 +0000 (GMT) Received: from jarvis.ext.hansenpartnership.com (unknown [9.85.183.167]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 4 Dec 2019 03:33:10 +0000 (GMT) Message-ID: <1575430389.14163.27.camel@linux.ibm.com> Subject: Re: One question about trusted key of keyring in Linux kernel. From: James Bottomley To: "Zhao, Shirley" , Mimi Zohar , Jarkko Sakkinen , Jonathan Corbet Cc: "linux-integrity@vger.kernel.org" , "keyrings@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "'Mauro Carvalho Chehab'" , "Zhu, Bing" , "Chen, Luhai" Date: Tue, 03 Dec 2019 19:33:09 -0800 In-Reply-To: References: <1573659978.17949.83.camel@linux.ibm.com> <1574877977.3551.5.camel@linux.ibm.com> <1575057916.6220.7.camel@linux.ibm.com> <1575260220.4080.17.camel@linux.ibm.com> <1575267453.4080.26.camel@linux.ibm.com> <1575269075.4080.31.camel@linux.ibm.com> <1575312932.24227.13.camel@linux.ibm.com> <1575342724.24227.41.camel@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-03_07:2019-12-02,2019-12-03 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 impostorscore=0 priorityscore=1501 bulkscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912040023 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-12-04 at 03:01 +0000, Zhao, Shirley wrote: > Hi, James, > > Using policy digest to reload trusted key, doesn't work, either. > Please check the steps below. > I think policy digest should be calculated by TPM when verifying the > policy to reload key. You misunderstand my meaning: the API we have now doesn't work; the key blob the kernel returns currently after key create won't reload because it contains extraneous data. I was proposing a working API I thought might replace it, but obviously it has to be coded up and accepted into a kernel version before you can use it. If you want to get trusted keys working today, I think the TPM 1.2 API still works if you have a TPM 1.2 system. James