Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp762385pxb; Thu, 19 Aug 2021 10:33:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEi/kvVbbCusgXyTcFKRaVc527t6uX6MyUN9ObcYsBvU27h93t4qUvrnnno47o8Snd87Ja X-Received: by 2002:a92:c80e:: with SMTP id v14mr11115514iln.57.1629394412052; Thu, 19 Aug 2021 10:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629394412; cv=none; d=google.com; s=arc-20160816; b=ZSzAwM1zLEwrO7iCndnWFyua7fsYCiLfhSAZqvDKYlWDJdi19kp+R9ovYgZvRJGLfz oq2GT4chmFmTcMbdmCdUw3K18wUyRc/yzQkHaNnwOLojeEZGJxu05a9NJdOVhDNCi9gX 21KKCTq488HeIsmY+5EAB8erw7/pBOx29Q3dNQnuEQfBXOrKsHAsduKv+f092LlRRzqO pChr1x/Zjbz/e7bGY5cgWhqO2CmSgjCZrVr5uCdnYZSy21efK3M8I3bHJC13xNcIv4ti rjcZqYrNqw2+sJQxU+4Dp+1nFq0NgVSLXaIYmDLNu47GDfuL0rUYLredrwMZXuvoztTX s2Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=VaGmT9pAZx7k7u/Cg6rHBBP9jFUURlyOyNSuOvjweGc=; b=QubpfLqCcslOlrOPs1TnYHrntc2VataimwDDwtWxLLPGQXNYGuVCrucPIhfgdRg8AY L+PFUtR87tKgI4/F+I3wIAVKo4+aAVJ1cZch+MubH2BmXf6PwDZDtjyPoqKFno72qwX1 ++1rz7IX8Wp4R1O+cfJQ5A01ASqop6PUe30AAr05uc6aMs7588nLGK26WABP9Mk4tZy4 cxFu5JYm4dhV1UZ6fATjaorGnOJ0j5hXPQIybRotP4lq9VBpodOx5v2dsUNuC6LtK1PY Os+KXgNzueaCf4PwnlZSU5Ob3KlebcdI1Gz/4XOtDKH6Wp5QYs5TVpNMxFDVbk8DViYX 9Jeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=hbub7qrU; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si3772454ili.37.2021.08.19.10.33.09; Thu, 19 Aug 2021 10:33:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@ibm.com header.s=pp1 header.b=hbub7qrU; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229950AbhHSRdo (ORCPT + 99 others); Thu, 19 Aug 2021 13:33:44 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:32548 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbhHSRdo (ORCPT ); Thu, 19 Aug 2021 13:33:44 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17JH42Iq103525; Thu, 19 Aug 2021 13:32:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=VaGmT9pAZx7k7u/Cg6rHBBP9jFUURlyOyNSuOvjweGc=; b=hbub7qrUfmZrGW0KGAWYUK5Ks6BBulE9ry0FK4J/01+ycGy/dfF+gYgLydMAZXwrd9+e hx9ol1VqKHwI5SmcjJMGoqBskuxcuJCCZtfcoI2EV+DMM6KK4NjENMcTbezSWvYYciUi TnXXhMMm+h5yMEYP/gGz5NCoWobD0gIC95G76hhge8YCP4NHIMrUgcXdrUKmLp34V5o4 4vTwbncZN/wn4Vyaf9X8xeQ5MUpzmXWi+RbTe95BK8iyGqqOE0kr4RLI9zN6X+l+rspe x5jGYad7Z9e6+8e9n7aXXvmmOPWTf7kOt8Zt2/Vup2KN4Ed7YU44pyg/9u/RMZR9eNVE fg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ahq5ds9q2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Aug 2021 13:32:46 -0400 Received: from m0098393.ppops.net (m0098393.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 17JH6GE7119252; Thu, 19 Aug 2021 13:32:45 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ahq5ds9pc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Aug 2021 13:32:45 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 17JHWhcc004868; Thu, 19 Aug 2021 17:32:43 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma05fra.de.ibm.com with ESMTP id 3afwrhv47k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Aug 2021 17:32:42 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 17JHWeul54919648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Aug 2021 17:32:40 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4F89F11C058; Thu, 19 Aug 2021 17:32:40 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4AB7811C052; Thu, 19 Aug 2021 17:32:35 +0000 (GMT) Received: from sig-9-65-206-165.ibm.com (unknown [9.65.206.165]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 19 Aug 2021 17:32:35 +0000 (GMT) Message-ID: Subject: Re: [PATCH v4 00/12] Enroll kernel keys thru MOK From: Mimi Zohar To: Eric Snowberg , Jarkko Sakkinen , David Howells Cc: keyrings@vger.kernel.org, linux-integrity , David Woodhouse , Herbert Xu , "David S . Miller" , James Morris , "Serge E . Hallyn" , keescook@chromium.org, gregkh@linuxfoundation.org, torvalds@linux-foundation.org, scott.branden@broadcom.com, weiyongjun1@huawei.com, nayna@linux.ibm.com, ebiggers@google.com, ardb@kernel.org, Lakshmi Ramasubramanian , lszubowi@redhat.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-security-module@vger.kernel.org, James Bottomley , pjones@redhat.com, "konrad.wilk@oracle.com" , Patrick Uiterwijk Date: Thu, 19 Aug 2021 13:32:34 -0400 In-Reply-To: <91B1FE51-C6FC-4ADF-B05A-B1E59E20132E@oracle.com> References: <20210819002109.534600-1-eric.snowberg@oracle.com> <91B1FE51-C6FC-4ADF-B05A-B1E59E20132E@oracle.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-16.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: aJAOsvngqjodT5zWjAyhG8qLCPdidYMl X-Proofpoint-ORIG-GUID: Wy9C5Qq0n4VkNUlS1-Sz5gxuIJvv7fZE X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-08-19_06:2021-08-17,2021-08-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 clxscore=1015 phishscore=0 priorityscore=1501 mlxlogscore=999 impostorscore=0 adultscore=0 suspectscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108190100 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, 2021-08-19 at 09:23 -0600, Eric Snowberg wrote: > > On Aug 19, 2021, at 7:10 AM, Mimi Zohar wrote: > > > > On Thu, 2021-08-19 at 14:38 +0300, Jarkko Sakkinen wrote: > >> On Wed, 2021-08-18 at 20:20 -0400, Eric Snowberg wrote: > >>> Downstream Linux distros try to have a single signed kernel for each > >>> architecture. Each end-user may use this kernel in entirely different > >>> ways. Some downstream kernels have chosen to always trust platform keys > >>> within the Linux trust boundary for kernel module signing. These > >>> kernels have no way of using digital signature base IMA appraisal. > >>> > >>> This series introduces a new Linux kernel keyring containing the Machine > >>> Owner Keys (MOK) called .mok. It also adds a new MOK variable to shim. > >> > >> I would name it as ".machine" because it is more "re-usable" name, e.g. > >> could be used for similar things as MOK. ".mok" is a bad name because > >> it binds directly to a single piece of user space software. > > > > Nayna previously said, > > "I believe the underlying source from where CA keys are loaded might vary > > based on the architecture (".mok" is UEFI specific.). The key part is > > that this new keyring should contain only CA keys which can be later > > used to vouch for user keys loaded onto IMA or secondary keyring at > > runtime. It would be good to have a "ca" in the name, like .xxxx-ca, > > where xxxx can be machine, owner, or system. I prefer .system-ca." > > > > The CA keys on the MOK db is simply the first root of trust being > > defined, but other roots of trust are sure to follow. For this reason, > > I agree naming the new keyring "mok" should be avoided. > > As I said previously, I’m open to renaming, I just would like to have an > agreement on the new name before changing everything. The current proposed > names I have heard are “.machine" and ".system-ca". Is there a preference > the maintainers feel is appropriate? If so, please let me know and I’ll > rename it. Thanks. > Jarkko, I think the emphasis should not be on "machine" from Machine Owner Key (MOK), but on "owner". Whereas Nayna is focusing more on the "_ca" aspect of the name. Perhaps consider naming it "system_owner_ca" or something along those lines. thanks, Mimi