Annotation of embedaddon/sudo/pathnames.h.in, revision 1.1.1.4
1.1 misho 1: /*
1.1.1.4 ! misho 2: * Copyright (c) 1996, 1998, 1999, 2001, 2004, 2005, 2007-2014
1.1 misho 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:
22: /*
23: * Pathnames to programs and files used by sudo.
24: */
25:
26: #ifdef HAVE_PATHS_H
27: #include <paths.h>
28: #endif /* HAVE_PATHS_H */
29:
30: #ifdef HAVE_MAILLOCK_H
31: #include <maillock.h>
32: #endif /* HAVE_MAILLOCK_H */
33:
34: #ifndef _PATH_DEV
35: #define _PATH_DEV "/dev/"
36: #endif /* _PATH_DEV */
37:
38: #ifndef _PATH_TTY
39: #define _PATH_TTY "/dev/tty"
40: #endif /* _PATH_TTY */
41:
42: #ifndef _PATH_DEVNULL
43: #define _PATH_DEVNULL "/dev/null"
44: #endif /* _PATH_DEVNULL */
45:
46: #ifndef _PATH_DEFPATH
47: #define _PATH_DEFPATH "/usr/bin:/bin"
48: #endif /* _PATH_DEFPATH */
49:
50: #ifndef _PATH_STDPATH
51: #define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
52: #endif /* _PATH_STDPATH */
53:
54: #ifndef _PATH_ENVIRONMENT
55: #define _PATH_ENVIRONMENT "/etc/environment"
56: #endif /* _PATH_ENVIRONMENT */
57:
58: /*
59: * NOTE: _PATH_SUDO_CONF is usually overridden by the Makefile.
60: */
61: #ifndef _PATH_SUDO_CONF
62: #define _PATH_SUDO_CONF "/etc/sudo.conf"
63: #endif /* _PATH_SUDO_CONF */
64:
65: /*
66: * NOTE: _PATH_SUDOERS is usually overridden by the Makefile.
67: */
68: #ifndef _PATH_SUDOERS
69: #define _PATH_SUDOERS "/etc/sudoers"
70: #endif /* _PATH_SUDOERS */
71:
72: /*
73: * The following paths are controlled via the configure script.
74: */
75:
76: /*
1.1.1.4 ! misho 77: * Where to store the time stamp files. Defaults to /var/run/sudo/ts,
! 78: * /var/db/sudo/ts, /var/lib/sudo/ts, /var/adm/sudo/ts or /usr/adm/sudo/ts
! 79: * depending on what exists on the system.
1.1 misho 80: */
81: #ifndef _PATH_SUDO_TIMEDIR
82: #undef _PATH_SUDO_TIMEDIR
83: #endif /* _PATH_SUDO_TIMEDIR */
84:
85: /*
1.1.1.4 ! misho 86: * Where to store the lecture status files. Defaults to /var/db/sudo/lectured,
! 87: * /var/lib/sudo/lectured, /var/adm/sudo/lectured or /usr/adm/sudo/lectured
! 88: * depending on what exists on the system.
! 89: */
! 90: #ifndef _PATH_SUDO_LECTURE_DIR
! 91: #undef _PATH_SUDO_LECTURE_DIR
! 92: #endif /* _PATH_SUDO_LECTURE_DIR */
! 93:
! 94: /*
1.1 misho 95: * Where to put the I/O log files. Defaults to /var/log/sudo-io,
96: * /var/adm/sudo-io or /usr/adm/sudo-io depending on what exists.
97: */
98: #ifndef _PATH_SUDO_IO_LOGDIR
99: #undef _PATH_SUDO_IO_LOGDIR
100: #endif /* _PATH_SUDO_IO_LOGDIR */
101:
102: /*
103: * Where to put the sudo log file when logging to a file. Defaults to
104: * /var/log/sudo.log if /var/log exists, else /var/adm/sudo.log.
105: */
106: #ifndef _PATH_SUDO_LOGFILE
107: #undef _PATH_SUDO_LOGFILE
108: #endif /* _PATH_SUDO_LOGFILE */
109:
110: #ifndef _PATH_SUDO_SENDMAIL
111: #undef _PATH_SUDO_SENDMAIL
112: #endif /* _PATH_SUDO_SENDMAIL */
113:
114: #ifndef _PATH_SUDO_NOEXEC
115: #undef _PATH_SUDO_NOEXEC
116: #endif /* _PATH_SUDO_NOEXEC */
117:
118: #ifndef _PATH_SUDO_ASKPASS
119: #undef _PATH_SUDO_ASKPASS
120: #endif /* _PATH_SUDO_ASKPASS */
121:
122: #ifndef _PATH_SUDO_PLUGIN_DIR
123: #undef _PATH_SUDO_PLUGIN_DIR
124: #endif /* _PATH_SUDO_PLUGIN_DIR */
125:
126: #ifndef _PATH_VI
127: #undef _PATH_VI
128: #endif /* _PATH_VI */
129:
130: #ifndef _PATH_MV
131: #undef _PATH_MV
132: #endif /* _PATH_MV */
133:
134: #ifndef _PATH_BSHELL
135: #undef _PATH_BSHELL
136: #endif /* _PATH_BSHELL */
137:
138: #ifndef _PATH_TMP
139: #define _PATH_TMP "/tmp/"
140: #endif /* _PATH_TMP */
141:
142: #ifndef _PATH_VARTMP
143: #define _PATH_VARTMP "/var/tmp/"
144: #endif /* _PATH_VARTMP */
145:
146: #ifndef _PATH_USRTMP
147: #define _PATH_USRTMP "/usr/tmp/"
148: #endif /* _PATH_USRTMP */
149:
150: #ifndef _PATH_MAILDIR
151: #undef _PATH_MAILDIR
152: #endif /* _PATH_MAILDIR */
153:
154: #ifndef _PATH_UTMP
155: #undef _PATH_UTMP
156: #endif /* _PATH_UTMP */
157:
158: #ifndef _PATH_SUDO_SESH
159: #undef _PATH_SUDO_SESH
160: #endif /* _PATH_SUDO_SESH */
161:
162: #ifndef _PATH_LDAP_CONF
163: #undef _PATH_LDAP_CONF
164: #endif /* _PATH_LDAP_CONF */
165:
166: #ifndef _PATH_LDAP_SECRET
167: #undef _PATH_LDAP_SECRET
168: #endif /* _PATH_LDAP_SECRET */
169:
1.1.1.2 misho 170: #ifndef _PATH_SSSD_LIB
171: #undef _PATH_SSSD_LIB
172: #endif /* _PATH_SSSD_LIB */
173:
1.1 misho 174: #ifndef _PATH_NSSWITCH_CONF
175: #undef _PATH_NSSWITCH_CONF
176: #endif /* _PATH_NSSWITCH_CONF */
177:
178: #ifndef _PATH_NETSVC_CONF
179: #undef _PATH_NETSVC_CONF
180: #endif /* _PATH_NETSVC_CONF */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>