Lines Matching refs:dest_keyring

206 			 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()
292 if (dest_keyring) in construct_get_dest_keyring()
296 dest_keyring = key_get(cred->process_keyring); in construct_get_dest_keyring()
297 if (dest_keyring) in construct_get_dest_keyring()
302 dest_keyring = key_get( in construct_get_dest_keyring()
306 if (dest_keyring) in construct_get_dest_keyring()
310 dest_keyring = in construct_get_dest_keyring()
315 dest_keyring = key_get(cred->user->uid_keyring); in construct_get_dest_keyring()
332 if (dest_keyring && do_perm_check) { in construct_get_dest_keyring()
333 ret = key_permission(make_key_ref(dest_keyring, 1), in construct_get_dest_keyring()
336 key_put(dest_keyring); in construct_get_dest_keyring()
342 *_dest_keyring = dest_keyring; in construct_get_dest_keyring()
343 kleave(" [dk %d]", key_serial(dest_keyring)); in construct_get_dest_keyring()
355 struct key *dest_keyring, in construct_alloc_key() argument
388 if (dest_keyring) { in construct_alloc_key()
389 ret = __key_link_begin(dest_keyring, &ctx->index_key, &edit); in construct_alloc_key()
403 if (dest_keyring) in construct_alloc_key()
407 if (dest_keyring) in construct_alloc_key()
408 __key_link_end(dest_keyring, &ctx->index_key, edit); in construct_alloc_key()
420 if (dest_keyring) { in construct_alloc_key()
421 ret = __key_link_check_live_key(dest_keyring, key); in construct_alloc_key()
424 __key_link_end(dest_keyring, &ctx->index_key, edit); in construct_alloc_key()
458 struct key *dest_keyring, in construct_key_and_link() argument
470 ret = construct_get_dest_keyring(&dest_keyring); in construct_key_and_link()
480 ret = construct_alloc_key(ctx, dest_keyring, flags, user, &key); in construct_key_and_link()
485 dest_keyring); in construct_key_and_link()
496 key_put(dest_keyring); in construct_key_and_link()
504 key_put(dest_keyring); in construct_key_and_link()
542 struct key *dest_keyring, in request_key_and_link() argument
561 callout_info, callout_len, aux, dest_keyring, flags); in request_key_and_link()
576 if (dest_keyring) { in request_key_and_link()
577 ret = key_link(dest_keyring, key); in request_key_and_link()
594 aux, dest_keyring, flags); in request_key_and_link()