函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Join a (named) session keyring.* Create and join an anonymous session keyring or join a named session* keyring, creating it if necessary. A named session keyring must have Search* permission for it to be joined. Session keyrings without this permit will

函数原型:long keyctl_join_session_keyring(const char __user *_name)

返回类型:long

参数:

类型参数名称
const char __user *_name
295  name = NULL
296  如果_name
297  name等于strndup_user - duplicate an existing string from user space*@s: The string to duplicate*@n: Maximum number of bytes to copy, including the trailing NUL.* Return: newly allocated copy of @s or an ERR_PTR() in case of error
298  如果是错误
299  ret等于错误
300  转到:error
303  ret等于负EPERM
304  如果name[0]恒等于'.'则转到:error_name
309  ret等于Join the named keyring as the session keyring if possible else attempt to* create a new one of that name and join that
310  error_name :
311  释放内存
312  error :
313  返回:ret
调用者
名称描述
SYSCALL_DEFINE5The key control system call
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs