lkml.org 
[lkml]   [2020]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v4] certs: Add EFI_CERT_X509_GUID support for dbx entries
Date
Eric Snowberg <eric.snowberg@oracle.com> wrote:

> Add support for EFI_CERT_X509_GUID dbx entries. When a EFI_CERT_X509_GUID
> is found, it is added as an asymmetrical key to the .blacklist keyring.
> Anytime the .platform keyring is used, the keys in the .blacklist keyring
> are referenced, if a matching key is found, the key will be rejected.

Ummm... Why this way and not as a blacklist key which takes up less space?
I'm guessing that you're using the key chain matching logic. We really only
need to blacklist the key IDs.

Also, what should happen if a revocation cert rejected by the blacklist?

> +int mark_key_revocationlisted(const char *data, size_t size)

Hmmm... The name looks wrong, but I can see the potential issue that kernel
keys can actually be marked revoked as a separate concept. How about
add_key_to_revocation_list() and is_key_on_revocation_list().

David

\
 
 \ /
  Last update: 2020-12-10 10:52    [W:0.110 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site