Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This is the task which runs the usermode application

Proto:static int call_usermodehelper_exec_async(void *data)

Type:int

Parameter:

TypeParameterName
void *data
70  sub_info = data
74  spin_lock_irq( & siglock)
75  Flush all handlers for a task.
76  spin_unlock_irq( & siglock)
82  set_user_nice(current process, 0)
84  retval = -ENOMEM
85  new = prepare_kernel_cred(current process)
86  If Not new Then Go to out
89  spin_lock( & umh_sysctl_lock)
90  capability bounding set = cap_intersect(usermodehelper_bset, capability bounding set )
91  caps our children can inherit = cap_intersect(usermodehelper_inheritable, caps our children can inherit )
93  spin_unlock( & umh_sysctl_lock)
95  If init Then
96  retval = init(sub_info, new)
97  If retval Then
99  Go to out
103  mmit_creds - Install new credentials upon the current task*@new: The credentials to be assigned* Install a new set of credentials to the current task, using RCU to replace* the old set. Both the objective and the subjective credentials pointers are
105  pid = task_pid_nr(current process)
106  If file Then
107  retval = do_execve_file(file, argv, envp)
109  If Not retval Then flags |= I'm an Usermodehelper process
111  Else retval = do_execve(getname_kernel(path), (constchar__user * const__user * )argv, (constchar__user * const__user * )envp)
115  out :
116  retval = retval
121  If Not (wait & wait for the process to complete ) Then umh_complete(sub_info)
123  If Not retval Then Return 0
125  do_exit(0)