Add a 'recurse' flag for keyring searches so that the flag can be omitted and recursion disabled, thereby allowing just the nominated keyring to be searched and none of the children.
Showing the changes to include/linux (1 of 14 files). Show all
Unified · Split
| @@ -341,7 +341,8 @@ extern int keyring_clear(struct key *keyring); · 340 unmodified lines | |||
| 341 | 341 | ||
| 342 | extern key_ref_t keyring_search(key_ref_t keyring, | 342 | extern key_ref_t keyring_search(key_ref_t keyring, |
| 343 | struct key_type *type, | 343 | struct key_type *type, |
| 344 | const char *description); | 344 | const char *description, |
| 345 | bool recurse); | ||
| 345 | 346 | ||
| 346 | extern int keyring_add_key(struct key *keyring, | 347 | extern int keyring_add_key(struct key *keyring, |
| 347 | struct key *key); | 348 | struct key *key); |