函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\keyring.c Create Date:2022-07-27 19:52:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:keyring_search_rcu - Search a keyring tree for a matching key under RCU*@keyring_ref: A pointer to the keyring with possession indicator

函数原型:key_ref_t keyring_search_rcu(key_ref_t keyring_ref, struct keyring_search_context *ctx)

返回类型:key_ref_t

参数:

类型参数名称
key_ref_tkeyring_ref
struct keyring_search_context *ctx
909  iterator等于Iteration function to consider each key found.
910  possessed等于is_key_possessed(keyring_ref)
911  result等于错误号
913  keyring等于key_ref_to_ptr(keyring_ref)
914  key_check(keyring)
916  如果 type of key 不等于key_type_keyring则返回:错误号
919  如果非flags按位与Don't check permissions 的值则
920  err等于key_task_permission(keyring_ref, cred, Require permission to search (keyring) or find (key) )
921  如果err小于0则返回:错误号
925  now等于ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME* Returns the wall clock seconds since 1970. This replaces the* get_seconds() interface which is not y2038 safe on 32bit systems.
926  如果Search a tree of keyrings that point to other keyrings up to the maximum* depth.__key_get(key_ref_to_ptr(result))
928  返回:result
调用者
名称描述
keyring_searchkeyring_search - Search the supplied keyring tree for a matching key*@keyring: The root of the keyring tree to be searched
get_user_session_keyring_rcuGet the user session keyring if it exists, but don't create it if it* doesn't.
search_cred_keyrings_rcuSearch the process keyrings attached to the supplied cred for the first* matching key under RCU conditions (the caller must be holding the RCU read* lock)