]>
granicus.if.org Git - sudo/log
Todd C. Miller [Tue, 10 Feb 2015 20:39:03 +0000 (13:39 -0700)]
Minor change in description of TZ path handling.
Todd C. Miller [Tue, 10 Feb 2015 16:50:09 +0000 (09:50 -0700)]
Move example dir under the doc dir to conform to Debian guidelines.
Bug #682.
Todd C. Miller [Tue, 10 Feb 2015 16:37:10 +0000 (09:37 -0700)]
Document that a leading ':' is skipped when checking TZ for a
fully-qualified path name.
Todd C. Miller [Mon, 9 Feb 2015 23:21:52 +0000 (16:21 -0700)]
Typo.
Todd C. Miller [Mon, 9 Feb 2015 18:39:28 +0000 (11:39 -0700)]
Fix typos.
Todd C. Miller [Mon, 9 Feb 2015 15:52:19 +0000 (08:52 -0700)]
Fix compilation on systems w/o __dso_public
Todd C. Miller [Sat, 7 Feb 2015 14:47:39 +0000 (07:47 -0700)]
Russian translation for sudoers from translationproject.org.
Todd C. Miller [Fri, 6 Feb 2015 22:28:04 +0000 (15:28 -0700)]
Russian translation for sudoers from translationproject.org.
Todd C. Miller [Fri, 6 Feb 2015 18:33:30 +0000 (11:33 -0700)]
Add check for getresuid() declaration, which may be missing on HP-UX.
When checking for getdomainname() prototype, look in netdb.h too.
Todd C. Miller [Fri, 6 Feb 2015 18:01:05 +0000 (11:01 -0700)]
Sanity check the TZ environment variable by special casing it in
env_check. The --with-tzdir configure option can be used to
specify the zoneinfo directory if configure doesn't find it.
Todd C. Miller [Fri, 6 Feb 2015 17:56:52 +0000 (10:56 -0700)]
Mention crash fixes.
Todd C. Miller [Fri, 6 Feb 2015 16:17:39 +0000 (09:17 -0700)]
Bail with usage() early if argc <= 0.
Todd C. Miller [Thu, 5 Feb 2015 22:01:25 +0000 (15:01 -0700)]
Remove extraneous casts of node->data (which is void *).
Todd C. Miller [Thu, 5 Feb 2015 21:57:04 +0000 (14:57 -0700)]
Add Stephane Chazelas
Todd C. Miller [Thu, 5 Feb 2015 18:17:26 +0000 (11:17 -0700)]
Fix a potential crash when getpwnam() of the running user fails
and we don't replace the negative cached entry with a faked up one.
From Stephane Chazelas
Todd C. Miller [Thu, 5 Feb 2015 18:17:25 +0000 (11:17 -0700)]
Don't assume argv[0] is set without first checking argc.
Todd C. Miller [Thu, 5 Feb 2015 18:17:24 +0000 (11:17 -0700)]
Handle sudo_get_grlist() returning NULL which can happen if
getgrouplist() fails even after allocating the appropriate amount
of memory. From Stephane Chazelas
Todd C. Miller [Thu, 5 Feb 2015 18:17:24 +0000 (11:17 -0700)]
Call setprogname("sudo") if getprogname() returns NULL or the empty
string.
Todd C. Miller [Thu, 5 Feb 2015 18:17:22 +0000 (11:17 -0700)]
Remove configure checks for strrchr() and strtoll() for which the
HAVE_* defines are no longer used.
Todd C. Miller [Thu, 5 Feb 2015 18:16:06 +0000 (11:16 -0700)]
Require POSIX regular expression support for sudoreplay.
Todd C. Miller [Thu, 5 Feb 2015 18:08:55 +0000 (11:08 -0700)]
The plugin no longer needs to call initprogname() now that it links
with the same libsudo_util as sudo.
Todd C. Miller [Thu, 5 Feb 2015 18:08:55 +0000 (11:08 -0700)]
Check whether getdomainname(), innetgr(), setresuid() and setresgid()
are declared and add prototypes in sudo_compat.h as needed.
Todd C. Miller [Wed, 4 Feb 2015 16:38:25 +0000 (09:38 -0700)]
Add /usr/local/share/examples/ directory to parentdirs so it is
explicitly added to the package.
Todd C. Miller [Mon, 2 Feb 2015 22:01:06 +0000 (15:01 -0700)]
Don't send mail about pseudo-command failure unless it is an
authentication failure.
Todd C. Miller [Wed, 4 Feb 2015 13:28:31 +0000 (06:28 -0700)]
Sync with translationproject.org
Todd C. Miller [Wed, 4 Feb 2015 13:23:57 +0000 (06:23 -0700)]
Sync with translationproject.org
Todd C. Miller [Tue, 3 Feb 2015 22:58:09 +0000 (15:58 -0700)]
Regen with yacc skeleton that the clang analyzer doesn't complain about.
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