Skip to content

Commit

Permalink
memexec CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
rootTHC committed Dec 4, 2024
1 parent 7218469 commit f2cb026
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tools/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,20 @@ cpy(int dst, int src) {
# warning "Using NR_execveat=322. Will work on linux/x86_64 only"
# endif
# ifdef SYS_execveat
# warning "No native execveat() support. Using direct syscall(__NR_execveat, ..) instead."
# warning "No native execveat() support. Using direct syscall(__NR_execveat, ..) instead."
static int
execveat(int fd, const char *pathname, char *const argv[], char *const *envp, int flags) {
return syscall(SYS_execveat /*__NR_execveat*/, fd, pathname, argv, envp, flags);
}
# define HAVE_EXECVEAT 1
# define HAVE_EXECVEAT 1
# else
# warning "No SYS_execveat"
# endif
#endif
#if !defined(MFD_CLOEXEC)
# warning "No native MFD_CLOEXEC. Using 0x0001U instead."
# define MFD_CLOEXEC 0x0001U
#endif

static int
try_memexecme(int src, char *argv[]) {
Expand Down

0 comments on commit f2cb026

Please sign in to comment.