2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00
sudo/config.h.in

481 lines
12 KiB
C
Raw Normal View History

1994-03-12 18:57:27 +00:00
/*
* Copyright (c) 1996, 1998, 1999 Todd C. Miller <Todd.Miller@courtesan.com>
* All rights reserved.
1994-03-12 18:57:27 +00:00
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
1994-03-12 18:57:27 +00:00
*
* 4. Products derived from this software may not be called "Sudo" nor
* may "Sudo" appear in their names without specific prior written
* permission from the author.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
* THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1994-03-12 18:57:27 +00:00
*
* $Sudo$
1994-03-12 18:57:27 +00:00
*/
1994-03-10 07:45:06 +00:00
/*
* config.h -- You shouldn't edit this by hand unless you are
* NOT using configure.
*/
1998-10-15 06:25:10 +00:00
#ifndef _SUDO_CONFIG_H
#define _SUDO_CONFIG_H
/* New ANSI-style OS defs. */
#if defined(hpux) && !defined(__hpux)
1994-07-07 00:46:04 +00:00
# define __hpux 1
#endif /* hpux */
#if defined(convex) && !defined(__convex__)
1994-07-07 00:46:04 +00:00
# define __convex__ 1
#endif /* convex */
1994-03-10 07:45:06 +00:00
/* Define if on AIX 3.
System headers sometimes define this.
We just want to avoid a redefinition error message. */
#ifndef _ALL_SOURCE
#undef _ALL_SOURCE
#endif
/* Define if on ConvexOs.
System headers sometimes define this.
We just want to avoid a redefinition error message. */
#ifndef _CONVEX_SOURCE
#undef _CONVEX_SOURCE
#endif
1996-01-07 19:25:22 +00:00
/* Define if needed to get POSIX functionality.
1996-01-07 19:25:06 +00:00
System headers sometimes define this.
We just want to avoid a redefinition error message. */
#ifndef _POSIX_SOURCE
#undef _POSIX_SOURCE
#endif
1994-03-10 07:45:06 +00:00
/* Define to `int' if <sys/types.h> doesn't define. */
#undef uid_t
/* Define to `int' if <sys/types.h> doesn't define. */
#undef gid_t
/* Define to `int' if <sys/types.h> doesn't define. */
#undef mode_t
/* Define to `unsigned' if <sys/types.h> doesn't define. */
#undef size_t
1994-09-20 23:21:14 +00:00
/* Define to `int' if <sys/types.h> doesn't define. */
#undef ssize_t
1998-09-07 02:28:14 +00:00
/* Define to `int' if <sys/types.h> doesn't define. */
#undef dev_t
/* Define to `unsigned int' if <sys/types.h> doesn't define. */
#undef ino_t
1994-05-28 19:12:06 +00:00
/* Define to be nil if C compiler doesn't support "const." */
#undef const
/* Solaris doesn't use const qualifiers in PAM. */
#ifdef sun
#define PAM_CONST
#else
#define PAM_CONST const
#endif
1994-03-10 07:45:06 +00:00
/* Define as the return type of signal handlers (int or void). */
#undef RETSIGTYPE
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
1998-10-15 06:25:10 +00:00
/* Define if you want to use execv() instead of execvp(). */
#undef USE_EXECV
/* Define if you a different ticket file for each tty. */
#undef USE_TTY_TICKETS
/* Define if you want to insult the user for entering an incorrect password. */
#undef USE_INSULTS
/* Define if you want the insults from the "classic" version sudo. */
#undef CLASSIC_INSULTS
/* Define if you want 2001-like insults. */
#undef HAL_INSULTS
/* Define if you want insults from the "Goon Show" */
#undef GOONS_INSULTS
/* Define if you want insults culled from the twisted minds of CSOps. */
#undef CSOPS_INSULTS
/* Define to override the user's path with a builtin one. */
#undef SECURE_PATH
1996-10-05 03:59:42 +00:00
/* Define if you use S/Key. */
1994-10-15 19:48:44 +00:00
#undef HAVE_SKEY
1996-10-05 03:59:42 +00:00
/* Define if you use NRL OPIE. */
#undef HAVE_OPIE
1998-10-15 06:25:10 +00:00
/* Define if you want a two line OTP (skey/opie) prompt. */
#undef LONG_OTP_PROMPT
/* Define if you want to validate users via OTP (skey/opie) only. */
#undef OTP_ONLY
1995-09-01 02:52:57 +00:00
/* Define if you use SecurID. */
#undef HAVE_SECURID
1998-02-17 05:22:02 +00:00
/* Define if you use AIX general authentication. */
#undef HAVE_AUTHENTICATE
/* Define if you use Kerberos IV or Kerberos V < 1.1. */
#undef HAVE_KERB4
/* Define if you use Kerberos V version 1.1 or higher. */
#undef HAVE_KERB5
1998-10-19 00:22:38 +00:00
/* Define if you use SIA. */
#undef HAVE_SIA
/* Define if you use PAM. */
1998-09-11 23:23:33 +00:00
#undef HAVE_PAM
1994-07-14 15:32:01 +00:00
/* Define if you use AFS. */
#undef HAVE_AFS
1995-11-20 03:31:20 +00:00
/* Define if you use OSF DCE. */
#undef HAVE_DCE
/* Define if you use the FWTK authsrv daemon. */
#undef HAVE_FWTK
1994-06-06 20:56:40 +00:00
/* Define if you have POSIX signals. */
#undef HAVE_SIGACTION
#ifdef HAVE_SIGACTION
# define POSIX_SIGNALS
#endif /* HAVE_SIGACTION */
1994-07-14 21:43:09 +00:00
/* Define if you have tzset(3). */
#undef HAVE_TZSET
1994-03-12 18:37:58 +00:00
/* Define if you have getcwd(3). */
1994-03-10 07:45:06 +00:00
#undef HAVE_GETCWD
1996-05-28 00:01:17 +00:00
/* Define if you have fnmatch(3). */
#undef HAVE_FNMATCH
/* Define if you have lsearch(3). */
#undef HAVE_LSEARCH
1994-03-12 18:37:58 +00:00
/* Define if you have strchr(3). */
#undef HAVE_STRCHR
#if !defined(HAVE_STRCHR) && !defined(strchr)
1994-03-12 18:37:58 +00:00
# define strchr index
#endif
/* Define if you have strrchr(3). */
#undef HAVE_STRRCHR
#if !defined(HAVE_STRRCHR) && !defined(strrchr)
1994-03-12 18:37:58 +00:00
# define strrchr rindex
#endif
/* Define if you have memcpy(3). */
#undef HAVE_MEMCPY
#if !defined(HAVE_MEMCPY) && !defined(memcpy)
# define memcpy(D, S, L) (bcopy(S, D, L))
#endif
1995-03-30 02:44:55 +00:00
/* Define if you have memset(3). */
#undef HAVE_MEMSET
#if !defined(HAVE_MEMSET) && !defined(memset)
1995-03-30 03:06:12 +00:00
# define memset(S, X, N) (bzero(S, N))
1994-06-06 23:31:51 +00:00
#endif
1998-10-15 06:25:10 +00:00
/* Define if you have sysconf(3c). */
1994-05-24 00:26:19 +00:00
#undef HAVE_SYSCONF
1998-10-15 06:25:10 +00:00
/* Define if you have putenv(3). */
1994-08-06 23:18:38 +00:00
#undef HAVE_PUTENV
1998-10-15 06:25:10 +00:00
/* Define if you have setenv(3). */
1994-08-06 23:18:38 +00:00
#undef HAVE_SETENV
1998-10-15 06:25:10 +00:00
/* Define if you have strcasecmp(3). */
#undef HAVE_STRCASECMP
1998-10-15 06:25:10 +00:00
/* Define if you have tcgetattr(3). */
1994-10-04 16:53:54 +00:00
#undef HAVE_TCGETATTR
1998-10-15 06:25:10 +00:00
/* Define if you have innetgr(3). */
#undef HAVE_INNETGR
1998-10-15 06:25:10 +00:00
/* Define if you have getdomainname(2). */
#undef HAVE_GETDOMAINNAME
1998-10-15 06:25:10 +00:00
/* Define if you have utime(2). */
1995-06-18 00:46:01 +00:00
#undef HAVE_UTIME
1995-06-19 19:14:28 +00:00
/* Define if you have a POSIX utime() (uses struct utimbuf) */
#undef HAVE_UTIME_POSIX
1998-10-15 06:25:10 +00:00
/* Define if you have bigcrypt(3). */
1996-07-14 01:04:43 +00:00
#undef HAVE_BIGCRYPT
1998-10-15 06:25:10 +00:00
/* Define if you have set_auth_parameters(3). */
1998-09-07 16:42:32 +00:00
#undef HAVE_SET_AUTH_PARAMETERS
1998-10-19 18:32:00 +00:00
/* Define if you have initprivs(3). */
#undef HAVE_INITPRIVS
1998-10-25 20:21:47 +00:00
/* Define if you have dispcrypt(3). */
#undef HAVE_DISPCRYPT
/* Define if you have getspnam(3). [SVR4-style shadow passwords] */
#undef HAVE_GETSPNAM
/* Define if you have getprpwnam(3). [SecureWare-style shadow passwords] */
#undef HAVE_GETPRPWNAM
1998-11-03 19:56:04 +00:00
/* Define if you have iscomsec(3). [HP-UX >= 10.x check for shadow enabled] */
#undef HAVE_ISCOMSEC
/* Define if you have getspwuid(3). [HP-UX <= 9.X shadow passwords] */
#undef HAVE_GETSPWUID
/* Define if you have getpwanam(3). [SunOS 4.x shadow passwords] */
#undef HAVE_GETPWANAM
1998-11-03 19:56:04 +00:00
/* Define if you have issecure(3). [SunOS 4.x check for shadow enabled] */
#undef HAVE_ISSECURE
/* Define if you have getauthuid(3). [ULTRIX 4.x shadow passwords] */
#undef HAVE_GETAUTHUID
1998-10-15 06:25:10 +00:00
/* Define if you have seteuid(3). */
1996-10-09 17:36:47 +00:00
#undef HAVE_SETEUID
1998-10-15 06:25:10 +00:00
/* Define if you have waitpid(2). */
#undef HAVE_WAITPID
1998-10-15 06:25:10 +00:00
/* Define if you have wait3(2). */
#undef HAVE_WAIT3
/* Define if you have strerror(3). */
#undef HAVE_STRERROR
/* Define if you have snprintf(3). */
#undef HAVE_SNPRINTF
/* Define if you have vsnprintf(3). */
#undef HAVE_VSNPRINTF
/* Define if you have asprintf(3). */
#undef HAVE_ASPRINTF
/* Define if you have vasprintf(3). */
#undef HAVE_VASPRINTF
1994-03-10 07:45:06 +00:00
/* Define if you have the <malloc.h> header file. */
#undef HAVE_MALLOC_H
1996-06-26 02:29:04 +00:00
/* Define if you have the <alloca.h> header file. */
#undef HAVE_ALLOCA_H
1994-03-10 07:45:06 +00:00
/* Define if you have the <paths.h> header file. */
#undef HAVE_PATHS_H
/* Define if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define if you have the <strings.h> header file but no <string.h>. */
#ifndef HAVE_STRING_H
1994-03-10 07:45:06 +00:00
#undef HAVE_STRINGS_H
#endif /* !HAVE_STRING_H */
1994-03-10 07:45:06 +00:00
/* Define your flavor of dir entry header file. */
1995-03-26 01:38:44 +00:00
#undef HAVE_DIRENT_H
#undef HAVE_SYS_NDIR_H
#undef HAVE_SYS_DIR_H
#undef HAVE_NDIR_H
1995-03-26 01:38:44 +00:00
1995-06-18 19:08:31 +00:00
/* Define if you have the <utime.h> header file. */
#undef HAVE_UTIME_H
1994-03-10 07:45:06 +00:00
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
1994-03-12 18:37:58 +00:00
1996-05-25 22:09:55 +00:00
/* Define if you have the <fnmatch.h> header file. */
#undef HAVE_FNMATCH_H
1996-06-20 04:22:05 +00:00
/* Define if you have the <netgroup.h> header file. */
#undef HAVE_NETGROUP_H
1994-03-12 18:37:58 +00:00
/* Define if you have the <termio.h> header file. */
#undef HAVE_TERMIO_H
/* Define if you have the <termios.h> header file and tcgetattr(3). */
#ifdef HAVE_TCGETATTR
1994-03-12 18:37:58 +00:00
#undef HAVE_TERMIOS_H
#endif /* HAVE_TCGETATTR */
1994-05-29 00:28:57 +00:00
/* Define if you have the <sys/sockio.h> header file. */
#undef HAVE_SYS_SOCKIO_H
1996-01-09 17:41:38 +00:00
/* Define if you have the <sys/bsdtypes.h> header file. */
#undef HAVE_SYS_BSDTYPES_H
1996-10-08 23:21:28 +00:00
/* Define if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
1998-10-15 06:25:10 +00:00
/* Define if your struct sockadr has an sa_len field. */
1995-07-01 20:04:35 +00:00
#undef HAVE_SA_LEN
/* Define if you want to disable passwd/shadow file authentication. */
#undef WITHOUT_PASSWD
/* Define if you don't want sudo to prompt for a password at all. */
#undef NO_PASSWD
/* Define to void if your C compiler fully groks void, else char */
#undef VOID
1998-10-15 06:25:10 +00:00
/* Define to the max length of a uid_t in string context (excluding the NUL) */
1995-07-23 21:48:04 +00:00
#undef MAX_UID_T_LEN
1995-07-12 21:05:37 +00:00
/* Define if your syslog(3) does not guarantee the message will be logged */
/* and syslog(3) returns non-zero to denote failure */
#undef BROKEN_SYSLOG
1998-10-15 06:25:10 +00:00
/* The umask that the root-run prog should use */
#undef SUDO_UMASK
/* Define if you want the hostname to be entered into the log file */
#undef HOST_IN_LOG
/* Define if you want the log file line to be wrapped */
#undef WRAP_LOG
/* Define to be the number of minutes before sudo asks for passwd again. */
#undef TIMEOUT
/* Define to be the passwd prompt timeout (in minutes). */
#undef PASSWORD_TIMEOUT
/* Define to be the number of tries the user gets to enter the passwd. */
#undef TRIES_FOR_PASSWORD
/* Define to be the user sudo should run commands as by default. */
#undef RUNAS_DEFAULT
/* Define if you want to require fully qualified hosts in sudoers. */
#undef FQDN
/* If defined, users in this group need not enter a passwd (ie "sudo"). */
#undef EXEMPTGROUP
/* Define to the path of the editor visudo should use. */
#undef EDITOR
/* Define if root should not be allowed to use sudo. */
#undef NO_ROOT_SUDO
1998-10-15 06:25:10 +00:00
/* Define to be the user that gets sudo mail. */
#undef ALERTMAIL
/* Define to be the subject of the mail sent to ALERTMAIL by sudo. */
#undef MAILSUBJECT
/* Define to be the message given for a bad password. */
#undef INCORRECT_PASSWORD
/* Define to be the password prompt. */
#undef PASSPROMPT
/* Define if you want visudo to honor EDITOR and VISUAL env variables. */
#undef ENV_EDITOR
/* Define to SLOG_SYSLOG, SLOG_FILE, or SLOG_BOTH */
#undef LOGGING
/* Define to be the syslog facility to use. */
#undef LOGFAC
/* Define to be the max chars per log line (for line wrapping). */
#undef MAXLOGFILELEN
/* Define if your syslog.h has the prioritynames and facilitynames tables. */
#undef HAVE_SYSLOG_NAMES
1998-10-15 06:25:10 +00:00
/* Define if you want to ignore '.' and '' in $PATH */
#undef IGNORE_DOT_PATH
/* Define if you want "command not allowed" instead of "command not found" */
#undef DONT_LEAK_PATH_INFO
1998-10-15 06:25:10 +00:00
/* Define SHORT_MESSAGE for a short lecture or NO_MESSAGE for none. */
#undef SHORT_MESSAGE
#undef NO_MESSAGE
/* Define SEND_MAIL_WHEN_NO_USER to send mail when user not in sudoers file */
#undef SEND_MAIL_WHEN_NO_USER
/* Define SEND_MAIL_WHEN_NOT_OK to send mail when not allowed to run command */
#undef SEND_MAIL_WHEN_NOT_OK
/* Define if you want sudo to start a shell if given no arguments. */
#undef SHELL_IF_NO_ARGS
/* Define if you want sudo to set $HOME in shell mode. */
#undef SHELL_SETS_HOME
/* Define if the code in interfaces.c does not compile for you. */
#undef STUB_LOAD_INTERFACES
/********** You probably don't want to modify anything below here ***********/
/*
* Emulate a subset of waitpid() if we don't have it.
*/
#ifdef HAVE_WAITPID
1998-10-15 06:25:10 +00:00
# define sudo_waitpid(p, s, o) waitpid(p, s, o)
#else
1998-10-15 06:25:10 +00:00
# ifdef HAVE_WAIT3
# define sudo_waitpid(p, s, o) wait3(s, o, NULL)
# endif
#endif
1998-10-15 06:25:10 +00:00
#ifdef USE_EXECV
# define EXEC execv
#else
# define EXEC execvp
#endif /* USE_EXECV */
1998-09-10 22:51:36 +00:00
1998-11-18 20:25:12 +00:00
#ifdef __svr4__
# define BSD_COMP
#endif /* __svr4__ */
1998-10-15 06:25:10 +00:00
#endif /* _SUDO_CONFIG_H */