Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\request_key.c Create Date:2022-07-28 18:23:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static int umh_keys_init(struct subprocess_info *info, struct cred *cred)

Type:int

Parameter:

TypeParameterName
struct subprocess_info *info
struct cred *cred
79  keyring = data
81  Return 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.