函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Move a link to a key from one keyring to another, displacing any matching* key from the destination keyring.* The key must grant the caller Link permission and both keyrings must grant* the caller Write permission

函数原型:long keyctl_keyring_move(key_serial_t id, key_serial_t from_ringid, key_serial_t to_ringid, unsigned int flags)

返回类型:long

参数:

类型参数名称
key_serial_tid
key_serial_tfrom_ringid
key_serial_tto_ringid
unsigned intflags
601  如果flags按位与Do not displace from the to-keyring 的反则返回:负EINVAL
604  key_ref等于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
605  如果是错误则返回:错误
608  from_ref等于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
609  如果是错误
610  ret等于错误
611  转到:error2
614  to_ref等于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
615  如果是错误
616  ret等于错误
617  转到:error3
620  ret等于key_move - Move a key from one keyring to another*@key: The key to move*@from_keyring: The keyring to remove the link from
623  key_ref_put(to_ref)
624  error3 :
625  key_ref_put(from_ref)
626  error2 :
627  key_ref_put(key_ref)
628  返回:ret
调用者
名称描述
SYSCALL_DEFINE5The key control system call
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs