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

Function linux_execve

freebsd/i386/linux/linux_machdep.c:101–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99};
100
101int
102linux_execve(struct thread *td, struct linux_execve_args *args)
103{
104 struct image_args eargs;
105 char *newpath;
106 int error;
107
108 if (!LUSECONVPATH(td)) {
109 error = exec_copyin_args(&eargs, args->path, UIO_USERSPACE,
110 args->argp, args->envp);
111 } else {
112 LCONVPATHEXIST(td, args->path, &newpath);
113 error = exec_copyin_args(&eargs, newpath, UIO_SYSSPACE,
114 args->argp, args->envp);
115 LFREEPATH(newpath);
116 }
117 if (error == 0)
118 error = linux_common_execve(td, &eargs);
119 AUDIT_SYSCALL_EXIT(error == EJUSTRETURN ? 0 : error, td);
120 return (error);
121}
122
123struct l_ipc_kludge {
124 struct l_msgbuf *msgp;

Callers

nothing calls this directly

Calls 1

exec_copyin_argsFunction · 0.85

Tested by

no test coverage detected