diff options
author | David Howells <dhowells@redhat.com> | 2019-06-19 18:10:15 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2019-06-19 18:10:15 +0300 |
commit | e59428f721ee096d8a020504ea908a6f0d952735 (patch) | |
tree | 4efe82c08f4a65a5a8834a7b75f831569e03c3ba /security/keys/internal.h | |
parent | a09003b5d7cea71ce4b59e409d5a7158c789e1b4 (diff) | |
download | linux-e59428f721ee096d8a020504ea908a6f0d952735.tar.xz |
keys: Move the RCU locks outwards from the keyring search functions
Move the RCU locks outwards from the keyring search functions so that it
will become possible to provide an RCU-capable partial request_key()
function in a later commit.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'security/keys/internal.h')
-rw-r--r-- | security/keys/internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/keys/internal.h b/security/keys/internal.h index d04bff631227..3d5c08db74d2 100644 --- a/security/keys/internal.h +++ b/security/keys/internal.h @@ -139,11 +139,11 @@ struct keyring_search_context { extern bool key_default_cmp(const struct key *key, const struct key_match_data *match_data); -extern key_ref_t keyring_search_aux(key_ref_t keyring_ref, +extern key_ref_t keyring_search_rcu(key_ref_t keyring_ref, struct keyring_search_context *ctx); -extern key_ref_t search_my_process_keyrings(struct keyring_search_context *ctx); -extern key_ref_t search_process_keyrings(struct keyring_search_context *ctx); +extern key_ref_t search_cred_keyrings_rcu(struct keyring_search_context *ctx); +extern key_ref_t search_process_keyrings_rcu(struct keyring_search_context *ctx); extern struct key *find_keyring_by_name(const char *name, bool uid_keyring); |