MCPcopy Create free account
hub / github.com/F-Stack/f-stack / linux_execve

Function linux_execve

freebsd/amd64/linux/linux_machdep.c:96–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94#include <compat/linux/linux_util.h>
95
96int
97linux_execve(struct thread *td, struct linux_execve_args *args)
98{
99 struct image_args eargs;
100 char *path;
101 int error;
102
103 LINUX_CTR(execve);
104
105 if (!LUSECONVPATH(td)) {
106 error = exec_copyin_args(&eargs, args->path, UIO_USERSPACE,
107 args->argp, args->envp);
108 } else {
109 LCONVPATHEXIST(td, args->path, &path);
110 error = exec_copyin_args(&eargs, path, UIO_SYSSPACE, args->argp,
111 args->envp);
112 LFREEPATH(path);
113 }
114 if (error == 0)
115 error = linux_common_execve(td, &eargs);
116 AUDIT_SYSCALL_EXIT(error == EJUSTRETURN ? 0 : error, td);
117 return (error);
118}
119
120int
121linux_set_upcall_kse(struct thread *td, register_t stack)

Callers

nothing calls this directly

Calls 1

exec_copyin_argsFunction · 0.85

Tested by

no test coverage detected