Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\keyctl.c Create Date:2022-07-28 18:19:30
Last Modify:2020-03-18 07:59:52 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Get the ID of the specified process keyring.* The requested keyring must have search permission to be found.* If successful, the ID of the requested keyring will be returned.

Proto:long keyctl_get_keyring_ID(key_serial_t id, int create)

Type:long

Parameter:

TypeParameterName
key_serial_tid
intcreate
265  lflags = If create Then KEY_LOOKUP_CREATE Else 0
266  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
267  If IS_ERR(key_ref) Then
268  ret = PTR_ERR(key_ref)
269  Go to error
272  ret = key serial number
273  key_ref_put(key_ref)
274  error :
275  Return ret
Caller
NameDescribe
SYSCALL_DEFINE5The key control system call
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs