函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Call out to userspace for key construction.* Program failure is ignored in favour of key status.

函数原型:static int construct_key(struct key *key, const void *callout_info, size_t callout_len, void *aux, struct key *dest_keyring)

返回类型:int

参数:

类型参数名称
struct key *key
const void *callout_info
size_tcallout_len
void *aux
struct key *dest_keyring
231  kenter("%d,%p,%zu,%p", key serial number , callout_info, callout_len, aux)
234  authkey等于Create an authorisation token for /sbin/request-key or whoever to gain* access to the caller's security data.
236  如果是错误则返回:错误
240  actor等于Request userspace finish the construction of a key* - execute "/sbin/request-key "
241  如果request_keyactor等于request_key
244  ret等于actor(authkey, aux)
248  WARN_ON(ret < 0 && !st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from)
251  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
252  kleave(" = %d", ret)
253  返回:ret
调用者
名称描述
construct_key_and_linkCommence key construction.