https://bugs.kde.org/show_bug.cgi?id=444925
Bug ID: 444925
Summary: fexecve syscall wrapper not properly implemented
Product: valgrind
Version: unspecified
Platform: FreeBSD Ports
OS: FreeBSD
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Currently the wrapper is just doing some minimal checking on the args.
Solaris also has fexecve but it seems to just overload execve. That should do
as a starting point, but on FreeBSD there isn't the extra complexity of
determining if ARG1 is an fd or a path.
Short summary of what I think needs doing
1. Perform sanity checking on the fd
2. Get the flags and filename from the fd (will need a new function to get the
flags)
3. Perform sanity checking on the flags
4. If all is OK, call handle_pre_sys_execve with check_pathptr False
5. Modify handle_pre_sys_execve slightly, changing Bool is_execveat to be
something like enum ExecveType { EXECVE, EXECVEAT, FEXECVE }; and in the body
of the function set 'str' accordingly.
--
You are receiving this mail because:
You are watching all bug changes.