]>
granicus.if.org Git - sudo/log
Todd C. Miller [Fri, 20 Feb 2015 03:28:02 +0000 (20:28 -0700)]
Avoid using HOST_NAME_MAX directly and use sysconf(_SC_HOST_NAME_MAX)
instead.
Todd C. Miller [Thu, 19 Feb 2015 21:17:57 +0000 (14:17 -0700)]
Historically, crypt() returned the empty string on error, which
ensured that crypt("", "") would return "", which supported matcing
empty encrypted passwords with no additional code. Some modern
versions of crypt() (such as glibc) return NULL on error so we need
an explicit test to match an empty plaintext password and an empty
encrypted password.
Todd C. Miller [Thu, 19 Feb 2015 17:13:25 +0000 (10:13 -0700)]
Sort tags lexically in the sudoers manual
Todd C. Miller [Thu, 19 Feb 2015 17:02:20 +0000 (10:02 -0700)]
Add support for MAIL and NOMAIL command tags to toggle mail sending
behavior on a per-command (or Cmnd_Alias) basis.
Todd C. Miller [Mon, 16 Feb 2015 03:30:11 +0000 (20:30 -0700)]
Add mail_all_cmnds to always mail when a user runs a command (or
tries to) including sudoedit. The mail_always flag goes back to
its old semantic of always mailing when sudo is run.
Todd C. Miller [Thu, 19 Feb 2015 16:59:25 +0000 (09:59 -0700)]
All modern systems should have LINE_MAX.
Todd C. Miller [Thu, 19 Feb 2015 16:59:25 +0000 (09:59 -0700)]
Almost no systems actually define OPEN_MAX since it is dynamic on
modern OSes. If sysconf(_SC_OPEN_MAX) ever fails, fall back on
_POSIX_OPEN_MAX instead. We can assume modern systems have sysconf().
Also remove checks for strrchr() and strtoll() for which the HAVE_*
defines are no longer used.
Todd C. Miller [Thu, 19 Feb 2015 16:47:57 +0000 (09:47 -0700)]
Don't need to pass exampledir to polypkg now that it is just under
docdir.
Todd C. Miller [Wed, 18 Feb 2015 23:17:24 +0000 (16:17 -0700)]
Fix packaging of the example dir.
Todd C. Miller [Wed, 18 Feb 2015 13:24:31 +0000 (06:24 -0700)]
Fix mkstemps() extension handling. Sudoedit will now preserve the
extension properly when the system libc lacks mkstemps().
Todd C. Miller [Tue, 17 Feb 2015 13:42:10 +0000 (06:42 -0700)]
Use weak symbols for sudo_warn_gettext() and sudo_warn_strerror()
so distros using "-Wl,--no-undefined" in LDFLAGS don't run into
problems.
Todd C. Miller [Tue, 17 Feb 2015 13:21:06 +0000 (06:21 -0700)]
Include unistd.h in siglist.c and signame.c to get gid_t which
is used by sudo_compat.h. Bug #686
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.