Re: [RFC PATCH] X.509: Don't check the signature on apparently self-signed keys [ver #2]

From: Petko Manolov
Date: Wed Jan 06 2016 - 12:00:30 EST


On 16-01-06 13:21:27, David Howells wrote:
> Mimi Zohar <zohar@xxxxxxxxxxxxxxxxxx> wrote:
>
> > The x509_validate_trust() was originally added for IMA to ensure, on a
> > secure boot system, a certificate chain of trust rooted in hardware. The IMA
> > MOK keyring extends this certificate chain of trust to the running system.
>
> The problem is that because 'trusted' is a boolean, a key in the IMA MOK
> keyring will permit addition to the system keyring.

If this is true the i am clearly doing the wrong thing. The CA hierarchy should
run top-bottom, not the other way around.

IMA MOK was introduced mainly because .system keyring was static at the time.
Assuming i have my root certificate in .system how can i add more keys to this
keyring? The new keys have been signed by my root CA? Is this possible since
your October patch-set or i've been missing something this whole time?


Petko
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/