Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2051280pxb; Mon, 23 Aug 2021 10:52:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4mAbtm5q9yLlPmNjRRF1/GA32JaaJRhKJbEQC6ulH0X1CFOf5wQGzF4fkJtI/AnGB25+H X-Received: by 2002:a17:906:368e:: with SMTP id a14mr37341790ejc.60.1629741150046; Mon, 23 Aug 2021 10:52:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629741150; cv=none; d=google.com; s=arc-20160816; b=cbgFv8Bz90v6OIfV2OiDAPTK++dNTjt6ErZ6GWb6GVM4qdA/4gz414vOpSsCwvGbqU 2B9zZCP3m3sUGHqtnNiugMZFvqURFObGGxMOP8BqW5nATAceUB0MAt7zlACk+xPuhF6v rJg2sdw03WoiMpgNK9v8eIgZL0FB9qPmdSi6rB8Hj+qEM6NR17WymJWyPPNIg0aib5Lx b/NnJiPnALPH+7Q13+d2Pg99TnFDe6QdvL2Uwa51qqnxVqN5tLYFFkplvhN/FL2MUtmV JLdhOdryvpBZCFvW3ifP0qdfq+2PB2dC0ittvd4445i7cmabWZKP6dyzPSCdS0M9yNbB Wgww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=fGcS+4MW9Sf6I32w19UQYlh/EZgsAYvgmLnJDwaNc38=; b=rW5skMdcRmCA8305bN/NxOkzoCuYo0hMLikVyy2B/m0LZgpc13ICik1Cjm1PUdTY13 T491ZJHL0HWv1/uR7skVwg/OXgvZktUkiRC5kLgULX4ki7svnNen1ZxLGNmUdxeAbCuj ssmQMXsl23aUQD+2ImBPzgpr/e4AA57HGRHHexEOIg4WmoBAPEJBlIU63lBZyHAWAEFQ AKi0YRqIOg6xK58UGoayJvvo1LYzSMuJLZXKI1ICwjj/geHCXNPeCVOpb74LatdSo3iP 7n7/APbyNyrzY6BSdTQ6WRjJnSNrQQAb1NGqyv0l9UXxw5PlRWZhM3iXGdSyNX/C3vBh Knfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R7I+4yYJ; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j11si15356737ejj.109.2021.08.23.10.52.03; Mon, 23 Aug 2021 10:52:30 -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=@kernel.org header.s=k20201202 header.b=R7I+4yYJ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231253AbhHWRwe (ORCPT + 99 others); Mon, 23 Aug 2021 13:52:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:50570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231451AbhHWRw1 (ORCPT ); Mon, 23 Aug 2021 13:52:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E6BF061361; Mon, 23 Aug 2021 17:51:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629741101; bh=09+/dl+7N1j1ONGcVKQNxk5N6MkJgtGVdyKJOEXl42o=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=R7I+4yYJx/fWc5zJEUrabQN5jWQhkkYvErEClrnuWFWTit/nYJLoWwz2BmJHQQ9Nw debJanht7MFAtZ1k9/ftlVBvyRZqN2umeHq7unJ/FArlgS7XbL6WEyEfVy+vfcu7nV qqb3hWiWAESsXuyJdx3ez/t7y3Lei+hCvh9lg/wWoDauq3FzENQCvncWud+v6SHrGO 6FT3ebfNld1YUrV8rI6ylryMvJGFHj0HDxB5KhBB1jkcJo2bXhfgrTz+EFmKMAXszq p1sTL17ZLtBLHWbLlRJLwXMT2vmeKuAspAmtCXrQpsnq9L6yyXt0XPn0BGe6m1OoSv ggQKmgItgx2Iw== Message-ID: Subject: Re: [PATCH v4 00/12] Enroll kernel keys thru MOK From: Jarkko Sakkinen To: Mimi Zohar , Eric Snowberg , 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: Mon, 23 Aug 2021 20:51:39 +0300 In-Reply-To: References: <20210819002109.534600-1-eric.snowberg@oracle.com> <91B1FE51-C6FC-4ADF-B05A-B1E59E20132E@oracle.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, 2021-08-19 at 13:32 -0400, Mimi Zohar wrote: > On Thu, 2021-08-19 at 09:23 -0600, Eric Snowberg wrote: > > > On Aug 19, 2021, at 7:10 AM, Mimi Zohar wrote: > > >=20 > > > 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 e= ach > > > > > architecture. Each end-user may use this kernel in entirely diff= erent > > > > > ways. Some downstream kernels have chosen to always trust platfo= rm keys > > > > > within the Linux trust boundary for kernel module signing. These > > > > > kernels have no way of using digital signature base IMA appraisal= . > > > > >=20 > > > > > 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. > > > >=20 > > > > 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 becau= se > > > > it binds directly to a single piece of user space software. > > >=20 > > > Nayna previously said, > > > "I believe the underlying source from where CA keys are loaded migh= t vary=20 > > > based on the architecture (".mok" is UEFI specific.). The key part = is=20 > > > that this new keyring should contain only CA keys which can be late= r=20 > > > used to vouch for user keys loaded onto IMA or secondary keyring at= =20 > > > runtime. It would be good to have a "ca" in the name, like .xxxx-ca= ,=20 > > > where xxxx can be machine, owner, or system. I prefer .system-ca." > > >=20 > > > 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 reaso= n, > > > I agree naming the new keyring "mok" should be avoided. > >=20 > > As I said previously, I=E2=80=99m open to renaming, I just would like t= o have an=20 > > agreement on the new name before changing everything. The current prop= osed=20 > > names I have heard are =E2=80=9C.machine" and ".system-ca". Is there a= preference=20 > > the maintainers feel is appropriate? If so, please let me know and I= =E2=80=99ll=20 > > rename it. Thanks. > >=20 >=20 > 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. What do you gain such overly long identifier? Makes no sense. What=20 is "ca aspect of the name" anyway? /Jarkko