]> granicus.if.org Git - sudo/log
sudo
9 years agoUse stdint.h to get SIZE_MAX as inttypes.h on some pre-C99 HP-UX
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.

9 years agoSIZE_MAX may be in limits.h on pre-C99 compilers.
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.

9 years agoAdd missing prototypes for usrinfo() and setauthdb() for AIX.
Todd C. Miller [Tue, 3 Feb 2015 14:33:25 +0000 (07:33 -0700)]
Add missing prototypes for usrinfo() and setauthdb() for AIX.

9 years agoSolaris uses sysinfo(SI_SRPC_DOMAIN) instead of getdomainname() to
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.

9 years agoRemove AC_PROG_GCC_TRADITIONAL and add AC_PROG_CC_STDC since we
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.

9 years agoActually use the check for prior initialization in sudo_getdomainname().
Todd C. Miller [Mon, 2 Feb 2015 22:38:03 +0000 (15:38 -0700)]
Actually use the check for prior initialization in sudo_getdomainname().

9 years agoWe need to add OSDEFS to CFLAGS to expose LLONG_MAX et al on glibc
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.

9 years agoFix check for SIZE_MAX, which should be in stdint.h not limits.h.
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.

9 years agoNeed to include inttypes.h for SIZE_MAX
Todd C. Miller [Mon, 2 Feb 2015 21:20:24 +0000 (14:20 -0700)]
Need to include inttypes.h for SIZE_MAX

9 years agoregen
Todd C. Miller [Mon, 2 Feb 2015 20:53:44 +0000 (13:53 -0700)]
regen

9 years agoGo back to a 2 args debug_decl and just use the "default" instance,
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".

9 years agoUpdate copyright year.
Todd C. Miller [Sun, 1 Feb 2015 02:02:40 +0000 (19:02 -0700)]
Update copyright year.

9 years agoWhen querying LDAP netgroups, use the NIS domain if it is sent but
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.

9 years agoAvoid setting the tty to non-blocking mode so "sudoreplay | cat"
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.

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.

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

9 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.

9 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

9 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.

9 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.

9 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.

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

9 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.

9 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.

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

9 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.

9 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.

9 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

9 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.

9 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.

9 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.

9 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.