[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <de325c9efacda817c42ee83244baa0de4b246aa8.camel@linux.ibm.com>
Date: Thu, 05 Aug 2021 09:58:09 -0400
From: Mimi Zohar <zohar@...ux.ibm.com>
To: Eric Snowberg <eric.snowberg@...cle.com>
Cc: "keyrings@...r.kernel.org" <keyrings@...r.kernel.org>,
"linux-integrity@...r.kernel.org" <linux-integrity@...r.kernel.org>,
David Howells <dhowells@...hat.com>,
"dwmw2@...radead.org" <dwmw2@...radead.org>,
"herbert@...dor.apana.org.au" <herbert@...dor.apana.org.au>,
"davem@...emloft.net" <davem@...emloft.net>,
"jarkko@...nel.org" <jarkko@...nel.org>,
"jmorris@...ei.org" <jmorris@...ei.org>,
"serge@...lyn.com" <serge@...lyn.com>,
"keescook@...omium.org" <keescook@...omium.org>,
"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"torvalds@...ux-foundation.org" <torvalds@...ux-foundation.org>,
"scott.branden@...adcom.com" <scott.branden@...adcom.com>,
"weiyongjun1@...wei.com" <weiyongjun1@...wei.com>,
"nayna@...ux.ibm.com" <nayna@...ux.ibm.com>,
"ebiggers@...gle.com" <ebiggers@...gle.com>,
"ardb@...nel.org" <ardb@...nel.org>,
Lakshmi Ramasubramanian <nramas@...ux.microsoft.com>,
"lszubowi@...hat.com" <lszubowi@...hat.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-crypto@...r.kernel.org" <linux-crypto@...r.kernel.org>,
"linux-security-module@...r.kernel.org"
<linux-security-module@...r.kernel.org>,
"James.Bottomley@...senpartnership.com"
<James.Bottomley@...senPartnership.com>,
"pjones@...hat.com" <pjones@...hat.com>,
"glin@...e.com" <glin@...e.com>,
Konrad Wilk <konrad.wilk@...cle.com>
Subject: Re: [PATCH RFC v2 00/12] Enroll kernel keys thru MOK
On Wed, 2021-08-04 at 02:56 +0000, Eric Snowberg wrote:
> Ok, I’ll update the current code to just load CA keys into the mok in v3. This would
> simplify the new restrict_link_by_ca function.
Thank you!
>
> With that change, do you see any issues with how I’m doing the linking? With the
> mok keyring linked to the secondary keyring, the platform keyring may only contain
> a subset of the keys it originally contained. But, as I described above, I don’t believe
> it will lead to a regression since all keys get referenced. Thanks.
I think there is a problem. Only the builtin keys should ever be on
the builtin keyring. The builtin keyring would need to be linked to
the mok keyring. But in the secondary keyring case, the linking
should be the reverse, where the mok keyring would be linked to the
secondary keyring, similar to how the builtin keyring is linked to the
secondary keyring.
if (key_link(secondary_trusted_keys, builtin_trusted_keys) < 0)
panic("Can't link trusted keyrings\n");
thanks,
Mimi
Powered by blists - more mailing lists