| 94 | #include <compat/linux/linux_util.h> |
| 95 | |
| 96 | int |
| 97 | linux_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 | |
| 120 | int |
| 121 | linux_set_upcall_kse(struct thread *td, register_t stack) |
nothing calls this directly
no test coverage detected