diff options
author | David Howells <dhowells@redhat.com> | 2014-09-16 12:36:06 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-09-16 12:36:06 -0400 |
commit | c06cfb08b88dfbe13be44a69ae2fdc3a7c902d81 (patch) | |
tree | 8bc0e3794ffb426b3cbb2c0d7c2dbbd4b28e3054 /security/keys/big_key.c | |
parent | 614d8c39014c185aa0f7254f0a470cc33fc1b284 (diff) |
KEYS: Remove key_type::match in favour of overriding default by match_preparse
A previous patch added a ->match_preparse() method to the key type. This is
allowed to override the function called by the iteration algorithm.
Therefore, we can just set a default that simply checks for an exact match of
the key description with the original criterion data and allow match_preparse
to override it as needed.
The key_type::match op is then redundant and can be removed, as can the
user_match() function.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'security/keys/big_key.c')
-rw-r--r-- | security/keys/big_key.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/security/keys/big_key.c b/security/keys/big_key.c index 4045c13a761a..b6adb94f6d52 100644 --- a/security/keys/big_key.c +++ b/security/keys/big_key.c | |||
@@ -36,7 +36,6 @@ struct key_type key_type_big_key = { | |||
36 | .preparse = big_key_preparse, | 36 | .preparse = big_key_preparse, |
37 | .free_preparse = big_key_free_preparse, | 37 | .free_preparse = big_key_free_preparse, |
38 | .instantiate = generic_key_instantiate, | 38 | .instantiate = generic_key_instantiate, |
39 | .match = user_match, | ||
40 | .revoke = big_key_revoke, | 39 | .revoke = big_key_revoke, |
41 | .destroy = big_key_destroy, | 40 | .destroy = big_key_destroy, |
42 | .describe = big_key_describe, | 41 | .describe = big_key_describe, |