Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp887455ybl; Thu, 12 Dec 2019 06:30:00 -0800 (PST) X-Google-Smtp-Source: APXvYqyDG0R6zK7d5ITTboE5g6rdt3bHQs7G7DXHptpFzIanzkEnW2ssx1GpKgkrHuCTOt/XuV33 X-Received: by 2002:aca:f305:: with SMTP id r5mr5255566oih.174.1576160999906; Thu, 12 Dec 2019 06:29:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576160999; cv=none; d=google.com; s=arc-20160816; b=EmBrnhNeo/AIRGYi/bX+IYuEtcB2RIH8bTLzL2g0WGk0nH6ql4PW1Txtv0evWVyDLp WZJO9UbaLKf8mRbMVd0GFEpmIGoAeYgvfRxpKgS7sKd+uxt0271fa5iiHPCb/w7PE5fm RohLl6v4uKllnmoP5Z0r7mlAhkF+PbfRIxRs9KreY8wWU9AR3sLfqi59Q93wfjeXGE/X DwXZ3659ITehX/RAmNVsl4lXgvv9co01X/wCEl+yciaLYNMZPh4GlbhevMaNynbHeV3x Oi4mz5LOlMDZns7lNYp0LNYmgzO2P0Yx3H74nuO1Tdn9mHitiQFKCjfHi6E7xrQEMVdX WL3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=gnfluK/LeFSqKuy/1tawx5AKV8YGNJdAKtk6PAMrOCM=; b=A0we54nQYI25FDjZSGsQG06fDJlB7JcTK76ZE3lqAs5wgt/nUuB5cEqJaLagxXqJw5 Pv+82FbIK/eEl4vYWRLbHVjqBD1ENX1ML5feG7J3TCtHy38FhMiHK+2sFP7eh6+UI+Tr 7MPdvk7eJ09Fk77+rZ3F/a+rFwoTd1Su3eGuyWib8VdXlCjtKGgPAaQx5CiPRXa7G/1z 5fFuZhapD/rTsF4/TkULpVXsKOI+YPm3NkW0Gv+iJJFDz4gXpVsrAtLH8T3FnA4RRXgS B4Z5ofk9BYnvn8OPKazs1CiEf/GEFvsGUfdkJY3vIIC0fsFShyKAbSFAMjheN/WqC2JQ TR8g== 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 l131si3171916oig.120.2019.12.12.06.29.47; Thu, 12 Dec 2019 06:29:59 -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 S1729735AbfLLO2r (ORCPT + 99 others); Thu, 12 Dec 2019 09:28:47 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:44408 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729602AbfLLO2q (ORCPT ); Thu, 12 Dec 2019 09:28:46 -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 xBCESMXr059580 for ; Thu, 12 Dec 2019 09:28:45 -0500 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2wtdp5q8jx-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 12 Dec 2019 09:28:44 -0500 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 12 Dec 2019 14:28:43 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 12 Dec 2019 14:28:39 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xBCEScLY59047952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 Dec 2019 14:28:38 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 63784A4051; Thu, 12 Dec 2019 14:28:38 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3F8F6A4057; Thu, 12 Dec 2019 14:28:37 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.194.137]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 12 Dec 2019 14:28:37 +0000 (GMT) Subject: Re: [PATCH v11 0/6] KEYS: Measure keys when they are created or updated From: Mimi Zohar To: Lakshmi Ramasubramanian , linux-integrity@vger.kernel.org Cc: eric.snowberg@oracle.com, dhowells@redhat.com, mathew.j.martineau@linux.intel.com, matthewgarrett@google.com, sashal@kernel.org, jamorris@linux.microsoft.com, linux-kernel@vger.kernel.org, keyrings@vger.kernel.org Date: Thu, 12 Dec 2019 09:28:36 -0500 In-Reply-To: <20191211164707.4698-1-nramas@linux.microsoft.com> References: <20191211164707.4698-1-nramas@linux.microsoft.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19121214-0028-0000-0000-000003C7E065 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19121214-0029-0000-0000-0000248B1A2E Message-Id: <1576160916.4579.151.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-12-12_03:2019-12-12,2019-12-12 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 clxscore=1015 lowpriorityscore=0 malwarescore=0 spamscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 phishscore=0 impostorscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1912120111 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lakshmi, On Wed, 2019-12-11 at 08:47 -0800, Lakshmi Ramasubramanian wrote: > Keys created or updated in the system are currently not measured. > Therefore an attestation service, for instance, would not be able to > attest whether or not the trusted keys keyring(s), for instance, contain > only known good (trusted) keys. > > IMA measures system files, command line arguments passed to kexec, > boot aggregate, etc. It can be used to measure keys as well. > But there is no mechanism available in the kernel for IMA to > know when a key is created or updated. > > This change aims to address measuring keys created or updated > in the system. Thank you!  This patch set is now queued in the next-integrity-testing branch of https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux- integrity.git/. Mimi