函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Search 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)

函数原型:key_ref_t search_cred_keyrings_rcu(struct keyring_search_context *ctx)

返回类型:key_ref_t

参数:

类型参数名称
struct keyring_search_context *ctx
426  cred等于cred
435  key_ref = NULL
436  ret = NULL
437  err等于错误号
440  如果 keyring private to this thread
441  key_ref等于keyring_search_rcu - Search a keyring tree for a matching key under RCU*@keyring_ref: A pointer to the keyring with possession indicator
443  如果非是错误则转到:found
447  :错误恒等于负EAGAIN
448  :错误恒等于负ENOKEY
449  ret等于key_ref
450  退出
451  默认
452  err等于key_ref
453  退出
458  如果 keyring private to this process
459  key_ref等于keyring_search_rcu - Search a keyring tree for a matching key under RCU*@keyring_ref: A pointer to the keyring with possession indicator
461  如果非是错误则转到:found
465  :错误恒等于负EAGAIN
466  如果ret退出
469  :错误恒等于负ENOKEY
470  ret等于key_ref
471  退出
472  默认
473  err等于key_ref
474  退出
479  如果 keyring inherited over fork
480  key_ref等于keyring_search_rcu - Search a keyring tree for a matching key under RCU*@keyring_ref: A pointer to the keyring with possession indicator
483  如果非是错误则转到:found
487  :错误恒等于负EAGAIN
488  如果ret退出
491  :错误恒等于负ENOKEY
492  ret等于key_ref
493  退出
494  默认
495  err等于key_ref
496  退出
500  否则如果user_session等于Get the user session keyring if it exists, but don't create it if it* doesn't.
501  key_ref等于keyring_search_rcu - Search a keyring tree for a matching key under RCU*@keyring_ref: A pointer to the keyring with possession indicator
503  key_put - Discard a reference to a key.*@key: The key to discard a reference from.* Discard a reference to a key, and when all the references are gone, we* schedule the cleanup task to come and pull it out of the tree in process
505  如果非是错误则转到:found
509  :错误恒等于负EAGAIN
510  如果ret退出
513  :错误恒等于负ENOKEY
514  ret等于key_ref
515  退出
516  默认
517  err等于key_ref
518  退出
523  key_ref等于如果retret否则err
525  found :
526  返回:key_ref
调用者
名称描述
search_process_keyrings_rcuSearch the process keyrings attached to the supplied cred for the first* matching key in the manner of search_my_process_keyrings(), but also search* the keys attached to the assumed authorisation key using its credentials if* one is available.
proc_keys_show