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