| 99 | }; |
| 100 | |
| 101 | int |
| 102 | linux_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 | |
| 123 | struct l_ipc_kludge { |
| 124 | struct l_msgbuf *msgp; |
nothing calls this directly
no test coverage detected