Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5512250imm; Tue, 26 Jun 2018 12:36:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcY7fGNFT2/f2Jg3yG/kTMujxXvxTge8LGwNLbBxisK3eNib3VFnImkUuz6MAfoOcY2eGLV X-Received: by 2002:a62:4141:: with SMTP id o62-v6mr2805513pfa.111.1530041791637; Tue, 26 Jun 2018 12:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530041791; cv=none; d=google.com; s=arc-20160816; b=q46QniEJlwGQW23tpkIR2KSUN9xyklBzG+LnaRt2qNsa5Uv3i3V3G0VWuVGkI+MsXi rFtC9IzBhQMoOL/ganP3Ja24LMMX0mIfzcibowCVTcJ6KBhHOBvOggiZUZR8sKR7oCOh 7JBswqhgSndXye2NjqxQYBmcmI0YWgshVw1YFVkfp9b4DjyjyJ/HFMQo9dOltdQISLaE Go2+U9oGsCcRGF2kG18B8cjOcI065UgZxq3yPuuq613dVLXnLYK4AoZfwuEwtp4aeqRO 3L6A6Hb/jDpeJSKG+2uYpYMH8XLqttiiDuNp1aFtKo+uI9JC8ChxUC2pCivl6t1T5zaC MdIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=akS2aCTULA0Kz/XvWLHRKxxN4CITVJFUedNNOmNui0E=; b=xZBrUZFtQJeO10VKzUl6oBwvO47g0uL7HTft4kdDFpG6/cXM0apvQ2Sm6h0VcrjrXm lyZN9RXp53rmAHhuSGbGlzqvRsExwyzi7lLx9Uu+SFJ+fhFCmttajYfSSqrXquz/YrXn emPT6p+fjyW5hTo96mU+dWFGHoOoMVcqad3MBrzGcDNK8gGVrejFvKAgzvwu14StttML +TdNYCTS7xX63SOSbXomXj9Bl5GZN7xJ11o+cr8oNAwREMsxdOvWTOvbaaXhMwkDvus1 PuH9TYRpWS0n45CzZ7J1BDHGN88E0pEUv955WWOGtirSPRkYMWwW4DoJ9OnKinmUHAMa o1RQ== 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 z12-v6si934998pgv.536.2018.06.26.12.36.17; Tue, 26 Jun 2018 12:36:31 -0700 (PDT) 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 S1754773AbeFZTas (ORCPT + 99 others); Tue, 26 Jun 2018 15:30:48 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:51122 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752820AbeFZTaq (ORCPT ); Tue, 26 Jun 2018 15:30:46 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5QJTWQP073925 for ; Tue, 26 Jun 2018 15:30:46 -0400 Received: from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204]) by mx0a-001b2d01.pphosted.com with ESMTP id 2juuc78ptk-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 26 Jun 2018 15:30:45 -0400 Received: from localhost by e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 26 Jun 2018 15:30:45 -0400 Received: from b01cxnp22035.gho.pok.ibm.com (9.57.198.25) by e14.ny.us.ibm.com (146.89.104.201) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 26 Jun 2018 15:30:42 -0400 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w5QJUfq79699848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 26 Jun 2018 19:30:41 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 43974AC066; Tue, 26 Jun 2018 15:31:51 -0400 (EDT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2BA39AC05F; Tue, 26 Jun 2018 15:31:51 -0400 (EDT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 26 Jun 2018 15:31:51 -0400 (EDT) From: Stefan Berger To: linux-integrity@vger.kernel.org, jarkko.sakkinen@linux.intel.com, zohar@linux.vnet.ibm.com, jejb@linux.vnet.ibm.com Cc: jgg@ziepe.ca, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, dhowells@redhat.com, keyrings@vger.kernel.org, Stefan Berger Subject: [PATCH 0/2] Convert trusted keys to find and use the default TPM chip Date: Tue, 26 Jun 2018 15:30:38 -0400 X-Mailer: git-send-email 2.14.4 X-TM-AS-GCONF: 00 x-cbid: 18062619-0052-0000-0000-000003046B4B X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009259; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01052715; UDB=6.00539697; IPR=6.00830640; MB=3.00021867; MTD=3.00000008; XFM=3.00000015; UTC=2018-06-26 19:30:44 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18062619-0053-0000-0000-00005D262E50 Message-Id: <20180626193040.2509798-1-stefanb@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-26_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=743 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1806260215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following patches build on top of the series of patches that convert IMA to find and use the system's default TPM chip. I have done some successful testing with trusted keys using publicly available examples. Stefan Stefan Berger (2): tpm: Implement public tpm_put_chip() to release reference to chip KEYS: trusted: Find tpm_chip and use it until module shutdown drivers/char/tpm/tpm-chip.c | 10 +++++++++ include/linux/tpm.h | 4 ++++ security/keys/trusted.c | 41 +++++++++++++++++++++++++------------ 3 files changed, 42 insertions(+), 13 deletions(-) -- 2.17.1