| commit | 5ff8a5498d3445064e2d85fbb5b4662976a86c04 | [log] [tgz] |
|---|---|---|
| author | David Howells <dhowells@redhat.com> | Wed Aug 21 11:40:55 2024 +0100 |
| committer | David Howells <dhowells@redhat.com> | Wed Aug 21 13:04:45 2024 +0100 |
| tree | 237c524e204eda991a31460fc4e5f599886acdf7 | |
| parent | 8561d536e141b140943df23f2f837bac8780ffd9 [diff] |
keys: Provide a key_try_get() function and use it Add a key_try_get() function to try to get a ref on a key and switch code that's manipulating the key refcount directly to use it. This will allow a tracepoint to be emplaced there later. Signed-off-by: David Howells <dhowells@redhat.com> cc: Jarkko Sakkinen <jarkko@kernel.org> cc: keyrings@vger.kernel.org cc: linux-security-module@vger.kernel.org