Re: [PATCH 6/9] KEYS: Trusted: Use key preparsing

From: David Howells
Date: Thu Nov 14 2013 - 10:51:23 EST


Mimi Zohar <zohar@xxxxxxxxxxxxxxxxxx> wrote:

> > - * trusted_instantiate - create a new trusted key
> > + * trusted_preparse - Preparse data for an trusted key
> > *
> > - * Unseal an existing trusted blob or, for a new key, get a
> > - * random key, then seal and create a trusted key-type key,
> > - * adding it to the specified keyring.
> > + * Decrypt an existing encrypted datablob or create a new encrypted key
> > + * based on a kernel random number.
>
> Not sure why the change in terminology from unsealing/trusted blob to
> decrypt/encrypted blob.

Because the "Unseal an existing trusted blob ..." bit is still attached to the
trusted_instantiate() function. However, even what I wrote is still not a
good description of the trusted_preparse(), so I'll reduce it to just:

/*
* trusted_preparse - Preparse the payload data for an trusted key
*
* On success, return 0. Otherwise return errno.
*/

> trusted_preparse() always fails, since ret is initialized to -ENOMEM and
> never set.

Fixed.

Thanks,
David
--
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/