diff options
author | David Howells <dhowells@redhat.com> | 2014-09-16 12:36:04 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-09-16 12:36:04 -0400 |
commit | 614d8c39014c185aa0f7254f0a470cc33fc1b284 (patch) | |
tree | e6408d142b72dda0420b0f96a58a05d1e4a309b8 /security | |
parent | 462919591a1791e76042dc5c1e0148715df59beb (diff) |
KEYS: Remove key_type::def_lookup_type
Remove key_type::def_lookup_type as it's no longer used. The information now
defaults to KEYRING_SEARCH_LOOKUP_DIRECT but may be overridden by
type->match_preparse().
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/keys/big_key.c | 1 | ||||
-rw-r--r-- | security/keys/internal.h | 11 | ||||
-rw-r--r-- | security/keys/user_defined.c | 2 |
3 files changed, 5 insertions, 9 deletions
diff --git a/security/keys/big_key.c b/security/keys/big_key.c index c2f91a0cf889..4045c13a761a 100644 --- a/security/keys/big_key.c +++ b/security/keys/big_key.c | |||
@@ -33,7 +33,6 @@ MODULE_LICENSE("GPL"); | |||
33 | */ | 33 | */ |
34 | struct key_type key_type_big_key = { | 34 | struct key_type key_type_big_key = { |
35 | .name = "big_key", | 35 | .name = "big_key", |
36 | .def_lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT, | ||
37 | .preparse = big_key_preparse, | 36 | .preparse = big_key_preparse, |
38 | .free_preparse = big_key_free_preparse, | 37 | .free_preparse = big_key_free_preparse, |
39 | .instantiate = generic_key_instantiate, | 38 | .instantiate = generic_key_instantiate, |
diff --git a/security/keys/internal.h b/security/keys/internal.h index 805e60b0b87e..b47cc532be1e 100644 --- a/security/keys/internal.h +++ b/security/keys/internal.h | |||
@@ -112,12 +112,11 @@ struct keyring_search_context { | |||
112 | const struct cred *cred; | 112 | const struct cred *cred; |
113 | struct key_match_data match_data; | 113 | struct key_match_data match_data; |
114 | unsigned flags; | 114 | unsigned flags; |
115 | #define KEYRING_SEARCH_LOOKUP_TYPE 0x0001 /* [as type->def_lookup_type] */ | 115 | #define KEYRING_SEARCH_NO_STATE_CHECK 0x0001 /* Skip state checks */ |
116 | #define KEYRING_SEARCH_NO_STATE_CHECK 0x0002 /* Skip state checks */ | 116 | #define KEYRING_SEARCH_DO_STATE_CHECK 0x0002 /* Override NO_STATE_CHECK */ |
117 | #define KEYRING_SEARCH_DO_STATE_CHECK 0x0004 /* Override NO_STATE_CHECK */ | 117 | #define KEYRING_SEARCH_NO_UPDATE_TIME 0x0004 /* Don't update times */ |
118 | #define KEYRING_SEARCH_NO_UPDATE_TIME 0x0008 /* Don't update times */ | 118 | #define KEYRING_SEARCH_NO_CHECK_PERM 0x0008 /* Don't check permissions */ |
119 | #define KEYRING_SEARCH_NO_CHECK_PERM 0x0010 /* Don't check permissions */ | 119 | #define KEYRING_SEARCH_DETECT_TOO_DEEP 0x0010 /* Give an error on excessive depth */ |
120 | #define KEYRING_SEARCH_DETECT_TOO_DEEP 0x0020 /* Give an error on excessive depth */ | ||
121 | 120 | ||
122 | int (*iterator)(const void *object, void *iterator_data); | 121 | int (*iterator)(const void *object, void *iterator_data); |
123 | 122 | ||
diff --git a/security/keys/user_defined.c b/security/keys/user_defined.c index ec8a56063b02..cd7e726e8646 100644 --- a/security/keys/user_defined.c +++ b/security/keys/user_defined.c | |||
@@ -26,7 +26,6 @@ static int logon_vet_description(const char *desc); | |||
26 | */ | 26 | */ |
27 | struct key_type key_type_user = { | 27 | struct key_type key_type_user = { |
28 | .name = "user", | 28 | .name = "user", |
29 | .def_lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT, | ||
30 | .preparse = user_preparse, | 29 | .preparse = user_preparse, |
31 | .free_preparse = user_free_preparse, | 30 | .free_preparse = user_free_preparse, |
32 | .instantiate = generic_key_instantiate, | 31 | .instantiate = generic_key_instantiate, |
@@ -48,7 +47,6 @@ EXPORT_SYMBOL_GPL(key_type_user); | |||
48 | */ | 47 | */ |
49 | struct key_type key_type_logon = { | 48 | struct key_type key_type_logon = { |
50 | .name = "logon", | 49 | .name = "logon", |
51 | .def_lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT, | ||
52 | .preparse = user_preparse, | 50 | .preparse = user_preparse, |
53 | .free_preparse = user_free_preparse, | 51 | .free_preparse = user_free_preparse, |
54 | .instantiate = generic_key_instantiate, | 52 | .instantiate = generic_key_instantiate, |