Annotation of src/usr.bin/sudo/pathnames.h, Revision 1.1
1.1 ! millert 1: /*
! 2: * Copyright (c) 1996, 1998, 1999, 2001
! 3: * Todd C. Miller <Todd.Miller@courtesan.com>. All rights reserved.
! 4: *
! 5: * Redistribution and use in source and binary forms, with or without
! 6: * modification, are permitted provided that the following conditions
! 7: * are met:
! 8: *
! 9: * 1. Redistributions of source code must retain the above copyright
! 10: * notice, this list of conditions and the following disclaimer.
! 11: *
! 12: * 2. Redistributions in binary form must reproduce the above copyright
! 13: * notice, this list of conditions and the following disclaimer in the
! 14: * documentation and/or other materials provided with the distribution.
! 15: *
! 16: * 3. The name of the author may not be used to endorse or promote products
! 17: * derived from this software without specific prior written permission.
! 18: *
! 19: * 4. Products derived from this software may not be called "Sudo" nor
! 20: * may "Sudo" appear in their names without specific prior written
! 21: * permission from the author.
! 22: *
! 23: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
! 24: * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
! 25: * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
! 26: * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
! 27: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
! 28: * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
! 29: * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
! 30: * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
! 31: * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
! 32: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
! 33: *
! 34: * Sponsored in part by the Defense Advanced Research Projects
! 35: * Agency (DARPA) and Air Force Research Laboratory, Air Force
! 36: * Materiel Command, USAF, under agreement number F39502-99-1-0512.
! 37: *
! 38: * $Sudo: pathnames.h.in,v 1.46 2003/04/16 00:42:10 millert Exp $
! 39: */
! 40:
! 41: /*
! 42: * Pathnames to programs and files used by sudo.
! 43: */
! 44:
! 45: #ifdef HAVE_PATHS_H
! 46: #include <paths.h>
! 47: #endif /* HAVE_PATHS_H */
! 48:
! 49: #ifndef _PATH_DEV
! 50: #define _PATH_DEV "/dev/"
! 51: #endif /* _PATH_DEV */
! 52:
! 53: #ifndef _PATH_TTY
! 54: #define _PATH_TTY "/dev/tty"
! 55: #endif /* _PATH_TTY */
! 56:
! 57: #ifndef _PATH_DEFPATH
! 58: #define _PATH_DEFPATH "/usr/bin:/bin"
! 59: #endif /* _PATH_DEFPATH */
! 60:
! 61: /*
! 62: * NOTE: _PATH_SUDOERS is usually overriden by the Makefile.
! 63: */
! 64: #ifndef _PATH_SUDOERS
! 65: #define _PATH_SUDOERS "/etc/sudoers"
! 66: #endif /* _PATH_SUDOERS */
! 67:
! 68: /*
! 69: * NOTE: _PATH_SUDOERS_TMP is usually overriden by the Makefile.
! 70: * _PATH_SUDOERS_TMP *MUST* be on the same partition
! 71: * as _PATH_SUDOERS!
! 72: */
! 73: #ifndef _PATH_SUDOERS_TMP
! 74: #define _PATH_SUDOERS_TMP "/etc/sudoers.tmp"
! 75: #endif /* _PATH_SUDOERS_TMP */
! 76:
! 77: /*
! 78: * The following paths are controlled via the configure script.
! 79: */
! 80:
! 81: /*
! 82: * Where to put the timestamp files. Defaults to /var/run/sudo if
! 83: * /var/run exists, else /tmp/.odus.
! 84: */
! 85: #ifndef _PATH_SUDO_TIMEDIR
! 86: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
! 87: #endif /* _PATH_SUDO_TIMEDIR */
! 88:
! 89: /*
! 90: * Where to put the sudo log file when logging to a file. Defaults to
! 91: * /var/log/sudo.log if /var/log exists, else /var/adm/sudo.log.
! 92: */
! 93: #ifndef _PATH_SUDO_LOGFILE
! 94: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
! 95: #endif /* _PATH_SUDO_LOGFILE */
! 96:
! 97: #ifndef _PATH_SUDO_SENDMAIL
! 98: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
! 99: #endif /* _PATH_SUDO_SENDMAIL */
! 100:
! 101: #ifndef _PATH_VI
! 102: #define _PATH_VI "/usr/bin/vi"
! 103: #endif /* _PATH_VI */
! 104:
! 105: #ifndef _PATH_MV
! 106: #define _PATH_MV "/bin/mv"
! 107: #endif /* _PATH_MV */
! 108:
! 109: #ifndef _PATH_BSHELL
! 110: #define _PATH_BSHELL "/bin/sh"
! 111: #endif /* _PATH_BSHELL */