mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Acked-by: David Howells <[email protected]> Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
parent
d6548ae4d1
commit
76ef5e1725
3 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue