diff options
author | Dave Jiang <dave.jiang@intel.com> | 2018-12-04 19:31:27 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-12-14 02:54:12 +0100 |
commit | 76ef5e17252789da79db78341851922af0c16181 (patch) | |
tree | 63722403def0e1cc28f4bfeecd4284081753dea7 /security/keys | |
parent | acpi/nfit, libnvdimm: Store dimm id as a member to struct nvdimm (diff) | |
download | linux-76ef5e17252789da79db78341851922af0c16181.tar.xz linux-76ef5e17252789da79db78341851922af0c16181.zip |
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 'security/keys')
-rw-r--r-- | security/keys/internal.h | 2 | ||||
-rw-r--r-- | security/keys/process_keys.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/security/keys/internal.h b/security/keys/internal.h index 74cb0ff42fed..479909b858c7 100644 --- a/security/keys/internal.h +++ b/security/keys/internal.h @@ -158,8 +158,6 @@ extern struct key *request_key_and_link(struct key_type *type, extern bool lookup_user_key_possessed(const struct key *key, const struct key_match_data *match_data); -extern key_ref_t lookup_user_key(key_serial_t id, unsigned long flags, - key_perm_t perm); #define KEY_LOOKUP_CREATE 0x01 #define KEY_LOOKUP_PARTIAL 0x02 #define KEY_LOOKUP_FOR_UNLINK 0x04 diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c index d5b25e535d3a..ec4fd4531224 100644 --- a/security/keys/process_keys.c +++ b/security/keys/process_keys.c @@ -755,6 +755,7 @@ reget_creds: put_cred(ctx.cred); goto try_again; } +EXPORT_SYMBOL(lookup_user_key); /* * Join the named keyring as the session keyring if possible else attempt to |