Commit Graph

43 Commits

Author SHA1 Message Date
Todd C. Miller
36e828b59f Sudo 1.8.11 2014-06-26 15:51:15 -06:00
Todd C. Miller
87c2fe5a31 Prefix all libc replacements with sudo_ and #define the real name
to the sudo_ version.  That way we don't pollute the libc namespace.
2014-06-26 15:51:08 -06:00
Todd C. Miller
4d37a4a162 Top level directory reorg
Move src/po -> po
Combine common and compat -> lib/util
Move zlib -> lib/zlib
2014-06-26 15:51:02 -06:00
Todd C. Miller
e2efec5b3c lockf() is broken on the Hurd -- use flock instead
Bug #647
2014-05-09 10:03:17 -06:00
Todd C. Miller
4902f4e3ec Solaris 8 doesn't export _nss_initf_group() so we need to provide
out own for getgrouplist().
2014-05-07 09:03:02 -06:00
Todd C. Miller
e54fe5a269 Sudo 1.8.10p3 2014-05-06 08:46:56 -06:00
Todd C. Miller
218aa1e598 Move the sha2 code into libreplace and add configure checks for
SHA224Update in libc and libmd.  Solaris uses "void *" where we use
"unsigned char *" so we need a check for that too.  Solaris sha2.h
defines SHA224, SHA256, SHA384, and SHA512 so rename those tokens.
Adapted from changes from Vladimir Marek in bug #641.
2014-04-09 16:31:13 -06:00
Todd C. Miller
122257e095 Sudo 1.8.10p2 2014-03-17 08:09:39 -06:00
Todd C. Miller
01cf646a77 Sudo 1.8.10p1 2014-03-13 14:41:36 -06:00
Todd C. Miller
0cf7f404a4 Check whether ber.h is needed before ldap.h even if we are not using
any ber functions.  Needed for older versions of nss ldap.
2014-03-06 15:26:09 -07:00
Todd C. Miller
9c17914bf9 Try -libmldap before -lldap in case there is no link from libibmldap.so
to libldap.so.  Since IBM ldap is installed under /opt we should only
be able to reach it if --with-ldap was given an explicit path.

Only check for ber_set_option() if LBER_OPT_DEBUG_LEVEL is defined.
2014-02-28 11:05:13 -07:00
Todd C. Miller
cb3cea3fa9 Fix INIT_DIR for real this time. 2014-02-16 14:49:15 -07:00
Todd C. Miller
0bf299c690 Use correct init.d dir on HP-UX.
Fix pp warnings from rc.d and init.d dirs.
2014-02-16 11:00:41 -07:00
Todd C. Miller
96d87d55dd First cut add installing an init.d file for HP-UX and AIX to remove
old sudo timestamp files at boot time.
2014-02-16 10:22:43 -07:00
Todd C. Miller
85598f77b2 Use inet_pton() instead of inet_aton() and include a version from
BIND for those without it.
2014-02-05 10:00:07 -07:00
Todd C. Miller
249becb1ac Warn the user if the rundir needs to be cleared in the rc files.
Neither AIX not HP-UX clear /var/run (if it even exists).
2014-02-04 15:14:48 -07:00
Todd C. Miller
b590182abf Check libraries for inet_pton() if not in libc. 2014-02-03 05:42:39 -07:00
Todd C. Miller
719e58740b Fix clock_gettime() detection when it lives in librt.
Some systems have inet_aton() in libresolv (older Solaris).
2014-02-02 08:34:53 -07:00
Todd C. Miller
aeb5ceead8 Replace --with-timedir and --with-lecture_dir with --with-rundir
and --with-vardir which are the parent directories of the time stamp
and lecture dirs.  These directories need to be searchable by
non-root so that the timestampowner setting can function.
2014-02-01 05:57:34 -07:00
Todd C. Miller
659b1f0e34 Switch to new time stamp file format. Each user now has a single
file which may contain multiple records when per-tty time stamps
are in use (the default).  The time stamps use a monotonic timer
where available and are once again stored in /var/run/sudo.  The
lecture status is now stored separately from the time stamps in a
different directory.
2014-01-30 15:50:40 -07:00
Todd C. Miller
aaecd326e4 Use inet_aton() instead of inet_addr() as it allows us to distinguish
between the address (or mask 255.255.255.255) and an error.  In the
future we may consider switching to inet_pton() for IPv4 too.
2014-01-26 13:23:09 -07:00
Todd C. Miller
cf6bca1390 Add explicit dependency on sudoers.la to sudo target when sudoers
is compiled statically into the sudo binary.
2014-01-22 14:47:27 -07:00
Todd C. Miller
2de0115cb8 Update for sudo 1.8.9p4 2014-01-15 06:01:54 -07:00
Todd C. Miller
50c7e759d9 Update for sudo 1.8.9p3 2014-01-13 11:09:00 -07:00
Todd C. Miller
bf7a513890 Update for sudo 1.8.9p2 2014-01-09 15:25:51 -07:00
Todd C. Miller
a3d88b9db7 Update for sudo 1.8.9p1 2014-01-07 10:44:35 -07:00
Todd C. Miller
483e6972f6 Use -fstack-protector-strong in preference to -fstack-protector-all
or -fstack-protector.
2013-12-30 08:49:34 -07:00
Todd C. Miller
eb44a5ba5c No need to use __signed. 2013-12-17 16:08:18 -07:00
Todd C. Miller
cbf41b8b96 The OpenBSD strtonum() uses very short error strings that can't
be translated usefully.  Convert them to longer strings on error.
Also use the longer strings for atomode() and atoid().
2013-12-11 13:43:10 -07:00
Todd C. Miller
8f9ce7249a Use strtonum() instead of atoi(), strtol() or strtoul() where possible. 2013-12-10 16:23:21 -07:00
Todd C. Miller
f83eac40eb Add strtonum.c to compat for simpler number parsing. 2013-12-10 14:38:52 -07:00
Todd C. Miller
0d81263e26 Instead of setprogname(), add initprogname() which gets the program
name for getprogname() using /proc or pstat() if possible.
2013-12-01 19:12:21 -07:00
Todd C. Miller
4247c1741b Do not add LIBDL to SUDO_LIBS or SUDOERS_LIBS in configure, do it
in Makefile.in so we can make it last.  Fixes a linking problem on
Ubuntu precise.
2013-11-26 07:15:55 -07:00
Todd C. Miller
12f3bdf60e Add wrapper functions for dlopen() et al so that we can support
statically compiling in the sudoers plugin but still allow other
plugins to be loaded.  The new --enable-static-sudoers configure
option will cause the sudoers plugin to be compiled statically into
the sudo binary.  This does not prevent other plugins from being
loaded as per sudo.conf.
2013-11-22 16:35:15 -07:00
Todd C. Miller
6a1d1e1483 Add dedicated test for getaddrinfo(). Tru64 UNIX contains two
versions of getaddrinfo and we must include netdb.h to get the
proper definition.
2013-11-20 12:04:47 -07:00
Todd C. Miller
42b1e4a9c4 Add check for C99 compliant (v)snprintf function. 2013-11-19 10:40:25 -07:00
Todd C. Miller
0a47860ef7 Include unistd.h in sig2str.c for Tru64 as it defines SIGRTMIN and
SIGRTMAX in terms of sysconf(), which is prototyped in unistd.h.
Bug #621; from Daniel Richard G.
2013-11-19 09:48:01 -07:00
Todd C. Miller
3dab6bd8e9 Allow sudo to compile without variadic macro support in cpp.
Debugging support will be limited (no file info from warnings.)
From Daniel Richard G.; Bug #621
2013-11-18 09:10:09 -07:00
Todd C. Miller
99b7351de0 Fix some #if vs. #ifdef and remove an extraneous semicolon.
Bug #624; from Daniel Richard G.
2013-11-17 16:15:36 -07:00
Todd C. Miller
bf65cc041e Fixes for building under Tru64; from Daniel Richard G.
Bug #624
2013-11-17 14:16:13 -07:00
Todd C. Miller
942f732a50 Add -Wpointer-arith to --enable-warnings 2013-11-15 15:33:46 -07:00
Todd C. Miller
e684f6a096 Fix more instances of #include directives where the '#' was not in
column 1.  From Daniel Richard G. (bug #622)
2013-11-15 15:16:47 -07:00
Todd C. Miller
e31b2ba6a8 Rename configure.in -> configure.ac 2013-11-13 15:00:28 -07:00