Commit Graph

402 Commits

Author SHA1 Message Date
Todd C. Miller
598341d366 Substitute sysconfdir in the installed sudoers file to get the
correct path for sudoers.d.
2010-08-18 08:09:10 -04:00
Todd C. Miller
8dd8aa000e Remove some obsolete configure tests, ancient Unix systems are no
longer supported.
2010-08-10 13:44:05 -04:00
Todd C. Miller
96cb890d53 No need to look up shadow password unless we are doing password-style
authentication.  This moves the shadow password lookup to the auth
functions that need it.
2010-08-06 13:55:33 -04:00
Todd C. Miller
ea79ea4467 Add cross-compile defaults for remaining AC_TRY_RUN usage.
Also add back getgroups() check since AC_FUNC_GETGROUPS defaults
to "no" when cross-compiling.
2010-08-02 15:32:06 -04:00
Todd C. Miller
24a755bfe7 Use AC_CHECK_MEMBER in SUDO_SOCK_SA_LEN
Use AC_TYPE_LONG_LONG_INT and AC_CHECK_SIZEOF([long int]) instead
    of rolling our own.
2010-07-31 21:19:46 -04:00
Todd C. Miller
6d0395ee68 Add support for Ubuntu admin flag file and enable it when building
Ubuntu packages.
2010-07-28 16:34:11 -04:00
Todd C. Miller
036a9d81bd Only try to use +DAportable for non-GCC on hppa 2010-07-28 16:27:45 -04:00
Todd C. Miller
5c7335e23e Prevent configure from adding the -g flag unless in devel mode 2010-07-28 09:24:55 -04:00
Todd C. Miller
5ba4a35a78 Some more ${foo} -> $(foo) conversion for consistent Makefiles. 2010-07-23 09:33:19 -04:00
Todd C. Miller
8660b5ea35 Change the default syslog facility from local2 to authpriv (or auth
if the operating system doesn't support authpriv).
2010-07-22 17:50:21 -04:00
Todd C. Miller
2675524c32 The tty_tickets option is now on by default. 2010-07-20 13:20:53 -04:00
Todd C. Miller
69ecb34581 If env_reset is enabled, set the MAIL environment variable based
on the target user unless MAIL is explicitly preserved in sudoers.
2010-07-19 12:50:59 -04:00
Todd C. Miller
3ea95dae3d Move zlib check later on in the script to avoid a strange shell problem
on SLES11.
2010-07-15 09:49:32 -04:00
Todd C. Miller
c2c15aa4e5 Move time stamp files from /var/run/sudo to /var/{db,lib,adm}/sudo. 2010-07-14 14:57:32 -04:00
Todd C. Miller
09a6f46511 Use a loop when searching for mv, sendmail and sh 2010-07-14 09:35:26 -04:00
Todd C. Miller
26ca852a98 Substitute the value of EDITOR into the sudoers and visudo manuals. 2010-07-14 09:33:53 -04:00
Todd C. Miller
7910281697 Add --insults=disabled configure option to allow people to build
in insult support but have the insults disabled unless explicitly
enabled in sudoers.
2010-07-12 18:04:16 -04:00
Todd C. Miller
d9de7b5f8e Add support for a sudo-i pam.d file to be used for "sudo -i".
Adapted from a RedHat patch.
2010-07-12 17:57:53 -04:00
Todd C. Miller
ea4298bb54 Use mkstemps() instead of mkstemp() in sudoedit. This allows sudoedit
to preserve the file extension (if any) which may be used by the editor
(like emacs) to choose the editing mode.
2010-07-09 10:08:05 -04:00
Todd C. Miller
6229c0e206 Now that sudoers is a dynamically loaded module we cannot override
the libc environment functions because the symbols may already have
been resolved via libc.  Remove getenv/putenv/setenv/unsetenv
replacements from sudoers and add replacements for setenv/unsetenv
for systems that lack them.
2010-07-06 16:44:33 -04:00
Todd C. Miller
ff4a61b92d Link testsudoers with -ldl when needed 2010-07-06 13:34:05 -04:00
Todd C. Miller
e6b48d415c Replace built-in non-unix group support with a sudoers group plugin.
Include a sample plugin that can read Unix-format group files.
2010-07-02 11:11:25 -04:00
Todd C. Miller
66eafd0994 Add a trailing slash to _PATH_SUDO_PLUGIN_DIR to simplify usage. 2010-07-02 10:53:47 -04:00
Todd C. Miller
9e60378c46 Substitute @io_logdir@ for the sudoers I/O log directory. 2010-07-01 13:49:10 -04:00
Todd C. Miller
30fe4a067c Set usrinfo for AIX
Set adminstrative domain for the process when looking up user's
    password or group info and when preparing for execve().
Include strings.h even if string.h exists since they may define
    different things.  Fixes warnings on AIX and others.
2010-06-29 13:08:05 -04:00
Todd C. Miller
867ba48dbf Add check for setkeycreatecon() when --with-selinux is specified. 2010-06-24 15:31:05 -04:00
Todd C. Miller
d63f49bcac Error out if libaudit.h is missing or ununable when --with-linux-audit
was specified
2010-06-24 15:29:38 -04:00
Todd C. Miller
39bccab398 Define _LINUX_SOURCE_COMPAT on AIX for strsignal() prototype, it
is not covered by _ALL_SOURCE.
2010-06-21 17:37:21 -04:00
Todd C. Miller
7c1e758249 Set timedir to /var/db/sudo for darwin to match Apple sudo's location 2010-06-18 09:50:45 -04:00
Todd C. Miller
ebc152ce8f Check for zlib.h in addition to libz. 2010-06-16 16:51:46 -04:00
Todd C. Miller
2cd108304d Add Linux audit support. 2010-06-16 11:17:02 -04:00
Todd C. Miller
54ffb19ccb remove setsid check, we require a POSIX system 2010-06-15 09:24:56 -04:00
Todd C. Miller
59718c32e4 Remove dup2() check, it is not optional. 2010-06-15 08:42:17 -04:00
Todd C. Miller
ec77318e32 Leave rules to build .man.in and .cat files uncommented but only make
them part of the "all" rule in devel mode.
Generate .cat files directly from .man.in instead of .man using default
values in configure.in
2010-06-11 18:34:24 -04:00
Todd C. Miller
608a3e7a27 Bump sudo version to 1.8.0b1 2010-06-11 10:55:30 -04:00
Todd C. Miller
a28a4764e6 Print configure args with verbose version information. 2010-06-11 10:53:44 -04:00
Todd C. Miller
e54cfc9bd4 We don't use getgrouplist() at the moment so there's no need to
provide a compat version.
2010-06-10 15:12:37 -04:00
Todd C. Miller
e5283b2f96 Require POSIX termios to build sudo 2010-06-09 11:09:55 -04:00
Todd C. Miller
79f178923e Replace timerfoo macros with timevalfoo since the timer macros are known
to be busted on some systems.
2010-06-08 18:38:23 -04:00
Todd C. Miller
b97d47424b Fix typo 2010-06-04 09:09:19 -04:00
Todd C. Miller
572c885414 HP-UX ld uses +b instead or -R or -rpath
Fix typo in libvas check
Add missing template for ENV_DEBUG
Adapted from Quest sudo
2010-06-02 10:30:34 -04:00
Todd C. Miller
9425527982 Add --enable-warnings and fix typo in SUDO_IO_LOGDIR 2010-05-30 11:16:31 -04:00
Todd C. Miller
2dd29bf64d Break sudoers transcript feature up into log_input and log_output. 2010-05-30 10:31:38 -04:00
Todd C. Miller
b8b006a885 Move code common to sudo and the sudoers plugin to a convenience library,
libcommon.  Removes the need to make links in the sudoers plugin dir
and reduces re-compilation of duplicate object files.
2010-05-27 17:27:36 -04:00
Todd C. Miller
349fedb022 bump version to 1.8.0a2 2010-05-27 15:09:05 -04:00
Todd C. Miller
807d1313a5 Use numeric registers to handle conditionals instead of trying
to do it all with text processing.
2010-05-25 16:13:04 -04:00
Todd C. Miller
79cb53c62c Use mandoc(1) if nroff(1) is not present. 2010-05-24 12:35:43 -04:00
Todd C. Miller
8a8830e34f Substitute @SHELL@ into Makefiles 2010-05-21 21:29:44 -04:00
Todd C. Miller
755752c6b1 Update to autoconf 2.65 2010-05-21 19:25:17 -04:00
Todd C. Miller
51b558e753 Update to libtool-2.2.6b. I haven't made any local modifications
this time, which should be OK since we install sudo_noexec.so by
hand now.
2010-05-21 17:59:47 -04:00