Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp278165pxb; Tue, 31 Aug 2021 21:37:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzv5fGvzrSpRC03Z7sp7jSKOGBkpX4fP3z9tdowO6sx1ZZSn/hvEyOiYRqxKvbQ9Tjpib+k X-Received: by 2002:a05:6e02:174a:: with SMTP id y10mr23933602ill.121.1630471038069; Tue, 31 Aug 2021 21:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630471038; cv=none; d=google.com; s=arc-20160816; b=fYDOaUMP/z4xSViR117HReEgEJ1b4BTW9RHrUZB7o0GBlJbCA8dLVnlmEG8lfP6KUI oqSv8RyUzs87T6xFjWpKKdfHj22P6XqGsJ/q45kMNoFmUaJSvtkUa2vTpaRmJ/2JBeIb pQL7NcX97Z9kQpeGvcU9S04cTG2+tWKEAdNig+3tWCATvlFTmbrfNpn8BvNSXnfiWkmk ErdPN07gV5W/AIUEjCbXwofsX563cZhnOia1mibSTxE9a7enE0J2KL/LYMAqTFcQ8Aji /khEDXR3Wc5mMk5u1z8xHoskXYP2ZZb7FNbyIrsyFrX2VGxmE5DQLC71AyWfFtDcO46T UnPg== 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=vnsh05RzhJzXHOiVHCUVmvHj2F/lVvKSb3fdm4ocmkk=; b=AjaSmtW9b+rAfTgY+Im4+Gvp63WFyChnDknR0s/EvN42pN0CyWoXZrDDvDmpwogx3s WlKbSnMVyVZzLNGgfWqnbPqXxTCacjsf5nxaFxw88FmpJdPFwZ0EQEvmdL2RFwXwkt0L +H/VmrWFLNG8gDdMMMpc+JjQPtZnpiJK6Ks88wJYv/IpLfpS6cE+GculxR9G+l5fklz1 KNnwdy/Lb5HH4aRKyuvgziDPXoQpHEgp++5JA55FFHt8GMiKYRPdmryprOaNS933f1Rk Q/591JEpGc16GqrfYWIxErWWGm3wj2gDP1caX1rcyzlWplywkE/w1Zbgn35XXaOWuJp9 iSAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rw9yCsWJ; 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 o14si22020681ilu.101.2021.08.31.21.37.06; Tue, 31 Aug 2021 21:37:18 -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=Rw9yCsWJ; 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 S236519AbhIAEiA (ORCPT + 99 others); Wed, 1 Sep 2021 00:38:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:52006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233950AbhIAEh4 (ORCPT ); Wed, 1 Sep 2021 00:37:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CD4FC60724; Wed, 1 Sep 2021 04:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630471020; bh=aT6JhjBCj79ufOLB8poaueC1tfx6jSufgh0krfkhD7c=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Rw9yCsWJYPRZu+laX4QMpdBg49gmJ/oTHReH2vS279U1RVHMvrP2JHsNvNAfZk37E v7QAcTYqi/+DYN3hpmWwH/yP27lw4Ax21JWHWwBoxQJjMmZjeiiqqMXuUJxEzvPGlh oui5PFg+agU5XiUvzHI4yiL3/IjXhRVARUrRBSVuqlB+2t3xGyyEweDzWQA+yzj/5I EH7+x0sK17pSTOxjfBfbHvoaPba9QCArPE1KGMvZnknnFepKn2s2Q/vT7Eu6V5r/OQ 6vPUvDSj0w9G9rHe3fIh+WhUHD2JN5qhy+rvqK7hy23/ce7vy2Yw3KJepi3/dRaTNo T5e/vBwr7Xm9A== Message-ID: Subject: Re: [PATCH v4 00/12] Enroll kernel keys thru MOK From: Jarkko Sakkinen To: Nayna , James Bottomley , 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, pjones@redhat.com, "konrad.wilk@oracle.com" , Patrick Uiterwijk Date: Wed, 01 Sep 2021 07:36:58 +0300 In-Reply-To: <18c0a9ca6b3ab8103e3b9270a6f59539787f6e12.camel@kernel.org> References: <20210819002109.534600-1-eric.snowberg@oracle.com> <91B1FE51-C6FC-4ADF-B05A-B1E59E20132E@oracle.com> <9526a4e0be9579a9e52064dd590a78c6496ee025.camel@linux.ibm.com> <9067ff7142d097698b827f3c1630a751898a76bf.camel@kernel.org> <10bc1017-2b45-43f3-ad91-d09310b24c2c@linux.vnet.ibm.com> <18c0a9ca6b3ab8103e3b9270a6f59539787f6e12.camel@kernel.org> 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 Wed, 2021-09-01 at 07:34 +0300, Jarkko Sakkinen wrote: > On Fri, 2021-08-27 at 16:44 -0400, Nayna wrote: > > On 8/25/21 6:27 PM, James Bottomley wrote: > > > On Thu, 2021-08-26 at 01:21 +0300, Jarkko Sakkinen wrote: > > > > On Tue, 2021-08-24 at 10:34 -0400, Mimi Zohar wrote: > > > > > > > > Jarkko, I think the emphasis should not be on "machine" fro= m > > > > > > > > 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 tho= se > > > > > > > > lines. > > > > > > > What do you gain such overly long identifier? Makes no sense. > > > > > > > What is "ca aspect of the name" anyway? > > > > > > As I mentioned previously, the main usage of this new keyring i= s > > > > > > that it should contain only CA keys which can be later used to > > > > > > vouch for user keys loaded onto secondary or IMA keyring at > > > > > > runtime. Having ca in the name like .xxxx_ca, would make the > > > > > > keyring name self-describing. Since you preferred .system, we c= an > > > > > > call it .system_ca. > > > > > Sounds good to me. Jarkko? > > > > >=20 > > > > > thanks, > > > > >=20 > > > > > Mimi > > > > I just wonder what you exactly gain with "_ca"? > > > Remember, a CA cert is a self signed cert with the CA:TRUE basic > > > constraint. Pretty much no secure boot key satisfies this (secure bo= ot > > > chose deliberately NOT to use CA certificates, so they're all some ty= pe > > > of intermediate or leaf), so the design seems to be only to pick out > > > the CA certificates you put in the MOK keyring. Adding the _ca suffi= x > > > may deflect some of the "why aren't all my MOK certificates in the > > > keyring" emails ... > >=20 > > My understanding is the .system_ca keyring should not be restricted onl= y=20 > > to self-signed CAs (Root CA). Any cert that can qualify as Root or=20 > > Intermediate CA with Basic Constraints CA:TRUE should be allowed. In= =20 > > fact, the intermediate CA certificates closest to the leaf nodes would= =20 > > be best. > >=20 > > Thanks for bringing up that adding the _ca suffix may deflect some of= =20 > > the "why aren't all my MOK certificates in the keyring" emails. >=20 > What the heck is the pragamatic gain of adding such a suffix? Makes > zero sense If this series needs both "system" and "system_ca" keyrings, then there would be some sanity in this. Also, I still *fully* lack understanding of the use of word system. Why MOK is not SOK then?? /Jarkko