Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp277317pxb; Tue, 31 Aug 2021 21:35:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4ZjpxKkOq7a71+i/dmCLO1VQIMt+fAexRn5QvWMznrZWb7dpuTejoQOowc7mrnxOCjSnA X-Received: by 2002:a05:6e02:1d9c:: with SMTP id h28mr24195167ila.266.1630470939902; Tue, 31 Aug 2021 21:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630470939; cv=none; d=google.com; s=arc-20160816; b=KBY19E2g7VtV1qPTmtRb/WMSqoDo5pXj0ltI+xUYvISNSnrLyfgW0C95vI+lvWuFV6 oJNa6xqxm1Ua5OFrzULyyhb8q/G/tsqo0pnWzBTP64lD1ZixYeMua4Jnuc4jNUnMmqnW NzRR2jIF4ek63pSEdF4VuL1KM36NySgtizMR5A2NHTkz6l0C+wWYlpf8gKHwLQNi6QaL wXvFj/vxBfcDVVN7d9Mj6S0FRmTJQkSym/QqvGKETpKXzuWyvENnEzF1rS3jTwLHO0qr SAqAX85K/bFrxR9ouWaxkVLJlRH2lkkOodwZyy345Ep8aUljJ8hu+Gj7gdHvE70b2zlZ LYCw== 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=Bh2e4iUSJg5Nt1Z9CouFZR+XcE6qrOOrehW0fH1rkAM=; b=RAdOb4eroYXeTDMk7YoBD8eHY/w5IlQZxTvfJ9w+ILwBj9h18M0Mz9zAtAJkdFjBfP zS30v/1AH38PWDOghi22WXqhrqNCKqmByf7aPsgxHwNY6T3aWeMN+RhqthY9aX0K7mxP eXZVzu5W7G3iL0U91lrWXtL2aJpT9kcGe7rNR78gyi/Del9oBKR8EZv712MpXdb1nN7c Sf61bTkDuiVRZ5iROAoRDiSVjwlVIZZxaL8MaS6GSlpXoRF6VJUPmgiJ4wBhxObgQp8z +mrzBrQc+MezvJpHAS/C+ErqNHU8E7z/TikCLJ3X60bSVBUFsd6FrXCTukCnhBqHHQSC aGLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="h/24bkOr"; 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.35.03; Tue, 31 Aug 2021 21:35:39 -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="h/24bkOr"; 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 S232648AbhIAEfl (ORCPT + 99 others); Wed, 1 Sep 2021 00:35:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:50932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbhIAEfk (ORCPT ); Wed, 1 Sep 2021 00:35:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9DD4E60FC0; Wed, 1 Sep 2021 04:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630470884; bh=3mYu60fBwt4q3TRGDVU2zleQgKPWNhp/oQv2LPQint0=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=h/24bkOrqWTCh2K3wO1KyRfSTs8qf8N4CkLobV3HycwUXPC6E8WP6E843gVOQYm3/ +8dJDOI8ogT28QoOIiQdywKlxyqbDxIbWzTaf62Zx2kQKvZdsHn+cZNSAJg976SXO1 h7Fuooig2gEN6GOik6alWzkJHOHKIxr7lboDOLIzeKcYVrWCKhMSNYgqoYEr6A9R3a oT+YnWpwBMRGR1sC+E3CeTNlUxatHQtIUMQ1Xqm/oEnLRxMKSB8dnLIwxoM1CTF52F x5Lr4i63UgzrVYMc7ewuoUHgPkegOCrw9yWotU6bzNNEyPW0TyCdN8fqnlWaAbiO7+ p50eb/iNtdJHg== Message-ID: <18c0a9ca6b3ab8103e3b9270a6f59539787f6e12.camel@kernel.org> 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:34:41 +0300 In-Reply-To: <10bc1017-2b45-43f3-ad91-d09310b24c2c@linux.vnet.ibm.com> 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> 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 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" 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 is "ca aspect of the name" anyway? > > > > > As I mentioned previously, the main usage of this new keyring is > > > > > 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 can > > > > > 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 boot > > chose deliberately NOT to use CA certificates, so they're all some type > > 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 suffix > > 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 only= =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. What the heck is the pragamatic gain of adding such a suffix? Makes zero sense. /Jarkko