keys: Provide request_key_rcu()
authorDavid Howells <dhowells@redhat.com>
Wed, 19 Jun 2019 15:10:15 +0000 (16:10 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 19 Jun 2019 15:10:15 +0000 (16:10 +0100)
commit896f1950e5944532b971d880a6bae7fba3b6a8d3
tree8bf2eddc61af7f782bdd579e87fa0f7760ea5ced
parente59428f721ee096d8a020504ea908a6f0d952735
keys: Provide request_key_rcu()

Provide a request_key_rcu() function that can be used to request a key
under RCU conditions.  It can only search and check permissions; it cannot
allocate a new key, upcall or wait for an upcall to complete.  It may
return a partially constructed key.

Signed-off-by: David Howells <dhowells@redhat.com>
Documentation/security/keys/core.rst
Documentation/security/keys/request-key.rst
include/linux/key.h
security/keys/request_key.c