aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2023-03-21 11:07:04 +0100
committerHannes Reinecke <hare@suse.de>2023-03-29 11:31:32 +0200
commitd8f577bf6cb6e946f3c5b99253330d5ae8d7e6ac (patch)
treee9c265f1222383173639ba071442380d7fbb5777
parent2f9c4b60407ad50fd9b7bddebfef752fa331372b (diff)
downloadscsi-devel-d8f577bf6cb6e946f3c5b99253330d5ae8d7e6ac.tar.gz
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>
-rw-r--r--security/keys/key.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/keys/key.c b/security/keys/key.c
index 5c0c7df833f8a9..bd1b7d45df9014 100644
--- a/security/keys/key.c
+++ b/security/keys/key.c
@@ -693,6 +693,7 @@ error:
spin_unlock(&key_serial_lock);
return key;
}
+EXPORT_SYMBOL_GPL(key_lookup);
/*
* Find and lock the specified key type against removal.