/kernel/linux/linux-5.10/security/keys/ |
H A D | request_key.c | 228 struct key *dest_keyring) in construct_key() 238 dest_keyring); in construct_key() 269 struct key *dest_keyring = *_dest_keyring, *authkey; in construct_get_dest_keyring() local 272 kenter("%p", dest_keyring); in construct_get_dest_keyring() 275 if (dest_keyring) { in construct_get_dest_keyring() 277 key_get(dest_keyring); in construct_get_dest_keyring() 292 dest_keyring = in construct_get_dest_keyring() 293 key_get(rka->dest_keyring); in construct_get_dest_keyring() 295 if (dest_keyring) { in construct_get_dest_keyring() 303 dest_keyring in construct_get_dest_keyring() 226 construct_key(struct key *key, const void *callout_info, size_t callout_len, void *aux, struct key *dest_keyring) construct_key() argument 369 construct_alloc_key(struct keyring_search_context *ctx, struct key *dest_keyring, unsigned long flags, struct key_user *user, struct key **_key) construct_alloc_key() argument 489 construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) construct_key_and_link() argument 574 request_key_and_link(struct key_type *type, const char *description, struct key_tag *domain_tag, const void *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) request_key_and_link() argument [all...] |
H A D | request_key_auth.c | 111 key_put(rka->dest_keyring); in free_request_key_auth() 163 struct key *dest_keyring) in request_key_auth_new() 211 rka->dest_keyring = key_get(dest_keyring); in request_key_auth_new() 161 request_key_auth_new(struct key *target, const char *op, const void *callout_info, size_t callout_len, struct key *dest_keyring) request_key_auth_new() argument
|
H A D | keyctl.c | 1139 *_dest_keyring = key_get(rka->dest_keyring); in get_instantiation_keyring() 1178 struct key *instkey, *dest_keyring; in keyctl_instantiate_key_common() local 1219 ret = get_instantiation_keyring(ringid, rka, &dest_keyring); in keyctl_instantiate_key_common() 1225 dest_keyring, instkey); in keyctl_instantiate_key_common() 1227 key_put(dest_keyring); in keyctl_instantiate_key_common() 1340 struct key *instkey, *dest_keyring; in keyctl_reject_key() local 1367 ret = get_instantiation_keyring(ringid, rka, &dest_keyring); in keyctl_reject_key() 1373 dest_keyring, instkey); in keyctl_reject_key() 1375 key_put(dest_keyring); in keyctl_reject_key()
|
H A D | internal.h | 163 struct key *dest_keyring, 219 struct key *dest_keyring);
|
H A D | keyring.c | 997 static bool keyring_detect_restriction_cycle(const struct key *dest_keyring, in keyring_detect_restriction_cycle() argument 1002 if (keyres->key == dest_keyring) in keyring_detect_restriction_cycle()
|
H A D | process_keys.c | 735 key = rka->dest_keyring; in lookup_user_key()
|
/kernel/linux/linux-6.6/security/keys/ |
H A D | request_key.c | 228 struct key *dest_keyring) in construct_key() 238 dest_keyring); in construct_key() 269 struct key *dest_keyring = *_dest_keyring, *authkey; in construct_get_dest_keyring() local 272 kenter("%p", dest_keyring); in construct_get_dest_keyring() 275 if (dest_keyring) { in construct_get_dest_keyring() 277 key_get(dest_keyring); in construct_get_dest_keyring() 292 dest_keyring = in construct_get_dest_keyring() 293 key_get(rka->dest_keyring); in construct_get_dest_keyring() 295 if (dest_keyring) { in construct_get_dest_keyring() 303 dest_keyring in construct_get_dest_keyring() 226 construct_key(struct key *key, const void *callout_info, size_t callout_len, void *aux, struct key *dest_keyring) construct_key() argument 369 construct_alloc_key(struct keyring_search_context *ctx, struct key *dest_keyring, unsigned long flags, struct key_user *user, struct key **_key) construct_alloc_key() argument 489 construct_key_and_link(struct keyring_search_context *ctx, const char *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) construct_key_and_link() argument 574 request_key_and_link(struct key_type *type, const char *description, struct key_tag *domain_tag, const void *callout_info, size_t callout_len, void *aux, struct key *dest_keyring, unsigned long flags) request_key_and_link() argument [all...] |
H A D | request_key_auth.c | 111 key_put(rka->dest_keyring); in free_request_key_auth() 163 struct key *dest_keyring) in request_key_auth_new() 211 rka->dest_keyring = key_get(dest_keyring); in request_key_auth_new() 161 request_key_auth_new(struct key *target, const char *op, const void *callout_info, size_t callout_len, struct key *dest_keyring) request_key_auth_new() argument
|
H A D | keyctl.c | 1139 *_dest_keyring = key_get(rka->dest_keyring); in get_instantiation_keyring() 1178 struct key *instkey, *dest_keyring; in keyctl_instantiate_key_common() local 1219 ret = get_instantiation_keyring(ringid, rka, &dest_keyring); in keyctl_instantiate_key_common() 1225 dest_keyring, instkey); in keyctl_instantiate_key_common() 1227 key_put(dest_keyring); in keyctl_instantiate_key_common() 1340 struct key *instkey, *dest_keyring; in keyctl_reject_key() local 1367 ret = get_instantiation_keyring(ringid, rka, &dest_keyring); in keyctl_reject_key() 1373 dest_keyring, instkey); in keyctl_reject_key() 1375 key_put(dest_keyring); in keyctl_reject_key()
|
H A D | internal.h | 163 struct key *dest_keyring, 217 struct key *dest_keyring);
|
H A D | keyring.c | 997 static bool keyring_detect_restriction_cycle(const struct key *dest_keyring, in keyring_detect_restriction_cycle() argument 1002 if (keyres->key == dest_keyring) in keyring_detect_restriction_cycle()
|
H A D | process_keys.c | 735 key = rka->dest_keyring; in lookup_user_key()
|
/kernel/linux/linux-6.6/certs/ |
H A D | system_keyring.c | 37 * @dest_keyring: Keyring being linked to. 45 int restrict_link_by_builtin_trusted(struct key *dest_keyring, in restrict_link_by_builtin_trusted() argument 50 return restrict_link_by_signature(dest_keyring, type, payload, in restrict_link_by_builtin_trusted() 56 * @dest_keyring: Keyring being linked to. 65 int restrict_link_by_digsig_builtin(struct key *dest_keyring, in restrict_link_by_digsig_builtin() argument 70 return restrict_link_by_digsig(dest_keyring, type, payload, in restrict_link_by_digsig_builtin() 78 * @dest_keyring: Keyring being linked to. 88 struct key *dest_keyring, in restrict_link_by_builtin_and_secondary_trusted() 97 dest_keyring == secondary_trusted_keys && in restrict_link_by_builtin_and_secondary_trusted() 102 return restrict_link_by_signature(dest_keyring, typ in restrict_link_by_builtin_and_secondary_trusted() 87 restrict_link_by_builtin_and_secondary_trusted( struct key *dest_keyring, const struct key_type *type, const union key_payload *payload, struct key *restrict_key) restrict_link_by_builtin_and_secondary_trusted() argument 117 restrict_link_by_digsig_builtin_and_secondary(struct key *dest_keyring, const struct key_type *type, const union key_payload *payload, struct key *restrict_key) restrict_link_by_digsig_builtin_and_secondary() argument 206 restrict_link_by_builtin_secondary_and_machine( struct key *dest_keyring, const struct key_type *type, const union key_payload *payload, struct key *restrict_key) restrict_link_by_builtin_secondary_and_machine() argument [all...] |
H A D | blacklist.c | 301 static int restrict_link_for_blacklist(struct key *dest_keyring, in restrict_link_for_blacklist() argument
|
/kernel/linux/linux-6.6/crypto/asymmetric_keys/ |
H A D | restrict.c | 55 * @dest_keyring: Keyring being linked to. 70 int restrict_link_by_signature(struct key *dest_keyring, in restrict_link_by_signature() argument 113 * @dest_keyring: Keyring being linked to. 126 int restrict_link_by_ca(struct key *dest_keyring, in restrict_link_by_ca() argument 153 * @dest_keyring: Keyring being linked to. 167 int restrict_link_by_digsig(struct key *dest_keyring, in restrict_link_by_digsig() argument 191 return restrict_link_by_signature(dest_keyring, type, payload, in restrict_link_by_digsig() 202 static int key_or_keyring_common(struct key *dest_keyring, in key_or_keyring_common() argument 213 if (!dest_keyring) in key_or_keyring_common() 215 else if (dest_keyring in key_or_keyring_common() 324 restrict_link_by_key_or_keyring(struct key *dest_keyring, const struct key_type *type, const union key_payload *payload, struct key *trusted) restrict_link_by_key_or_keyring() argument 352 restrict_link_by_key_or_keyring_chain(struct key *dest_keyring, const struct key_type *type, const union key_payload *payload, struct key *trusted) restrict_link_by_key_or_keyring_chain() argument [all...] |
/kernel/linux/linux-5.10/crypto/asymmetric_keys/ |
H A D | restrict.c | 55 * @dest_keyring: Keyring being linked to. 70 int restrict_link_by_signature(struct key *dest_keyring, in restrict_link_by_signature() argument 118 static int key_or_keyring_common(struct key *dest_keyring, in key_or_keyring_common() argument 129 if (!dest_keyring) in key_or_keyring_common() 131 else if (dest_keyring->type != &key_type_keyring) in key_or_keyring_common() 161 * dest_keyring) and identify the key that was in key_or_keyring_common() 165 * signing key specified for dest_keyring. in key_or_keyring_common() 195 key = find_asymmetric_key(dest_keyring, sig->auth_ids[0], in key_or_keyring_common() 215 * @dest_keyring: Keyring being linked to. 230 int restrict_link_by_key_or_keyring(struct key *dest_keyring, in restrict_link_by_key_or_keyring() argument 257 restrict_link_by_key_or_keyring_chain(struct key *dest_keyring, const struct key_type *type, const union key_payload *payload, struct key *trusted) restrict_link_by_key_or_keyring_chain() argument [all...] |
/kernel/linux/linux-6.6/include/crypto/ |
H A D | public_key.h | 61 extern int restrict_link_by_signature(struct key *dest_keyring, 66 extern int restrict_link_by_key_or_keyring(struct key *dest_keyring, 77 extern int restrict_link_by_ca(struct key *dest_keyring, 81 int restrict_link_by_digsig(struct key *dest_keyring, 86 static inline int restrict_link_by_ca(struct key *dest_keyring, in restrict_link_by_ca() argument 94 static inline int restrict_link_by_digsig(struct key *dest_keyring, in restrict_link_by_digsig() argument
|
/kernel/linux/linux-5.10/certs/ |
H A D | system_keyring.c | 37 int restrict_link_by_builtin_trusted(struct key *dest_keyring, in restrict_link_by_builtin_trusted() argument 42 return restrict_link_by_signature(dest_keyring, type, payload, in restrict_link_by_builtin_trusted() 56 struct key *dest_keyring, in restrict_link_by_builtin_and_secondary_trusted() 65 dest_keyring == secondary_trusted_keys && in restrict_link_by_builtin_and_secondary_trusted() 70 return restrict_link_by_signature(dest_keyring, type, payload, in restrict_link_by_builtin_and_secondary_trusted() 55 restrict_link_by_builtin_and_secondary_trusted( struct key *dest_keyring, const struct key_type *type, const union key_payload *payload, struct key *restrict_key) restrict_link_by_builtin_and_secondary_trusted() argument
|
/kernel/linux/linux-5.10/include/crypto/ |
H A D | public_key.h | 60 extern int restrict_link_by_signature(struct key *dest_keyring, 65 extern int restrict_link_by_key_or_keyring(struct key *dest_keyring,
|
/kernel/linux/linux-6.6/include/keys/ |
H A D | system_keyring.h | 26 int restrict_link_by_digsig_builtin(struct key *dest_keyring, 64 struct key *dest_keyring,
|
H A D | request_key_auth-type.h | 19 struct key *dest_keyring; member
|
/kernel/linux/linux-5.10/include/keys/ |
H A D | request_key_auth-type.h | 19 struct key *dest_keyring; member
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | key.h | 165 typedef int (*key_restrict_link_func_t)(struct key *dest_keyring,
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | key.h | 171 typedef int (*key_restrict_link_func_t)(struct key *dest_keyring,
|