1994-03-10 07:45:06 +00:00
|
|
|
/*
|
2004-01-05 17:15:32 +00:00
|
|
|
* Copyright (c) 1996, 1998, 1999, 2001, 2004
|
2004-02-13 21:36:43 +00:00
|
|
|
* Todd C. Miller <Todd.Miller@courtesan.com>.
|
1994-03-10 07:45:06 +00:00
|
|
|
*
|
2004-02-13 21:36:43 +00:00
|
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
1999-07-31 16:19:50 +00:00
|
|
|
*
|
2004-02-13 21:36:43 +00:00
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
1994-03-12 18:57:27 +00:00
|
|
|
*
|
2003-04-16 00:42:10 +00:00
|
|
|
* Sponsored in part by the Defense Advanced Research Projects
|
|
|
|
* Agency (DARPA) and Air Force Research Laboratory, Air Force
|
|
|
|
* Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
|
|
|
*
|
1999-07-22 12:52:06 +00:00
|
|
|
* $Sudo$
|
1994-03-12 18:57:27 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Pathnames to programs and files used by sudo.
|
1994-03-10 07:45:06 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_PATHS_H
|
|
|
|
#include <paths.h>
|
|
|
|
#endif /* HAVE_PATHS_H */
|
|
|
|
|
1995-09-03 18:12:00 +00:00
|
|
|
#ifndef _PATH_DEV
|
|
|
|
#define _PATH_DEV "/dev/"
|
|
|
|
#endif /* _PATH_DEV */
|
|
|
|
|
1998-09-20 23:10:04 +00:00
|
|
|
#ifndef _PATH_TTY
|
|
|
|
#define _PATH_TTY "/dev/tty"
|
|
|
|
#endif /* _PATH_TTY */
|
|
|
|
|
2001-12-14 06:24:26 +00:00
|
|
|
#ifndef _PATH_DEFPATH
|
|
|
|
#define _PATH_DEFPATH "/usr/bin:/bin"
|
|
|
|
#endif /* _PATH_DEFPATH */
|
|
|
|
|
1995-11-17 02:06:25 +00:00
|
|
|
/*
|
1999-08-06 09:37:03 +00:00
|
|
|
* NOTE: _PATH_SUDOERS is usually overriden by the Makefile.
|
1995-11-17 02:06:25 +00:00
|
|
|
*/
|
1999-08-06 09:37:03 +00:00
|
|
|
#ifndef _PATH_SUDOERS
|
|
|
|
#define _PATH_SUDOERS "/etc/sudoers"
|
|
|
|
#endif /* _PATH_SUDOERS */
|
1995-01-16 21:30:48 +00:00
|
|
|
|
|
|
|
/*
|
1999-08-06 09:37:03 +00:00
|
|
|
* NOTE: _PATH_SUDOERS_TMP is usually overriden by the Makefile.
|
|
|
|
* _PATH_SUDOERS_TMP *MUST* be on the same partition
|
|
|
|
* as _PATH_SUDOERS!
|
1995-01-16 21:30:48 +00:00
|
|
|
*/
|
1999-08-06 09:37:03 +00:00
|
|
|
#ifndef _PATH_SUDOERS_TMP
|
|
|
|
#define _PATH_SUDOERS_TMP "/etc/sudoers.tmp"
|
|
|
|
#endif /* _PATH_SUDOERS_TMP */
|
1994-03-10 07:45:06 +00:00
|
|
|
|
1998-09-20 23:10:04 +00:00
|
|
|
/*
|
|
|
|
* The following paths are controlled via the configure script.
|
|
|
|
*/
|
1994-06-05 21:17:18 +00:00
|
|
|
|
1995-01-16 21:30:48 +00:00
|
|
|
/*
|
2004-05-17 20:28:54 +00:00
|
|
|
* Where to put the timestamp files. Defaults to /var/run/sudo,
|
|
|
|
* /var/adm/sudo or /usr/adm/sudo depending on what exists.
|
1995-01-16 21:30:48 +00:00
|
|
|
*/
|
1998-09-20 23:10:04 +00:00
|
|
|
#ifndef _PATH_SUDO_TIMEDIR
|
|
|
|
#undef _PATH_SUDO_TIMEDIR
|
|
|
|
#endif /* _PATH_SUDO_TIMEDIR */
|
1995-01-16 21:30:48 +00:00
|
|
|
|
1995-03-30 02:12:36 +00:00
|
|
|
/*
|
1998-09-20 23:10:04 +00:00
|
|
|
* Where to put the sudo log file when logging to a file. Defaults to
|
|
|
|
* /var/log/sudo.log if /var/log exists, else /var/adm/sudo.log.
|
1995-03-30 02:12:36 +00:00
|
|
|
*/
|
|
|
|
#ifndef _PATH_SUDO_LOGFILE
|
1998-09-20 23:10:04 +00:00
|
|
|
#undef _PATH_SUDO_LOGFILE
|
1995-03-30 02:12:36 +00:00
|
|
|
#endif /* _PATH_SUDO_LOGFILE */
|
|
|
|
|
2001-12-14 06:17:35 +00:00
|
|
|
#ifndef _PATH_SUDO_SENDMAIL
|
|
|
|
#undef _PATH_SUDO_SENDMAIL
|
|
|
|
#endif /* _PATH_SUDO_SENDMAIL */
|
1995-01-16 21:30:48 +00:00
|
|
|
|
2004-01-05 03:58:39 +00:00
|
|
|
#ifndef _PATH_SUDO_NOEXEC
|
|
|
|
#undef _PATH_SUDO_NOEXEC
|
|
|
|
#endif /* _PATH_SUDO_NOEXEC */
|
|
|
|
|
1994-03-10 07:45:06 +00:00
|
|
|
#ifndef _PATH_VI
|
1998-09-20 23:10:04 +00:00
|
|
|
#undef _PATH_VI
|
1994-03-10 07:45:06 +00:00
|
|
|
#endif /* _PATH_VI */
|
1994-06-04 18:47:00 +00:00
|
|
|
|
1995-01-13 17:45:15 +00:00
|
|
|
#ifndef _PATH_MV
|
1998-09-20 23:10:04 +00:00
|
|
|
#undef _PATH_MV
|
1995-01-13 17:45:15 +00:00
|
|
|
#endif /* _PATH_MV */
|
1996-02-05 02:58:17 +00:00
|
|
|
|
|
|
|
#ifndef _PATH_BSHELL
|
1998-09-20 23:10:04 +00:00
|
|
|
#undef _PATH_BSHELL
|
1996-02-05 02:58:17 +00:00
|
|
|
#endif /* _PATH_BSHELL */
|
2004-01-21 21:58:24 +00:00
|
|
|
|
|
|
|
#ifndef _PATH_TMP
|
|
|
|
#define _PATH_TMP "/tmp/"
|
|
|
|
#endif /* _PATH_TMP */
|
|
|
|
|
|
|
|
#ifndef _PATH_VARTMP
|
|
|
|
#define _PATH_VARTMP "/var/tmp/"
|
|
|
|
#endif /* _PATH_VARTMP */
|
|
|
|
|
|
|
|
#ifndef _PATH_USRTMP
|
|
|
|
#define _PATH_USRTMP "/usr/tmp/"
|
|
|
|
#endif /* _PATH_USRTMP */
|
2004-08-27 03:44:35 +00:00
|
|
|
|
|
|
|
#ifndef _PATH_LDAP_CONF
|
|
|
|
#define _PATH_LDAP_CONF "/etc/ldap.conf"
|
|
|
|
#endif /* _PATH_LDAP_CONF */
|