]> granicus.if.org Git - sudo/log
sudo
9 years agoregen
Todd C. Miller [Fri, 30 Jan 2015 19:57:27 +0000 (12:57 -0700)]
regen

9 years agoAvoid a cppcheck warning about undefined behavior (using the address
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.

9 years agoAdd Steven Soulen
Todd C. Miller [Fri, 30 Jan 2015 16:24:46 +0000 (09:24 -0700)]
Add Steven Soulen

9 years agoFix handling of partial writes from writev() which can occur with
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.

9 years agoAdd support for querying netgroups directly via LDAP since there
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.

10 years agoSort ldap.conf options.
Todd C. Miller [Tue, 27 Jan 2015 16:29:02 +0000 (09:29 -0700)]
Sort ldap.conf options.

10 years agoAdd macros to ease the checking of strlcpy, strlcat and
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.

10 years agoRename VALIDATE_OK -> VALIDATE_SUCCESS
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

10 years agoRemove now-unused VALIDATE_ERROR define.
Todd C. Miller [Wed, 21 Jan 2015 17:36:55 +0000 (10:36 -0700)]
Remove now-unused VALIDATE_ERROR define.

10 years agoshould_mail() now returns bool.
Todd C. Miller [Wed, 21 Jan 2015 17:33:56 +0000 (10:33 -0700)]
should_mail() now returns bool.

10 years agoIf sudo_debug_register() fails return SUDO_DEBUG_INSTANCE_INITIALIZER,
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.

10 years agoFix typo.
Todd C. Miller [Wed, 21 Jan 2015 15:51:41 +0000 (08:51 -0700)]
Fix typo.

10 years agoUse "mandoc -Tascii" to generate .cat pages to avoid locale-specific
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.

10 years agoUse AC_PATH_PROG to find programs instead of checking the path manually.
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.

10 years agoSync with OpenBSD version
Todd C. Miller [Fri, 16 Jan 2015 13:48:08 +0000 (06:48 -0700)]
Sync with OpenBSD version

10 years agoUse AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE where
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.

10 years agoAvoid inadvertantly defining things like PATH_MAX simply because
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.

10 years agoUpdate to libtool 2.4.4 + HP-UX patches
Todd C. Miller [Thu, 15 Jan 2015 00:00:16 +0000 (17:00 -0700)]
Update to libtool 2.4.4 + HP-UX patches

10 years agoDocument why we need sys/param.h.
Todd C. Miller [Wed, 14 Jan 2015 18:01:41 +0000 (11:01 -0700)]
Document why we need sys/param.h.

10 years agoDon't need sys/param.h.
Todd C. Miller [Wed, 14 Jan 2015 18:00:01 +0000 (11:00 -0700)]
Don't need sys/param.h.

10 years agoDon't appear to need sys/param.h for pstat_getproc() on HP-UX even
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.

10 years agoShould not need sys/param.h here.
Todd C. Miller [Wed, 14 Jan 2015 17:55:42 +0000 (10:55 -0700)]
Should not need sys/param.h here.

10 years agoUse standard CIDR -> netmask conversion and disallow 0-bit CIDRs.
Todd C. Miller [Wed, 31 Dec 2014 22:47:33 +0000 (15:47 -0700)]
Use standard CIDR -> netmask conversion and disallow 0-bit CIDRs.

10 years agoUpdate link to gq LDAP editor, now on sourceforge.
Todd C. Miller [Wed, 24 Dec 2014 15:05:22 +0000 (08:05 -0700)]
Update link to gq LDAP editor, now on sourceforge.

10 years agoAdd support for GLOB_LIMIT from OpenBSD (not currently used) and
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().

10 years agoQuiet compiler sign compare warning.
Todd C. Miller [Tue, 16 Dec 2014 17:46:25 +0000 (10:46 -0700)]
Quiet compiler sign compare warning.

10 years agofnmatch fix
Todd C. Miller [Wed, 10 Dec 2014 21:06:34 +0000 (14:06 -0700)]
fnmatch fix

10 years agoRemove artificial limit on length of pattern and string. It is
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).

10 years agoRemove the extra /sudo in sudo.ws urls
Todd C. Miller [Fri, 5 Dec 2014 00:00:38 +0000 (17:00 -0700)]
Remove the extra /sudo in sudo.ws urls

10 years agoReference bugzilla.sudo.ws
Todd C. Miller [Thu, 27 Nov 2014 16:51:06 +0000 (09:51 -0700)]
Reference bugzilla.sudo.ws

10 years agosync
Todd C. Miller [Thu, 20 Nov 2014 20:34:17 +0000 (13:34 -0700)]
sync

10 years agoRequire that a digest be specified with a real command, not an alias
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.

10 years agosync
Todd C. Miller [Wed, 19 Nov 2014 22:20:18 +0000 (15:20 -0700)]
sync

10 years agoFrench translation for sudoers from translationproject.org.
Todd C. Miller [Wed, 19 Nov 2014 22:20:11 +0000 (15:20 -0700)]
French translation for sudoers from translationproject.org.

10 years agoDefer registration of the SIGCHLD handler until just before we exec
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

10 years agoMention sssd support in the sudoers.ldap manual and cross-reference
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).

10 years agoReorder an entry.
Todd C. Miller [Sun, 16 Nov 2014 14:30:55 +0000 (07:30 -0700)]
Reorder an entry.

10 years agoPrevent cppcheck from getting confused by our compat definition of
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.

10 years agoFix potential NULL pointer deref found by cppcheck.
Todd C. Miller [Fri, 14 Nov 2014 23:31:56 +0000 (16:31 -0700)]
Fix potential NULL pointer deref found by cppcheck.

10 years agoQuiet a cppcheck false positive.
Todd C. Miller [Fri, 14 Nov 2014 23:31:30 +0000 (16:31 -0700)]
Quiet a cppcheck false positive.

10 years agoIf there are multiple outputs, ap will be re-used so make a copy
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.

10 years agoFix typo in hook return value check.
Todd C. Miller [Fri, 14 Nov 2014 21:56:29 +0000 (14:56 -0700)]
Fix typo in hook return value check.

10 years agoMention visudo use of sudoers plugin args to set default sudoers
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.

10 years agoMention fix for bug #678
Todd C. Miller [Fri, 14 Nov 2014 20:11:11 +0000 (13:11 -0700)]
Mention fix for bug #678

10 years agoSync with translationproject.org
Todd C. Miller [Mon, 10 Nov 2014 19:37:58 +0000 (12:37 -0700)]
Sync with translationproject.org

10 years agoIn set_fqdn() we neeed to set user_runhost/user_srunhost at the
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

10 years agoDo not call sudo_warnx() on invalid value from the env hook functions
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.

10 years agoNo need to keep specifying ".Nm foo" since the Nm macro remembers
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.

10 years agoAdd sudo.conf to SEE ALSO and rename section on sudo.conf
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

10 years agoMention sudo.conf use for debugging
Todd C. Miller [Tue, 11 Nov 2014 21:15:47 +0000 (14:15 -0700)]
Mention sudo.conf use for debugging

10 years agoregen
Todd C. Miller [Tue, 11 Nov 2014 20:56:01 +0000 (13:56 -0700)]
regen

10 years agoDocument sudo.conf usage now that visudo will parse the sudoers arguments.
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.

10 years agoUse sudoers.so args from sudo.conf to set sudoers_file, sudoers_uid,
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.

10 years agoUse sudoers_file, sudoers_uid, sudoers_gid, and sudoers_mode
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.

10 years agoUse SSP_LDFLAGS when creating shared objects.
Todd C. Miller [Mon, 10 Nov 2014 21:58:46 +0000 (14:58 -0700)]
Use SSP_LDFLAGS when creating shared objects.

10 years agoWe only build .lo (not .o) files for libsudo_util
Todd C. Miller [Mon, 10 Nov 2014 21:58:45 +0000 (14:58 -0700)]
We only build .lo (not .o) files for libsudo_util

10 years agosync
Todd C. Miller [Thu, 6 Nov 2014 16:25:26 +0000 (09:25 -0700)]
sync

10 years agoMake sure that SIGCHLD is not treated as a user-generated signal
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

10 years agoUpdate to libtool 2.4.3 + HP-UX patches
Todd C. Miller [Thu, 30 Oct 2014 13:09:02 +0000 (07:09 -0600)]
Update to libtool 2.4.3 + HP-UX patches

10 years agoUse arc4random() for mkstemp/mkdtemp if available. If not, try to
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.

10 years agoIf a system lacks mkdtemp() or mkstemps(), use our own mkdtemp()
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.

10 years agoUse a static buffer for sudo_debug_execve2() if possible.
Todd C. Miller [Fri, 31 Oct 2014 12:57:17 +0000 (06:57 -0600)]
Use a static buffer for sudo_debug_execve2() if possible.

10 years agoMark the putenv(), setenv() and unsetenv() symbols as global, not
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().

10 years agoFix install-nls target from builddir.
Todd C. Miller [Tue, 28 Oct 2014 20:45:39 +0000 (14:45 -0600)]
Fix install-nls target from builddir.

10 years agoFix dependency on sudo.pp, it needs to relative to srcdir.
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.

10 years agoAdapt to new debug subsystem registration.
Todd C. Miller [Tue, 28 Oct 2014 13:36:08 +0000 (07:36 -0600)]
Adapt to new debug subsystem registration.

10 years agoAdd missing zlib.exp file and common LT_LDFLAGS Makefile.in.
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.

10 years agoFix path settings broken in rev 9731.
Todd C. Miller [Mon, 27 Oct 2014 22:31:33 +0000 (16:31 -0600)]
Fix path settings broken in rev 9731.

10 years agoAdjust regress test now that boolean settings display an error for
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.

10 years agoAdd sudoers_debug_deregister() and use it instead of calling
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.

10 years agoUse AC_PROG_AWK
Todd C. Miller [Mon, 27 Oct 2014 20:54:13 +0000 (14:54 -0600)]
Use AC_PROG_AWK

10 years agoMention shared zlib.
Todd C. Miller [Mon, 27 Oct 2014 20:49:28 +0000 (14:49 -0600)]
Mention shared zlib.

10 years agoAdd lib/zlib/zlib.exp
Todd C. Miller [Mon, 27 Oct 2014 20:47:48 +0000 (14:47 -0600)]
Add lib/zlib/zlib.exp

10 years agoAdd support for installing a shared zlib
Todd C. Miller [Mon, 27 Oct 2014 20:39:07 +0000 (14:39 -0600)]
Add support for installing a shared zlib

10 years agofix comment typo
Todd C. Miller [Mon, 27 Oct 2014 20:21:27 +0000 (14:21 -0600)]
fix comment typo

10 years agoNewer zlib uses HAVE_HIDDEN to turn on symbol hiding so we don't
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.

10 years agoregen
Todd C. Miller [Mon, 27 Oct 2014 18:35:49 +0000 (12:35 -0600)]
regen

10 years agoVersion the symbols for sudo_debug.c now that the API is stable.
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.

10 years agoGo back to parsing sudo.conf in place for settings and paths and
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.

10 years agoAdd a flag argument to sudo_conf_read() so we can decide which
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.

10 years agoInclude stdio.h after zlib.h, not before. We need the large file defines
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.

10 years agoUpdate zlib to version 1.2.8
Todd C. Miller [Fri, 24 Oct 2014 21:28:03 +0000 (15:28 -0600)]
Update zlib to version 1.2.8

10 years agoDon't add -Wold-style-definition to CFLAGS as it causes problems
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.

10 years agoFree up plugin info structs after converting to plugin containers.
Todd C. Miller [Fri, 24 Oct 2014 21:09:35 +0000 (15:09 -0600)]
Free up plugin info structs after converting to plugin containers.

10 years agoMove sample.* files to a sudo examples dir
Todd C. Miller [Fri, 24 Oct 2014 20:25:12 +0000 (14:25 -0600)]
Move sample.* files to a sudo examples dir

10 years agoFix a packaging problem with the sudoedit man page link on Debian.
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.

10 years agoInitialize the debug subsystem in sudoers early. Currently this
Todd C. Miller [Fri, 24 Oct 2014 18:50:12 +0000 (12:50 -0600)]
Initialize the debug subsystem in sudoers early.  Currently this
means iterating over the settings list twice.

10 years agoNo need to convert sudoedit -> sudo in sudo_debug_get_instance()
Todd C. Miller [Fri, 24 Oct 2014 17:28:39 +0000 (11:28 -0600)]
No need to convert sudoedit -> sudo in sudo_debug_get_instance()
as we store the actual program name and only do the sudoedit ->
sudo conversion when reading the sudo.conf file.  Fixes debugging
when invoked as sudoedit.

10 years agoIn the plugin registers with the debug framework at open time, the
Todd C. Miller [Fri, 24 Oct 2014 17:17:48 +0000 (11:17 -0600)]
In the plugin registers with the debug framework at open time, the
sudo front-end will now set the default debug instance appropriately
before calling into the plugin.  This means the plugin no longer needs
to do the sudo_debug_set_default_instance() dance.

10 years agoRemove duplicate -U__NBBY in CPPCHECK_OPTS
Todd C. Miller [Fri, 24 Oct 2014 15:40:07 +0000 (09:40 -0600)]
Remove duplicate -U__NBBY in CPPCHECK_OPTS

10 years agoOlder shells don't support unset.
Todd C. Miller [Thu, 23 Oct 2014 22:23:37 +0000 (16:23 -0600)]
Older shells don't support unset.

10 years agoFix inet_ntop() replacement on older systems without it.
Todd C. Miller [Thu, 23 Oct 2014 21:44:03 +0000 (15:44 -0600)]
Fix inet_ntop() replacement on older systems without it.
We only expose the prototype for net_ifs.c due to the
use of socklen_t.

10 years agoDynamically allocate debug_fds bitmap and realloc as needed.
Todd C. Miller [Thu, 23 Oct 2014 20:37:29 +0000 (14:37 -0600)]
Dynamically allocate debug_fds bitmap and realloc as needed.

10 years agoUse generic bitmap macros instead of select-style fd_set.
Todd C. Miller [Thu, 23 Oct 2014 20:37:27 +0000 (14:37 -0600)]
Use generic bitmap macros instead of select-style fd_set.

10 years agoReplace sudo_debug_num_instances with sudo_debug_max_instance
Todd C. Miller [Thu, 23 Oct 2014 19:43:17 +0000 (13:43 -0600)]
Replace sudo_debug_num_instances with sudo_debug_max_instance

10 years agoDon't call into the debug subsystem after we've deregistered the
Todd C. Miller [Thu, 23 Oct 2014 19:42:50 +0000 (13:42 -0600)]
Don't call into the debug subsystem after we've deregistered the
plugin's instance.

10 years agoOnly fill in subsystem_ids[] for the instance if the caller passed
Todd C. Miller [Thu, 23 Oct 2014 19:19:51 +0000 (13:19 -0600)]
Only fill in subsystem_ids[] for the instance if the caller passed
in an array for it.  If the caller only wants the default subsystems
we don't actually need ids[].

10 years agoLink with -ldl if needed when built with --disable-shared-libutil/
Todd C. Miller [Thu, 23 Oct 2014 19:08:21 +0000 (13:08 -0600)]
Link with -ldl if needed when built with --disable-shared-libutil/

10 years agoFix includes order.
Todd C. Miller [Thu, 23 Oct 2014 16:16:13 +0000 (10:16 -0600)]
Fix includes order.

10 years agoRemove extra newline mistakenly introduced in rev 9682.
Todd C. Miller [Thu, 23 Oct 2014 16:15:38 +0000 (10:15 -0600)]
Remove extra newline mistakenly introduced in rev 9682.