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>
This commit is contained in:
@ -148,7 +148,7 @@ The Search Algorithm
|
||||
|
||||
A search of any particular keyring proceeds in the following fashion:
|
||||
|
||||
1) When the key management code searches for a key (keyring_search_aux) it
|
||||
1) When the key management code searches for a key (keyring_search_rcu) it
|
||||
firstly calls key_permission(SEARCH) on the keyring it's starting with,
|
||||
if this denies permission, it doesn't search further.
|
||||
|
||||
|
Reference in New Issue
Block a user