Annotation of src/usr.bin/sudo/pathnames.h, Revision 1.3
1.3 ! millert 1: /* pathnames.h. Generated by configure. */
1.1 millert 2: /*
1.2 millert 3: * Copyright (c) 1996, 1998, 1999, 2001, 2004
4: * Todd C. Miller <Todd.Miller@courtesan.com>.
1.1 millert 5: *
1.2 millert 6: * Permission to use, copy, modify, and distribute this software for any
7: * purpose with or without fee is hereby granted, provided that the above
8: * copyright notice and this permission notice appear in all copies.
9: *
10: * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11: * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12: * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13: * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14: * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15: * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16: * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1.1 millert 17: *
18: * Sponsored in part by the Defense Advanced Research Projects
19: * Agency (DARPA) and Air Force Research Laboratory, Air Force
20: * Materiel Command, USAF, under agreement number F39502-99-1-0512.
21: *
1.3 ! millert 22: * $Sudo: pathnames.h.in,v 1.51.2.3 2007/06/19 21:25:48 millert Exp $
1.1 millert 23: */
24:
25: /*
26: * Pathnames to programs and files used by sudo.
27: */
28:
1.3 ! millert 29: #ifdef HAVE_PATHS_H
1.1 millert 30: #include <paths.h>
1.3 ! millert 31: #endif /* HAVE_PATHS_H */
1.1 millert 32:
1.3 ! millert 33: #ifndef _PATH_DEV
! 34: #define _PATH_DEV "/dev/"
! 35: #endif /* _PATH_DEV */
! 36:
! 37: #ifndef _PATH_TTY
! 38: #define _PATH_TTY "/dev/tty"
! 39: #endif /* _PATH_TTY */
! 40:
! 41: #ifndef _PATH_DEVNULL
! 42: #define _PATH_DEVNULL "/dev/null"
! 43: #endif /* _PATH_DEVNULL */
! 44:
! 45: #ifndef _PATH_DEFPATH
! 46: #define _PATH_DEFPATH "/usr/bin:/bin"
! 47: #endif /* _PATH_DEFPATH */
1.1 millert 48:
49: /*
50: * NOTE: _PATH_SUDOERS is usually overriden by the Makefile.
51: */
52: #ifndef _PATH_SUDOERS
53: #define _PATH_SUDOERS "/etc/sudoers"
54: #endif /* _PATH_SUDOERS */
55:
56: /*
57: * NOTE: _PATH_SUDOERS_TMP is usually overriden by the Makefile.
58: * _PATH_SUDOERS_TMP *MUST* be on the same partition
59: * as _PATH_SUDOERS!
60: */
61: #ifndef _PATH_SUDOERS_TMP
62: #define _PATH_SUDOERS_TMP "/etc/sudoers.tmp"
63: #endif /* _PATH_SUDOERS_TMP */
64:
65: /*
66: * The following paths are controlled via the configure script.
67: */
68:
69: /*
1.2 millert 70: * Where to put the timestamp files. Defaults to /var/run/sudo,
71: * /var/adm/sudo or /usr/adm/sudo depending on what exists.
1.1 millert 72: */
73: #ifndef _PATH_SUDO_TIMEDIR
74: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
75: #endif /* _PATH_SUDO_TIMEDIR */
76:
77: /*
78: * Where to put the sudo log file when logging to a file. Defaults to
79: * /var/log/sudo.log if /var/log exists, else /var/adm/sudo.log.
80: */
81: #ifndef _PATH_SUDO_LOGFILE
82: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
83: #endif /* _PATH_SUDO_LOGFILE */
84:
1.3 ! millert 85: #ifndef _PATH_SUDO_SENDMAIL
! 86: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
! 87: #endif /* _PATH_SUDO_SENDMAIL */
! 88:
! 89: #ifndef _PATH_SUDO_NOEXEC
! 90: #define _PATH_SUDO_NOEXEC "/usr/libexec/sudo_noexec"
! 91: #endif /* _PATH_SUDO_NOEXEC */
! 92:
! 93: #ifndef _PATH_VI
! 94: #define _PATH_VI "/usr/bin/vi"
! 95: #endif /* _PATH_VI */
! 96:
! 97: #ifndef _PATH_MV
! 98: #define _PATH_MV "/bin/mv"
! 99: #endif /* _PATH_MV */
! 100:
! 101: #ifndef _PATH_BSHELL
! 102: #define _PATH_BSHELL "/bin/sh"
! 103: #endif /* _PATH_BSHELL */
! 104:
! 105: #ifndef _PATH_TMP
! 106: #define _PATH_TMP "/tmp/"
! 107: #endif /* _PATH_TMP */
! 108:
! 109: #ifndef _PATH_VARTMP
! 110: #define _PATH_VARTMP "/var/tmp/"
! 111: #endif /* _PATH_VARTMP */
! 112:
! 113: #ifndef _PATH_USRTMP
! 114: #define _PATH_USRTMP "/usr/tmp/"
! 115: #endif /* _PATH_USRTMP */
! 116:
! 117: #ifndef _PATH_LDAP_CONF
! 118: #define _PATH_LDAP_CONF "/etc/ldap.conf"
! 119: #endif /* _PATH_LDAP_CONF */
! 120:
! 121: #ifndef _PATH_LDAP_SECRET
! 122: #define _PATH_LDAP_SECRET "/etc/ldap.secret"
! 123: #endif /* _PATH_LDAP_SECRET */