1 Linux 5.2 commit dcf49dbc8077) adds a 'recurse' flag for keyring searches.
3 --- a/libcfs/libcfs/crypto/keyring.c
4 +++ b/libcfs/libcfs/crypto/keyring.c
5 @@ -138,7 +138,11 @@ static struct key *search_llcrypt_keyrin
7 key_ref_t keyref = make_key_ref(keyring, true /* possessed */);
9 +#ifdef HAVE_KEYRING_SEARCH_4ARGS
10 keyref = keyring_search(keyref, type, description, false);
12 + keyref = keyring_search(keyref, type, description);
15 if (PTR_ERR(keyref) == -EAGAIN || /* not found */
16 PTR_ERR(keyref) == -EKEYREVOKED) /* recently invalidated */