[PATCH 06/16] security/keys: export key_lookup()

David Howells dhowells at redhat.com
Thu Aug 10 06:41:27 PDT 2023


Hannes Reinecke <hare at suse.de> wrote:

> For in-kernel consumers one cannot readily assign a user (eg when
> running from a workqueue), so the normal key search permissions
> cannot be applied.
> This patch exports the 'key_lookup()' function for a simple lookup
> of keys without checking for permissions.
> 
> Cc: David Howells <dhowells at redhat.com>
> Signed-off-by: Hannes Reinecke <hare at suse.de>
> Reviewed-by: Sagi Grimberg <sagi at grimberg.me>
> ...
> +EXPORT_SYMBOL_GPL(key_lookup);

EXPORT_SYMBOL() please.

Otherwise:

Acked-by: David Howells <dhowells at redhat.com>




More information about the Linux-nvme mailing list