Home
last modified time | relevance | path

Searched refs:dest_keyring (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/security/keys/
Drequest_key.c206 struct key *dest_keyring) in construct_key() argument
221 dest_keyring); in construct_key()
258 struct key *dest_keyring = *_dest_keyring, *authkey; in construct_get_dest_keyring() local
261 kenter("%p", dest_keyring); in construct_get_dest_keyring()
264 if (dest_keyring) { in construct_get_dest_keyring()
266 key_get(dest_keyring); in construct_get_dest_keyring()
281 dest_keyring = in construct_get_dest_keyring()
282 key_get(rka->dest_keyring); in construct_get_dest_keyring()
284 if (dest_keyring) { in construct_get_dest_keyring()
291 dest_keyring = key_get(cred->thread_keyring); in construct_get_dest_keyring()
[all …]
Drequest_key_auth.c128 key_put(rka->dest_keyring); in free_request_key_auth()
152 size_t callout_len, struct key *dest_keyring) in request_key_auth_new() argument
199 rka->dest_keyring = key_get(dest_keyring); in request_key_auth_new()
Dinternal.h156 struct key *dest_keyring,
196 struct key *dest_keyring; member
207 struct key *dest_keyring);
Dkeyctl.c1007 *_dest_keyring = key_get(rka->dest_keyring); in get_instantiation_keyring()
1046 struct key *instkey, *dest_keyring; in keyctl_instantiate_key_common() local
1087 ret = get_instantiation_keyring(ringid, rka, &dest_keyring); in keyctl_instantiate_key_common()
1093 dest_keyring, instkey); in keyctl_instantiate_key_common()
1095 key_put(dest_keyring); in keyctl_instantiate_key_common()
1211 struct key *instkey, *dest_keyring; in keyctl_reject_key() local
1238 ret = get_instantiation_keyring(ringid, rka, &dest_keyring); in keyctl_reject_key()
1244 dest_keyring, instkey); in keyctl_reject_key()
1246 key_put(dest_keyring); in keyctl_reject_key()
Dkeyring.c964 static bool keyring_detect_restriction_cycle(const struct key *dest_keyring, in keyring_detect_restriction_cycle() argument
969 if (keyres->key == dest_keyring) in keyring_detect_restriction_cycle()
Dprocess_keys.c668 key = rka->dest_keyring; in lookup_user_key()
/Linux-v4.19/crypto/asymmetric_keys/
Drestrict.c74 int restrict_link_by_signature(struct key *dest_keyring, in restrict_link_by_signature() argument
122 static int key_or_keyring_common(struct key *dest_keyring, in key_or_keyring_common() argument
133 if (!dest_keyring) in key_or_keyring_common()
135 else if (dest_keyring->type != &key_type_keyring) in key_or_keyring_common()
199 key = find_asymmetric_key(dest_keyring, sig->auth_ids[0], in key_or_keyring_common()
234 int restrict_link_by_key_or_keyring(struct key *dest_keyring, in restrict_link_by_key_or_keyring() argument
239 return key_or_keyring_common(dest_keyring, type, payload, trusted, in restrict_link_by_key_or_keyring()
261 int restrict_link_by_key_or_keyring_chain(struct key *dest_keyring, in restrict_link_by_key_or_keyring_chain() argument
266 return key_or_keyring_common(dest_keyring, type, payload, trusted, in restrict_link_by_key_or_keyring_chain()
/Linux-v4.19/certs/
Dsystem_keyring.c37 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() argument
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()
/Linux-v4.19/include/crypto/
Dpublic_key.h53 extern int restrict_link_by_signature(struct key *dest_keyring,
58 extern int restrict_link_by_key_or_keyring(struct key *dest_keyring,
/Linux-v4.19/include/linux/
Dkey.h131 typedef int (*key_restrict_link_func_t)(struct key *dest_keyring,
/Linux-v4.19/Documentation/security/keys/
Drequest-key.rst44 key_serial_t dest_keyring);
Dcore.rst425 key_serial_t dest_keyring);
596 key_serial_t dest_keyring);