[Fedora 19/19] keys: Chagne default lookup method for key type asymmetric
Josh Boyer
jwboyer at gmail.com
Thu Sep 5 13:03:17 UTC 2013
On Wed, Sep 4, 2013 at 5:24 PM, Vivek Goyal <vgoyal at redhat.com> wrote:
> integrity code looks for a asymmetric key in a keyring based on partial
> id and not based on full description. Change the default lookup method
> so that a key can be found. Thanks to David Howells for suggesting the
> fix.
>
> Suggested-by: David Howells <dhowells at redhat.com>
> Signed-off-by: Vivek Goyal <vgoyal at redhat.com>
Shouldn't this be at the beginning of the series? All of the
searching functionality needs this before it actually works, right?
josh
> ---
> crypto/asymmetric_keys/asymmetric_type.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/crypto/asymmetric_keys/asymmetric_type.c b/crypto/asymmetric_keys/asymmetric_type.c
> index cf80765..b77eb53 100644
> --- a/crypto/asymmetric_keys/asymmetric_type.c
> +++ b/crypto/asymmetric_keys/asymmetric_type.c
> @@ -209,6 +209,7 @@ struct key_type key_type_asymmetric = {
> .match = asymmetric_key_match,
> .destroy = asymmetric_key_destroy,
> .describe = asymmetric_key_describe,
> + .def_lookup_type = KEYRING_SEARCH_LOOKUP_ITERATE,
> };
> EXPORT_SYMBOL_GPL(key_type_asymmetric);
>
> --
> 1.8.3.1
>
> _______________________________________________
> kernel mailing list
> kernel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/kernel
More information about the kernel
mailing list