函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Initialise a usermode helper that is going to have a specific session* keyring.* This is called in context of freshly forked kthread before kernel_execve(),* so we can simply install the desired session_keyring at this point.

函数原型:static int umh_keys_init(struct subprocess_info *info, struct cred *cred)

返回类型:int

参数:

类型参数名称
struct subprocess_info *info
struct cred *cred
79  keyring等于data
81  返回:Install the given keyring as the session keyring of the given credentials* struct, replacing the existing one if any. If the given keyring is NULL,* then install a new anonymous session keyring.*@cred can not be in use by any task yet.