]>
granicus.if.org Git - sudo/log
Todd C. Miller [Tue, 3 Feb 2015 17:00:30 +0000 (10:00 -0700)]
Use stdint.h to get SIZE_MAX as inttypes.h on some pre-C99 HP-UX
systems doesn't include stdint.h itself.
Todd C. Miller [Tue, 3 Feb 2015 14:33:26 +0000 (07:33 -0700)]
SIZE_MAX may be in limits.h on pre-C99 compilers.
Todd C. Miller [Tue, 3 Feb 2015 14:33:25 +0000 (07:33 -0700)]
Add missing prototypes for usrinfo() and setauthdb() for AIX.
Todd C. Miller [Tue, 3 Feb 2015 14:33:24 +0000 (07:33 -0700)]
Solaris uses sysinfo(SI_SRPC_DOMAIN) instead of getdomainname() to
get the host's NIS domain.
Todd C. Miller [Tue, 3 Feb 2015 03:10:50 +0000 (20:10 -0700)]
Remove AC_PROG_GCC_TRADITIONAL and add AC_PROG_CC_STDC since we
need C99.
Todd C. Miller [Mon, 2 Feb 2015 22:38:03 +0000 (15:38 -0700)]
Actually use the check for prior initialization in sudo_getdomainname().
Todd C. Miller [Mon, 2 Feb 2015 22:36:12 +0000 (15:36 -0700)]
We need to add OSDEFS to CFLAGS to expose LLONG_MAX et al on glibc
when not explicitly asking for c99.
Todd C. Miller [Mon, 2 Feb 2015 21:36:38 +0000 (14:36 -0700)]
Fix check for SIZE_MAX, which should be in stdint.h not limits.h.
Todd C. Miller [Mon, 2 Feb 2015 21:20:24 +0000 (14:20 -0700)]
Need to include inttypes.h for SIZE_MAX
Todd C. Miller [Mon, 2 Feb 2015 20:53:44 +0000 (13:53 -0700)]
regen
Todd C. Miller [Sun, 1 Feb 2015 15:24:49 +0000 (08:24 -0700)]
Go back to a 2 args debug_decl and just use the "default" instance,
now renamed "active".
Todd C. Miller [Sun, 1 Feb 2015 02:02:40 +0000 (19:02 -0700)]
Update copyright year.
Todd C. Miller [Fri, 30 Jan 2015 21:45:22 +0000 (14:45 -0700)]
When querying LDAP netgroups, use the NIS domain if it is sent but
also match nisNetgroupTriple entries that have no domain.
Todd C. Miller [Fri, 30 Jan 2015 20:07:21 +0000 (13:07 -0700)]
Avoid setting the tty to non-blocking mode so "sudoreplay | cat"
(for example) works as expected. We only read a single byte from
the keyboard and only when interactive anyway so this should be fine.
Todd C. Miller [Fri, 30 Jan 2015 19:57:27 +0000 (12:57 -0700)]
regen
Todd C. Miller [Fri, 30 Jan 2015 17:45:15 +0000 (10:45 -0700)]
Avoid a cppcheck warning about undefined behavior (using the address
of a stack buffer - 1) and fix a memory leak of the iov when
doing nl->crnl conversion.
Todd C. Miller [Fri, 30 Jan 2015 16:24:46 +0000 (09:24 -0700)]
Add Steven Soulen
Todd C. Miller [Fri, 30 Jan 2015 16:23:30 +0000 (09:23 -0700)]
Fix handling of partial writes from writev() which can occur with
large output buffers.
Todd C. Miller [Thu, 29 Jan 2015 21:08:30 +0000 (14:08 -0700)]
Add support for querying netgroups directly via LDAP since there
is no other way to look up all the netgroups for a user (unlike
regular groups). This introduces netgroup_base and netgroup_search_filter
options to ldap.conf. Based on a diff from Steven Soulen.
Todd C. Miller [Tue, 27 Jan 2015 16:29:02 +0000 (09:29 -0700)]
Sort ldap.conf options.
Todd C. Miller [Thu, 22 Jan 2015 18:42:32 +0000 (11:42 -0700)]
Add macros to ease the checking of strlcpy, strlcat and
sudo_ldap_value_cat return values.
Todd C. Miller [Wed, 21 Jan 2015 18:03:48 +0000 (11:03 -0700)]
Rename VALIDATE_OK -> VALIDATE_SUCCESS
Rename VALIDATE_NOT_OK -> VALIDATE_FAILURE
Todd C. Miller [Wed, 21 Jan 2015 17:36:55 +0000 (10:36 -0700)]
Remove now-unused VALIDATE_ERROR define.
Todd C. Miller [Wed, 21 Jan 2015 17:33:56 +0000 (10:33 -0700)]
should_mail() now returns bool.
Todd C. Miller [Wed, 21 Jan 2015 17:08:41 +0000 (10:08 -0700)]
If sudo_debug_register() fails return SUDO_DEBUG_INSTANCE_INITIALIZER,
not -1. Otherwise we could end up setting the instance to -1 which
is invalid.
Todd C. Miller [Wed, 21 Jan 2015 15:51:41 +0000 (08:51 -0700)]
Fix typo.
Todd C. Miller [Wed, 21 Jan 2015 15:51:27 +0000 (08:51 -0700)]
Use "mandoc -Tascii" to generate .cat pages to avoid locale-specific
characters.
Todd C. Miller [Mon, 19 Jan 2015 21:25:17 +0000 (14:25 -0700)]
Use AC_PATH_PROG to find programs instead of checking the path manually.
Todd C. Miller [Fri, 16 Jan 2015 13:48:08 +0000 (06:48 -0700)]
Sync with OpenBSD version
Todd C. Miller [Fri, 16 Jan 2015 04:00:01 +0000 (21:00 -0700)]
Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE where
possible and quote the first args in AC_CHECK_FUNCS calls.
Todd C. Miller [Fri, 16 Jan 2015 00:01:30 +0000 (17:01 -0700)]
Avoid inadvertantly defining things like PATH_MAX simply because
the source file doesn't include limits.h.
Todd C. Miller [Thu, 15 Jan 2015 00:00:16 +0000 (17:00 -0700)]
Update to libtool 2.4.4 + HP-UX patches
Todd C. Miller [Wed, 14 Jan 2015 18:01:41 +0000 (11:01 -0700)]
Document why we need sys/param.h.
Todd C. Miller [Wed, 14 Jan 2015 18:00:01 +0000 (11:00 -0700)]
Don't need sys/param.h.
Todd C. Miller [Wed, 14 Jan 2015 17:58:32 +0000 (10:58 -0700)]
Don't appear to need sys/param.h for pstat_getproc() on HP-UX even
though the man page lists it.
Todd C. Miller [Wed, 14 Jan 2015 17:55:42 +0000 (10:55 -0700)]
Should not need sys/param.h here.
Todd C. Miller [Wed, 31 Dec 2014 22:47:33 +0000 (15:47 -0700)]
Use standard CIDR -> netmask conversion and disallow 0-bit CIDRs.
Todd C. Miller [Wed, 24 Dec 2014 15:05:22 +0000 (08:05 -0700)]
Update link to gq LDAP editor, now on sourceforge.
Todd C. Miller [Wed, 17 Dec 2014 00:04:13 +0000 (17:04 -0700)]
Add support for GLOB_LIMIT from OpenBSD (not currently used) and
also a limit on the max recursion depth for glob().
Todd C. Miller [Tue, 16 Dec 2014 17:46:25 +0000 (10:46 -0700)]
Quiet compiler sign compare warning.
Todd C. Miller [Wed, 10 Dec 2014 21:06:34 +0000 (14:06 -0700)]
fnmatch fix
Todd C. Miller [Wed, 10 Dec 2014 21:00:12 +0000 (14:00 -0700)]
Remove artificial limit on length of pattern and string. It is
possible to use fnmatch() on things other than paths (such as
arguments) so a limit of PATH_MAX does not make sense. Fixes a bug
where rules would fail to match if the length of the arguments were
larger than PATH_MAX (usually 1024).
Todd C. Miller [Fri, 5 Dec 2014 00:00:38 +0000 (17:00 -0700)]
Remove the extra /sudo in sudo.ws urls
Todd C. Miller [Thu, 27 Nov 2014 16:51:06 +0000 (09:51 -0700)]
Reference bugzilla.sudo.ws
Todd C. Miller [Thu, 20 Nov 2014 20:34:17 +0000 (13:34 -0700)]
sync
Todd C. Miller [Thu, 20 Nov 2014 00:07:24 +0000 (17:07 -0700)]
Require that a digest be specified with a real command, not an alias
or pseudo-command. Found via a crash by afl.
Todd C. Miller [Wed, 19 Nov 2014 22:20:18 +0000 (15:20 -0700)]
sync
Todd C. Miller [Wed, 19 Nov 2014 22:20:11 +0000 (15:20 -0700)]
French translation for sudoers from translationproject.org.
Todd C. Miller [Tue, 18 Nov 2014 21:05:51 +0000 (14:05 -0700)]
Defer registration of the SIGCHLD handler until just before we exec
the command. Fixes a problem where pam_gnome_keyring installs its
own SIGCHLD handler and may not restore the original one. As a
result, we now have to explicitly wait for the askpass helper to
finish. Bug #657
Todd C. Miller [Mon, 17 Nov 2014 22:26:12 +0000 (15:26 -0700)]
Mention sssd support in the sudoers.ldap manual and cross-reference
sssd-sudo(5).
Todd C. Miller [Sun, 16 Nov 2014 14:30:55 +0000 (07:30 -0700)]
Reorder an entry.
Todd C. Miller [Sat, 15 Nov 2014 13:32:39 +0000 (06:32 -0700)]
Prevent cppcheck from getting confused by our compat definition of
the va_copy macro for pre-C99.
Todd C. Miller [Fri, 14 Nov 2014 23:31:56 +0000 (16:31 -0700)]
Fix potential NULL pointer deref found by cppcheck.
Todd C. Miller [Fri, 14 Nov 2014 23:31:30 +0000 (16:31 -0700)]
Quiet a cppcheck false positive.
Todd C. Miller [Fri, 14 Nov 2014 23:30:22 +0000 (16:30 -0700)]
If there are multiple outputs, ap will be re-used so make a copy
and operate on it instead.
Todd C. Miller [Fri, 14 Nov 2014 21:56:29 +0000 (14:56 -0700)]
Fix typo in hook return value check.
Todd C. Miller [Fri, 14 Nov 2014 21:17:01 +0000 (14:17 -0700)]
Mention visudo use of sudoers plugin args to set default sudoers
file name and owner/mode.
Todd C. Miller [Fri, 14 Nov 2014 20:11:11 +0000 (13:11 -0700)]
Mention fix for bug #678
Todd C. Miller [Mon, 10 Nov 2014 19:37:58 +0000 (12:37 -0700)]
Sync with translationproject.org
Todd C. Miller [Thu, 13 Nov 2014 03:33:41 +0000 (20:33 -0700)]
In set_fqdn() we neeed to set user_runhost/user_srunhost at the
same time we set user_host/user_shost since that is what
hostlist_matches() uses. Bug #678
Todd C. Miller [Tue, 11 Nov 2014 22:31:16 +0000 (15:31 -0700)]
Do not call sudo_warnx() on invalid value from the env hook functions
as the printf() family may call getenv() for locale reasons.
Todd C. Miller [Tue, 11 Nov 2014 22:29:19 +0000 (15:29 -0700)]
No need to keep specifying ".Nm foo" since the Nm macro remembers
the argument it was first called with and uses it if none is
specified. Also fix a few minor formatting errors and
regen bulleted lists in the .man.in files.
Todd C. Miller [Tue, 11 Nov 2014 21:18:07 +0000 (14:18 -0700)]
Add sudo.conf to SEE ALSO and rename section on sudo.conf
Todd C. Miller [Tue, 11 Nov 2014 21:15:47 +0000 (14:15 -0700)]
Mention sudo.conf use for debugging
Todd C. Miller [Tue, 11 Nov 2014 20:56:01 +0000 (13:56 -0700)]
regen
Todd C. Miller [Tue, 11 Nov 2014 20:55:40 +0000 (13:55 -0700)]
Document sudo.conf usage now that visudo will parse the sudoers arguments.
Todd C. Miller [Tue, 11 Nov 2014 03:12:47 +0000 (20:12 -0700)]
Use sudoers.so args from sudo.conf to set sudoers_file, sudoers_uid,
sudoers_gid, and sudoers_mode in visudo.
Todd C. Miller [Mon, 10 Nov 2014 22:23:51 +0000 (15:23 -0700)]
Use sudoers_file, sudoers_uid, sudoers_gid, and sudoers_mode
symbols from toke.l instead of the upper case defines.
Todd C. Miller [Mon, 10 Nov 2014 21:58:46 +0000 (14:58 -0700)]
Use SSP_LDFLAGS when creating shared objects.
Todd C. Miller [Mon, 10 Nov 2014 21:58:45 +0000 (14:58 -0700)]
We only build .lo (not .o) files for libsudo_util
Todd C. Miller [Thu, 6 Nov 2014 16:25:26 +0000 (09:25 -0700)]
sync
Todd C. Miller [Tue, 4 Nov 2014 16:24:41 +0000 (09:24 -0700)]
Make sure that SIGCHLD is not treated as a user-generated signal
in which case it could be ignored. Bug #676
Todd C. Miller [Thu, 30 Oct 2014 13:09:02 +0000 (07:09 -0600)]
Update to libtool 2.4.3 + HP-UX patches
Todd C. Miller [Fri, 31 Oct 2014 12:57:19 +0000 (06:57 -0600)]
Use arc4random() for mkstemp/mkdtemp if available. If not, try to
seed from /dev/urandom before falling back to the gettimeofday seed.
Todd C. Miller [Wed, 29 Oct 2014 19:03:39 +0000 (13:03 -0600)]
If a system lacks mkdtemp() or mkstemps(), use our own mkdtemp()
and mkstemps(). Previously we only exposed the missing one but
since the guts are the same we might as well use them.
Todd C. Miller [Fri, 31 Oct 2014 12:57:17 +0000 (06:57 -0600)]
Use a static buffer for sudo_debug_execve2() if possible.
Todd C. Miller [Wed, 29 Oct 2014 16:54:40 +0000 (10:54 -0600)]
Mark the putenv(), setenv() and unsetenv() symbols as global, not
hidden. Fixes a mismatch where a plugin (or its loaded dso) would
call setenv() to set a variables but be unable to find it later
with getenv().
Todd C. Miller [Tue, 28 Oct 2014 20:45:39 +0000 (14:45 -0600)]
Fix install-nls target from builddir.
Todd C. Miller [Tue, 28 Oct 2014 20:14:22 +0000 (14:14 -0600)]
Fix dependency on sudo.pp, it needs to relative to srcdir.
Todd C. Miller [Tue, 28 Oct 2014 13:36:08 +0000 (07:36 -0600)]
Adapt to new debug subsystem registration.
Todd C. Miller [Tue, 28 Oct 2014 03:09:02 +0000 (21:09 -0600)]
Add missing zlib.exp file and common LT_LDFLAGS Makefile.in.
Todd C. Miller [Mon, 27 Oct 2014 22:31:33 +0000 (16:31 -0600)]
Fix path settings broken in rev 9731.
Todd C. Miller [Mon, 27 Oct 2014 22:31:01 +0000 (16:31 -0600)]
Adjust regress test now that boolean settings display an error for
invalid input.
Todd C. Miller [Mon, 27 Oct 2014 22:06:20 +0000 (16:06 -0600)]
Add sudoers_debug_deregister() and use it instead of calling
sudo_debug_deregister() directly.
Todd C. Miller [Mon, 27 Oct 2014 20:54:13 +0000 (14:54 -0600)]
Use AC_PROG_AWK
Todd C. Miller [Mon, 27 Oct 2014 20:49:28 +0000 (14:49 -0600)]
Mention shared zlib.
Todd C. Miller [Mon, 27 Oct 2014 20:47:48 +0000 (14:47 -0600)]
Add lib/zlib/zlib.exp
Todd C. Miller [Mon, 27 Oct 2014 20:39:07 +0000 (14:39 -0600)]
Add support for installing a shared zlib
Todd C. Miller [Mon, 27 Oct 2014 20:21:27 +0000 (14:21 -0600)]
fix comment typo
Todd C. Miller [Mon, 27 Oct 2014 20:20:33 +0000 (14:20 -0600)]
Newer zlib uses HAVE_HIDDEN to turn on symbol hiding so we don't
need to disable it with NO_VIS.
Todd C. Miller [Mon, 27 Oct 2014 18:35:49 +0000 (12:35 -0600)]
regen
Todd C. Miller [Mon, 27 Oct 2014 11:26:08 +0000 (05:26 -0600)]
Version the symbols for sudo_debug.c now that the API is stable.
Todd C. Miller [Sun, 26 Oct 2014 14:33:09 +0000 (08:33 -0600)]
Go back to parsing sudo.conf in place for settings and paths and
improve debugging info for unsupported entries and parse errors.
Todd C. Miller [Sun, 26 Oct 2014 14:33:08 +0000 (08:33 -0600)]
Add a flag argument to sudo_conf_read() so we can decide which
bits get parsed. This lets us parse Debug statements first and
init the debug subsystem early.
Todd C. Miller [Fri, 24 Oct 2014 22:59:48 +0000 (16:59 -0600)]
Include stdio.h after zlib.h, not before. We need the large file defines
to come first.
Todd C. Miller [Fri, 24 Oct 2014 21:28:03 +0000 (15:28 -0600)]
Update zlib to version 1.2.8
Todd C. Miller [Fri, 24 Oct 2014 21:26:21 +0000 (15:26 -0600)]
Don't add -Wold-style-definition to CFLAGS as it causes problems
with 3rd party libraries such as zlib.
Todd C. Miller [Fri, 24 Oct 2014 21:09:35 +0000 (15:09 -0600)]
Free up plugin info structs after converting to plugin containers.
Todd C. Miller [Fri, 24 Oct 2014 20:25:12 +0000 (14:25 -0600)]
Move sample.* files to a sudo examples dir
Todd C. Miller [Fri, 24 Oct 2014 20:25:10 +0000 (14:25 -0600)]
Fix a packaging problem with the sudoedit man page link on Debian.