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

Function sys_fexecve

freebsd/kern/kern_exec.c:241–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239};
240#endif
241int
242sys_fexecve(struct thread *td, struct fexecve_args *uap)
243{
244 struct image_args args;
245 struct vmspace *oldvmspace;
246 int error;
247
248 error = pre_execve(td, &oldvmspace);
249 if (error != 0)
250 return (error);
251 error = exec_copyin_args(&args, NULL, UIO_SYSSPACE,
252 uap->argv, uap->envv);
253 if (error == 0) {
254 args.fd = uap->fd;
255 error = kern_execve(td, &args, NULL, oldvmspace);
256 }
257 post_execve(td, error, oldvmspace);
258 AUDIT_SYSCALL_EXIT(error == EJUSTRETURN ? 0 : error, td);
259 return (error);
260}
261
262#ifndef _SYS_SYSPROTO_H_
263struct __mac_execve_args {

Callers

nothing calls this directly

Calls 4

pre_execveFunction · 0.85
exec_copyin_argsFunction · 0.85
kern_execveFunction · 0.85
post_execveFunction · 0.85

Tested by

no test coverage detected