函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:key_validate - Validate a key.*@key: The key to be validated.* Check that a key is valid, returning 0 if the key is okay, -ENOKEY if the* key is invalidated, -EKEYREVOKED if the key's type has been removed or if

函数原型:int key_validate(const struct key *key)

返回类型:int

参数:

类型参数名称
const struct key *key
87  flags等于READ_ONCE( status flags (change with bitops) )
88  expiry等于READ_ONCE( time at which key expires (or 0) )
90  如果flags按位与1左移set if key has been invalidated 位则返回:负ENOKEY
94  如果flags按位与1左移set if key had been revoked 位按位或1左移set if key type has been deleted 位的值则返回:负EKEYREVOKED
99  如果expiry
100  如果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.大于等于expiry则返回:负EKEYEXPIRED
104  返回:0
调用者
名称描述
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.
lookup_user_keyLook up a key ID given us by userspace with a given permissions mask to get* the key it refers to.* Flags can be passed to request that special keyrings be created if referred* to directly, to permit partially constructed keys to be found and to skip
call_sbin_request_keyRequest userspace finish the construction of a key* - execute "/sbin/request-key "
wait_for_key_constructionwait_for_key_construction - Wait for construction of a key to complete*@key: The key being waited for
dh_data_from_key