security/keys: export key_lookup()
authorHannes Reinecke <hare@suse.de>
Thu, 24 Aug 2023 14:39:13 +0000 (16:39 +0200)
committerKeith Busch <kbusch@kernel.org>
Wed, 11 Oct 2023 17:11:54 +0000 (10:11 -0700)
commit037c34318a479294cdb98dc8018edd5d191b68c0
tree66057f8471e73a0bdc3ac1f0589c13eacb48d598
parent501cc6f4aca8dc0958c4d9716f0233ba7cff4830
security/keys: export key_lookup()

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.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
include/linux/key.h
security/keys/key.c