Commit Graph

442 Commits

Author SHA1 Message Date
Todd C. Miller
021e2a94b9 The --with-libpath option now adds to SUDOERS_LDFLAGS as well as LDFLAGS.
Remove old -static hack for HP-UX < 9.
Add LTLDFLAGS and set it to -Wc,-static-libgcc if not using GNU ld so we
    don't have a dependency on the shared libgcc in sudoers.so.
2011-04-05 09:42:59 -04:00
Todd C. Miller
2534672f62 We need to include OSDEFS in CFLAGS when doing the utmp/utmpx
structure checks for glibc which only has __e_termination visible
when _GNU_SOURCE is *not* defined.
2011-03-30 10:14:25 -04:00
Todd C. Miller
53d183c380 Add explicit check for struct utmpx.ut_exit.e_termination
and struct utmpx.ut_exit.__e_termination.  HP-UX uses the latter.
Only update ut_exit if we detect one or the other.
2011-03-29 09:10:40 -04:00
Todd C. Miller
13b9c7b17b Remove the hack to disable -g in CFLAGS unless --with-devel 2011-03-17 18:43:46 -04:00
Todd C. Miller
27dbaa8ded Change trunk version to 1.8.x to distinguish from real 1.8.0. 2011-03-16 16:07:33 -04:00
Todd C. Miller
2041d39db7 Add support for ut_exit 2011-03-15 16:18:33 -04:00
Todd C. Miller
5e6bc4017b Add check for _PATH_UTMP 2011-03-15 11:56:49 -04:00
Todd C. Miller
8653ccc809 Redo utmp handling. If no getutent()/getutxent() is available,
assume a ttyslot-based utmp.  If getttyent() is available, use
that directly instead of ttyslot() so we don't have to do the
stdin dup2 dance.
2011-03-14 10:20:47 -04:00
Todd C. Miller
c7a7d31905 Add support for disabling exec via solaris privileges.
Includes preparation for moving noexec support out of sudoers
and into front end as documented.
2011-03-10 14:24:10 -05:00
Todd C. Miller
498248d1f0 Install plugins manually instead of using libtool. This works
around a problem on AIX where libtool will install a .a file
containing the .so file instead of the .so file itself.
2011-03-10 10:57:56 -05:00
Todd C. Miller
62edd57ab7 Update to libtool 2.2.10 2011-03-10 10:31:27 -05:00
Todd C. Miller
1496bfed6c Add support for adding a utmp entry when allocating a new pty.
Requires the BSD login(3) or SYSV/POSIX getutent()/getutxent().
Currently only creates a new entry if the existing tty has
a utmp entry.
2011-03-08 15:37:40 -05:00
Todd C. Miller
2241947b38 Add some more libs to SUDOERS_LIBS instead of relying on them to be
pulled in by SUDO_LIBS.
2011-03-08 09:46:35 -05:00
Todd C. Miller
3cc46dd70a Move libs used for authentication from SUDO_LIBS to SUDOERS_LIBS
where they belong.
2011-03-04 08:26:48 -05:00
Todd C. Miller
4333b06914 version 1.8.0 2011-02-25 14:57:18 -05:00
Todd C. Miller
74c4252c1b 1.8.0rc1 2011-02-21 13:36:24 -05:00
Todd C. Miller
39d9feb438 The howmany macro lives in sys/sysmacros.h on SVR5 systems
Closes Bug 470
2011-02-19 08:23:46 -05:00
Todd C. Miller
554833c587 1.8.0b5 2011-02-16 12:22:56 -05:00
Todd C. Miller
d661058389 Prefer getutxid over getutid 2011-02-09 15:11:52 -05:00
Todd C. Miller
cd6abe1d3f fix --with-iologdir=no 2011-02-04 14:44:47 -05:00
Todd C. Miller
e78e91282f fix typo that broke --with-iologdir 2011-02-04 14:33:54 -05:00
Todd C. Miller
7f277d1558 Bump version to 1.8.0b4 2011-02-03 14:26:58 -05:00
Todd C. Miller
ed8e30cf6e Add --disable-env-reset configure option. 2011-01-28 16:52:25 -05:00
Todd C. Miller
807a9ca94b Do logging and email sending in the locale specified by the
"sudoers_locale" setting ("C" by default).  Email send by sudo
includes MIME headers when the sudoers locale is not "C".
2011-01-28 16:11:47 -05:00
Todd C. Miller
49409b7c5d Add support for TIMEOUT in ldap.conf, mapping to the OpenLDAP
LDAP_OPT_TIMEOUT.  There is no corresponding option for mozilla-derived
LDAP SDKs but we can pass the timeout parameter to ldap_search_ext_s()
or ldap_search_st() when possible.
2011-01-10 10:33:22 -05:00
Todd C. Miller
b8499baaae Fix building of mkstemps/mkdtemp replacements. 2010-12-27 14:07:49 -05:00
Todd C. Miller
5cf56a77ec Provide mkdtemp() for systems without it. 2010-12-27 13:49:49 -05:00
Todd C. Miller
6649afddba Bump version to 1.8.0b3 2010-12-17 16:36:45 -05:00
Todd C. Miller
6c23688511 Rename io_logdir to iolog_dir 2010-12-10 14:13:51 -05:00
Todd C. Miller
81da78ff3d Add workaround for an error in sys/types.h on HP-UX 11.23 when
large file support is enabled.  Defining _XOPEN_SOURCE_EXTENDED
avoids the broken bits of the header file.
2010-11-20 16:26:53 -05:00
Todd C. Miller
4c2dcaa10b Fail with a more useful error if "ar" is not found. 2010-11-16 10:03:18 -05:00
Todd C. Miller
d4e323c11a Only substitute file zlib files when using the builtin zlib 2010-11-09 10:34:08 -05:00
Todd C. Miller
8528827500 Bump version to 1.8.0b2 2010-11-08 11:27:20 -05:00
Todd C. Miller
361cd29073 Add local copy of zlib for systems that lack it. 2010-10-28 11:17:40 -04:00
Todd C. Miller
49d1142dfa HP-UX 10.20 libc has an incompatible getline 2010-10-12 09:24:24 -04:00
Todd C. Miller
56bdfe9413 Check for vi even with --with-editor specified; the sample plugin needs it. 2010-10-12 09:08:09 -04:00
Todd C. Miller
443d18b11a Fix dlopen() detection for systems where dlopen() is in a separate library. 2010-10-11 09:21:56 -04:00
Todd C. Miller
e59fa31bac Fix typo and regenerate 2010-10-01 12:20:32 -04:00
Todd C. Miller
f538ed4e35 Add dlopen() emulation for systems without it.
For HP-UX 10, emulate using shl_load().
For others, link sudoers plugin statically and use a lookup
table to emulate dlsym().
2010-09-26 17:41:35 -04:00
Todd C. Miller
b51afe6249 Implement --with-umask-override configure flag. 2010-09-14 17:18:55 -04:00
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