linux/security/keys
David Howells 4bdf0bc300 KEYS: Introduce a search context structure
Search functions pass around a bunch of arguments, each of which gets copied
with each call.  Introduce a search context structure to hold these.

Whilst we're at it, create a search flag that indicates whether the search
should be directly to the description or whether it should iterate through all
keys looking for a non-description match.

This will be useful when keyrings use a generic data struct with generic
routines to manage their content as the search terms can just be passed
through to the iterator callback function.

Also, for future use, the data to be supplied to the match function is
separated from the description pointer in the search context.  This makes it
clear which is being supplied.

Signed-off-by: David Howells <dhowells@redhat.com>
2013-09-24 10:35:15 +01:00
..
encrypted-keys
compat.c
gc.c
internal.h KEYS: Introduce a search context structure 2013-09-24 10:35:15 +01:00
Kconfig
key.c KEYS: Consolidate the concept of an 'index key' for key access 2013-09-24 10:35:15 +01:00
keyctl.c
keyring.c KEYS: Introduce a search context structure 2013-09-24 10:35:15 +01:00
Makefile
permission.c
proc.c KEYS: Introduce a search context structure 2013-09-24 10:35:15 +01:00
process_keys.c KEYS: Introduce a search context structure 2013-09-24 10:35:15 +01:00
request_key.c KEYS: Introduce a search context structure 2013-09-24 10:35:15 +01:00
request_key_auth.c KEYS: Introduce a search context structure 2013-09-24 10:35:15 +01:00
sysctl.c
trusted.c
trusted.h
user_defined.c KEYS: Introduce a search context structure 2013-09-24 10:35:15 +01:00