函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Call a usermode helper with a specific session keyring.

函数原型:static int call_usermodehelper_keys(const char *path, char **argv, char **envp, struct key *session_keyring, int wait)

返回类型:int

参数:

类型参数名称
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  如果非info则返回:负ENOMEM
107  key_get(session_keyring)
108  返回: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
调用者
名称描述
call_sbin_request_keyRequest userspace finish the construction of a key* - execute "/sbin/request-key "