summaryrefslogtreecommitdiff
path: root/include/linux/key.h
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2018-12-04 21:31:27 +0300
committerDan Williams <dan.j.williams@intel.com>2018-12-14 04:54:12 +0300
commit76ef5e17252789da79db78341851922af0c16181 (patch)
tree63722403def0e1cc28f4bfeecd4284081753dea7 /include/linux/key.h
parentd6548ae4d16dc231dec22860c9c472bcb991fb15 (diff)
downloadlinux-76ef5e17252789da79db78341851922af0c16181.tar.xz
keys: Export lookup_user_key to external users
Export lookup_user_key() symbol in order to allow nvdimm passphrase update to retrieve user injected keys. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/key.h')
-rw-r--r--include/linux/key.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/key.h b/include/linux/key.h
index e58ee10f6e58..7099985e35a9 100644
--- a/include/linux/key.h
+++ b/include/linux/key.h
@@ -346,6 +346,9 @@ static inline key_serial_t key_serial(const struct key *key)
extern void key_set_timeout(struct key *, unsigned);
+extern key_ref_t lookup_user_key(key_serial_t id, unsigned long flags,
+ key_perm_t perm);
+
/*
* The permissions required on a key that we're looking up.
*/