• Home
  • Raw
  • Download

Lines Matching refs:dest_keyring

205 			 struct key *dest_keyring)  in construct_key()  argument
220 dest_keyring); in construct_key()
257 struct key *dest_keyring = *_dest_keyring, *authkey; in construct_get_dest_keyring() local
260 kenter("%p", dest_keyring); in construct_get_dest_keyring()
263 if (dest_keyring) { in construct_get_dest_keyring()
265 key_get(dest_keyring); in construct_get_dest_keyring()
280 dest_keyring = in construct_get_dest_keyring()
281 key_get(rka->dest_keyring); in construct_get_dest_keyring()
283 if (dest_keyring) { in construct_get_dest_keyring()
290 dest_keyring = key_get(cred->thread_keyring); in construct_get_dest_keyring()
291 if (dest_keyring) in construct_get_dest_keyring()
295 dest_keyring = key_get(cred->process_keyring); in construct_get_dest_keyring()
296 if (dest_keyring) in construct_get_dest_keyring()
301 dest_keyring = key_get( in construct_get_dest_keyring()
305 if (dest_keyring) in construct_get_dest_keyring()
309 dest_keyring = in construct_get_dest_keyring()
314 dest_keyring = key_get(cred->user->uid_keyring); in construct_get_dest_keyring()
331 if (dest_keyring && do_perm_check) { in construct_get_dest_keyring()
332 ret = key_permission(make_key_ref(dest_keyring, 1), in construct_get_dest_keyring()
335 key_put(dest_keyring); in construct_get_dest_keyring()
341 *_dest_keyring = dest_keyring; in construct_get_dest_keyring()
342 kleave(" [dk %d]", key_serial(dest_keyring)); in construct_get_dest_keyring()
354 struct key *dest_keyring, in construct_alloc_key() argument
387 if (dest_keyring) { in construct_alloc_key()
388 ret = __key_link_begin(dest_keyring, &ctx->index_key, &edit); in construct_alloc_key()
402 if (dest_keyring) in construct_alloc_key()
406 if (dest_keyring) in construct_alloc_key()
407 __key_link_end(dest_keyring, &ctx->index_key, edit); in construct_alloc_key()
419 if (dest_keyring) { in construct_alloc_key()
420 ret = __key_link_check_live_key(dest_keyring, key); in construct_alloc_key()
423 __key_link_end(dest_keyring, &ctx->index_key, edit); in construct_alloc_key()
457 struct key *dest_keyring, in construct_key_and_link() argument
466 ret = construct_get_dest_keyring(&dest_keyring); in construct_key_and_link()
479 ret = construct_alloc_key(ctx, dest_keyring, flags, user, &key); in construct_key_and_link()
484 dest_keyring); in construct_key_and_link()
495 key_put(dest_keyring); in construct_key_and_link()
503 key_put(dest_keyring); in construct_key_and_link()
541 struct key *dest_keyring, in request_key_and_link() argument
560 callout_info, callout_len, aux, dest_keyring, flags); in request_key_and_link()
575 if (dest_keyring) { in request_key_and_link()
576 construct_get_dest_keyring(&dest_keyring); in request_key_and_link()
577 ret = key_link(dest_keyring, key); in request_key_and_link()
578 key_put(dest_keyring); in request_key_and_link()
595 aux, dest_keyring, flags); in request_key_and_link()