Add support for loading the sudo_intercept.so DSO.

This commit is contained in:
Todd C. Miller
2021-08-09 15:50:25 -06:00
parent 786e5865cb
commit 6287e8ca7d
18 changed files with 333 additions and 60 deletions

View File

@@ -502,7 +502,7 @@ selinux_execve(int fd, const char *path, char *const argv[], char *envp[],
memcpy(&nargv[nargc], &argv[1], argc * sizeof(char *)); /* copies NULL */
/* sesh will handle noexec for us. */
sudo_execve(-1, sesh, nargv, envp, false);
sudo_execve(-1, sesh, nargv, envp, 0);
serrno = errno;
free(nargv);
errno = serrno;