Add _PATH_SUDO_NOEXEC and corresponding --with-noexec configure option.

The default value of noexec_file is set to this.
This commit is contained in:
Todd C. Miller
2004-01-05 03:58:39 +00:00
parent 7536a781f0
commit 626e2cd209
5 changed files with 73 additions and 1 deletions

2
env.c
View File

@@ -439,7 +439,7 @@ rebuild_env(envp, reset_home, noexec)
/* Point LD_PRELOAD to noexec_file? */
/* XXX - what to use for HP-UX and AIX? */
if (noexec)
if (noexec && def_noexec_file != NULL)
insert_env(format_env("LD_PRELOAD", def_noexec_file), 1);
/* Set PS1 if SUDO_PS1 is set. */