Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\request_key.c Create Date:2022-07-28 18:23:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Call out to userspace for key construction.* Program failure is ignored in favour of key status.

Proto:static int construct_key(struct key *key, const void *callout_info, size_t callout_len, void *aux, struct key *dest_keyring)

Type:int

Parameter:

TypeParameterName
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  If IS_ERR(authkey) Then Return PTR_ERR(authkey)
240  actor = Request userspace finish the construction of a key* - execute "/sbin/request-key "
241  If request_key Then actor = 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  Return ret
Caller
NameDescribe
construct_key_and_linkCommence key construction.