Lines Matching refs:dest_keyring

225 			 struct key *dest_keyring)  in construct_key()  argument
235 dest_keyring); in construct_key()
266 struct key *dest_keyring = *_dest_keyring, *authkey; in construct_get_dest_keyring() local
269 kenter("%p", dest_keyring); in construct_get_dest_keyring()
272 if (dest_keyring) { in construct_get_dest_keyring()
274 key_get(dest_keyring); in construct_get_dest_keyring()
289 dest_keyring = in construct_get_dest_keyring()
290 key_get(rka->dest_keyring); in construct_get_dest_keyring()
292 if (dest_keyring) { in construct_get_dest_keyring()
300 dest_keyring = key_get(cred->thread_keyring); in construct_get_dest_keyring()
301 if (dest_keyring) in construct_get_dest_keyring()
306 dest_keyring = key_get(cred->process_keyring); in construct_get_dest_keyring()
307 if (dest_keyring) in construct_get_dest_keyring()
312 dest_keyring = key_get(cred->session_keyring); in construct_get_dest_keyring()
314 if (dest_keyring) in construct_get_dest_keyring()
319 ret = look_up_user_keyrings(NULL, &dest_keyring); in construct_get_dest_keyring()
325 ret = look_up_user_keyrings(&dest_keyring, NULL); in construct_get_dest_keyring()
344 if (dest_keyring && do_perm_check) { in construct_get_dest_keyring()
345 ret = key_permission(make_key_ref(dest_keyring, 1), in construct_get_dest_keyring()
348 key_put(dest_keyring); in construct_get_dest_keyring()
354 *_dest_keyring = dest_keyring; in construct_get_dest_keyring()
355 kleave(" [dk %d]", key_serial(dest_keyring)); in construct_get_dest_keyring()
367 struct key *dest_keyring, in construct_alloc_key() argument
400 if (dest_keyring) { in construct_alloc_key()
401 ret = __key_link_lock(dest_keyring, &ctx->index_key); in construct_alloc_key()
404 ret = __key_link_begin(dest_keyring, &ctx->index_key, &edit); in construct_alloc_key()
420 if (dest_keyring) in construct_alloc_key()
421 __key_link(dest_keyring, key, &edit); in construct_alloc_key()
424 if (dest_keyring) in construct_alloc_key()
425 __key_link_end(dest_keyring, &ctx->index_key, edit); in construct_alloc_key()
437 if (dest_keyring) { in construct_alloc_key()
438 ret = __key_link_check_live_key(dest_keyring, key); in construct_alloc_key()
440 __key_link(dest_keyring, key, &edit); in construct_alloc_key()
441 __key_link_end(dest_keyring, &ctx->index_key, edit); in construct_alloc_key()
457 __key_link_end(dest_keyring, &ctx->index_key, edit); in construct_alloc_key()
477 struct key *dest_keyring, in construct_key_and_link() argument
489 ret = construct_get_dest_keyring(&dest_keyring); in construct_key_and_link()
499 ret = construct_alloc_key(ctx, dest_keyring, flags, user, &key); in construct_key_and_link()
504 dest_keyring); in construct_key_and_link()
515 key_put(dest_keyring); in construct_key_and_link()
523 key_put(dest_keyring); in construct_key_and_link()
564 struct key *dest_keyring, in request_key_and_link() argument
586 callout_info, callout_len, aux, dest_keyring, flags); in request_key_and_link()
606 if (dest_keyring) { in request_key_and_link()
617 if (dest_keyring) { in request_key_and_link()
618 ret = key_link(dest_keyring, key); in request_key_and_link()
638 aux, dest_keyring, flags); in request_key_and_link()