From 00bea5e742831a52f3403d25b5900c976b12ce4d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 12 Mar 2005 23:43:40 +0000 Subject: [PATCH] Add __ variants of the exec functions. GNU libc at least uses __execve() internally. --- sudo_noexec.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sudo_noexec.c b/sudo_noexec.c index 5caba9b4d..2f4b59957 100644 --- a/sudo_noexec.c +++ b/sudo_noexec.c @@ -91,17 +91,25 @@ DUMMY_BODY DUMMY_VA(execl, const char *, const char *) DUMMY_VA(_execl, const char *, const char *) +DUMMY_VA(__execl, const char *, const char *) DUMMY_VA(execle, const char *, const char *) DUMMY_VA(_execle, const char *, const char *) +DUMMY_VA(__execle, const char *, const char *) DUMMY_VA(execlp, const char *, const char *) DUMMY_VA(_execlp, const char *, const char *) +DUMMY_VA(__execlp, const char *, const char *) DUMMY2(execv, const char *, char * const *) DUMMY2(_execv, const char *, char * const *) +DUMMY2(__execv, const char *, char * const *) DUMMY2(execvp, const char *, char * const *) DUMMY2(_execvp, const char *, char * const *) +DUMMY2(__execvp, const char *, char * const *) DUMMY3(execvP, const char *, const char *, char * const *) DUMMY3(_execvP, const char *, const char *, char * const *) +DUMMY3(__execvP, const char *, const char *, char * const *) DUMMY3(execve, const char *, char * const *, char * const *) DUMMY3(_execve, const char *, char * const *, char * const *) +DUMMY3(__execve, const char *, char * const *, char * const *) DUMMY3(fexecve, int , char * const *, char * const *) DUMMY3(_fexecve, int , char * const *, char * const *) +DUMMY3(__fexecve, int , char * const *, char * const *)