函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Get the destination keyring for instantiation and check that the caller has* Write permission on it.

函数原型:static long get_instantiation_keyring(key_serial_t ringid, struct request_key_auth *rka, struct key **_dest_keyring)

返回类型:long

参数:

类型参数名称
key_serial_tringid
struct request_key_auth *rka
struct key **_dest_keyring
1042  * _dest_keyring = NULL
1045  如果ringid恒等于0则返回:0
1049  如果ringid大于0则
1050  dkref等于Look 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
1051  如果是错误则返回:错误
1053  _dest_keyring等于key_ref_to_ptr(dkref)
1054  返回:0
1057  如果ringid恒等于- key ID for assumed request_key auth key 则返回:负EINVAL
1062  如果ringid大于等于- key ID for request_key() dest keyring
1063  _dest_keyring等于key_get(dest_keyring)
1064  返回:0
1067  返回:负ENOKEY
调用者
名称描述
keyctl_instantiate_key_commonInstantiate a key with the specified payload and link the key into the* destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to* work (see keyctl_assume_authority). No other permissions are required.
keyctl_reject_keyNegatively instantiate the key with the given timeout (in seconds) and error* code and link the key into the destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to