Lines Matching refs:key_ref
375 key_ref_t key_ref; in construct_alloc_key() local
415 key_ref = search_process_keyrings_rcu(ctx); in construct_alloc_key()
417 if (!IS_ERR(key_ref)) in construct_alloc_key()
436 key = key_ref_to_ptr(key_ref); in construct_alloc_key()
581 key_ref_t key_ref; in request_key_and_link() local
602 key_ref = search_process_keyrings_rcu(&ctx); in request_key_and_link()
605 if (!IS_ERR(key_ref)) { in request_key_and_link()
607 ret = key_task_permission(key_ref, current_cred(), in request_key_and_link()
610 key_ref_put(key_ref); in request_key_and_link()
616 key = key_ref_to_ptr(key_ref); in request_key_and_link()
628 } else if (PTR_ERR(key_ref) != -EAGAIN) { in request_key_and_link()
629 key = ERR_CAST(key_ref); in request_key_and_link()
783 key_ref_t key_ref; in request_key_rcu() local
792 key_ref = search_process_keyrings_rcu(&ctx); in request_key_rcu()
793 if (IS_ERR(key_ref)) { in request_key_rcu()
794 key = ERR_CAST(key_ref); in request_key_rcu()
795 if (PTR_ERR(key_ref) == -EAGAIN) in request_key_rcu()
798 key = key_ref_to_ptr(key_ref); in request_key_rcu()