History

keys: Add a 'recurse' flag for keyring searches

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.

David Howells committed 7 years ago

Commit dcf49db1 parent 355ef8e14 files · +34 −18Browse files

Showing the changes to include/linux (1 of 14 files). Show all

Unified · Split

include/linux/key.h+2−1
@@ -341,7 +341,8 @@ extern int keyring_clear(struct key *keyring); · 340 unmodified lines
341341
342342 extern key_ref_t keyring_search(key_ref_t keyring,
343343 struct key_type *type,
344− const char *description);
344+ const char *description,
345+ bool recurse);
345346
346347 extern int keyring_add_key(struct key *keyring,
347348 struct key *key);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t