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:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Call a usermode helper with a specific session keyring.

Proto:static int call_usermodehelper_keys(const char *path, char **argv, char **envp, struct key *session_keyring, int wait)

Type:int

Parameter:

TypeParameterName
const char *path
char **argv
char **envp
struct key *session_keyring
intwait
101  info = all_usermodehelper_setup - prepare to call a usermode helper*@path: path to usermode executable*@argv: arg vector for process*@envp: environment for process*@gfp_mask: gfp mask for memory allocation*@cleanup: a cleanup function*@init: an init
104  If Not info Then Return -ENOMEM
107  key_get(session_keyring)
108  Return all_usermodehelper_exec - start a usermode application*@sub_info: information about the subprocessa*@wait: wait for the application to finish and return status.* when UMH_NO_WAIT don't wait at all, but you get no useful error back
Caller
NameDescribe
call_sbin_request_keyRequest userspace finish the construction of a key* - execute "/sbin/request-key "