Re: [RFC PATCH 12/12] IMA: Use the the system trusted keyrings instead of .ima_mok [ver #3]

From: Mimi Zohar
Date: Thu Mar 31 2016 - 11:55:50 EST

On Thu, 2016-03-31 at 16:18 +0100, David Howells wrote:
> Mimi Zohar <zohar@xxxxxxxxxxxxxxxxxx> wrote:

> > > You said you didn't want this option above (to quote: In this patch, the
> > > choice should be between checking just the builtin trusted keys or both the
> > > builtin trusted and secondary keys.)
> >
> > Does the ability of adding builtin X.509 certificates directly to the
> > IMA keyring already exist or is it something that still needs to be
> > done? Assuming the latter, this option would be added with the ability
> > of adding X.509 certificates directly to the IMA keyring.
> I don't know what you mean by "directly" here. Even without this patch, you
> can already add X.509 certs to the .ima keyring, both at compile time

I'm must be missing something obvious here. I need to review the
patches again. The builtin keys are loaded onto
the .builtin_trusted_keys keyring, not the IMA keyring.


> and at
> runtime. This patch doesn't take that away - except by explicitly setting the
> option to prevent runtime addition.
> David