]> granicus.if.org Git - sudo/log
sudo
8 years agoIt is safe to pass ldap_msgfree() a NULL pointer.
Todd C. Miller [Mon, 11 Jan 2016 23:24:22 +0000 (16:24 -0700)]
It is safe to pass ldap_msgfree() a NULL pointer.

8 years agoOn overflow, warn before freeing anything.
Todd C. Miller [Mon, 11 Jan 2016 23:23:19 +0000 (16:23 -0700)]
On overflow, warn before freeing anything.

8 years agoUse user_runhost and user_srunhost instead of user_host and user_shost.
Todd C. Miller [Mon, 11 Jan 2016 22:54:02 +0000 (15:54 -0700)]
Use user_runhost and user_srunhost instead of user_host and user_shost.
Fixes "sudo -l -h other_host" for LDAP and sssd.

8 years agoSilence warning in digest_matches() on systems with no fexecve(2).
Todd C. Miller [Mon, 11 Jan 2016 23:55:52 +0000 (16:55 -0700)]
Silence warning in digest_matches() on systems with no fexecve(2).

8 years agoFix free() of invalid pointer introduced in the commit that stripped
Todd C. Miller [Mon, 11 Jan 2016 23:52:52 +0000 (16:52 -0700)]
Fix free() of invalid pointer introduced in the commit that stripped
whitespace between a '!' and the name in a sudoOption.

8 years agoFix free() of invalid pointer introduced in the commit that stripped
Todd C. Miller [Mon, 11 Jan 2016 23:44:05 +0000 (16:44 -0700)]
Fix free() of invalid pointer introduced in the commit that stripped
whitespace between a '!' and the name in a sudoOption.

8 years agoAdd missing dfd argument to the version of sudo_edit_openat_nofollow()
Todd C. Miller [Mon, 11 Jan 2016 23:36:40 +0000 (16:36 -0700)]
Add missing dfd argument to the version of sudo_edit_openat_nofollow()
for systems without O_NOFOLLOW.

8 years agoUpdate description of sudoedit_checkdir. Reported by Sander Bos.
Todd C. Miller [Mon, 11 Jan 2016 22:09:08 +0000 (15:09 -0700)]
Update description of sudoedit_checkdir.  Reported by Sander Bos.

8 years agoNo need to check whether the fd we opened is really a directory in
Todd C. Miller [Mon, 11 Jan 2016 18:15:42 +0000 (11:15 -0700)]
No need to check whether the fd we opened is really a directory in
sudo_edit_open_nonwritable() since if not, the openat() will fail
with ENOTDIR anyway.

8 years agoRewritten sudoedit_checkdir support that checks all the dirs in the
Todd C. Miller [Mon, 11 Jan 2016 01:31:29 +0000 (18:31 -0700)]
Rewritten sudoedit_checkdir support that checks all the dirs in the
path and refuses to follow symlinks in writable directories.
This is a better fix for CVE-2015-5602.
Adapted from a diff by Ben Hutchings.  Bug #707

8 years agosync with translationproject.org
Todd C. Miller [Mon, 4 Jan 2016 17:47:11 +0000 (10:47 -0700)]
sync with translationproject.org

8 years agoAdd support for using fexecve() if supported on commands that are
Todd C. Miller [Mon, 4 Jan 2016 17:35:18 +0000 (10:35 -0700)]
Add support for using fexecve() if supported on commands that are
checksummed.

9 years agoCall openat() with the basename not the full path. From Ben Hutchings.
Todd C. Miller [Tue, 29 Dec 2015 20:38:14 +0000 (13:38 -0700)]
Call openat() with the basename not the full path.  From Ben Hutchings.

9 years agoFix compilation with --disable-shared
Todd C. Miller [Thu, 24 Dec 2015 15:26:26 +0000 (08:26 -0700)]
Fix compilation with --disable-shared

9 years agoCheck for existing dso in LD_PRELOAD and only add it if it is not
Todd C. Miller [Sun, 20 Dec 2015 21:08:47 +0000 (14:08 -0700)]
Check for existing dso in LD_PRELOAD and only add it if it is not
already present.

9 years agoClarify when SIGINT and SIGQUIT are relayed by sudo to the command.
Todd C. Miller [Fri, 18 Dec 2015 21:41:11 +0000 (14:41 -0700)]
Clarify when SIGINT and SIGQUIT are relayed by sudo to the command.

9 years agoActually use the plugin_dir Path setting in sudo.conf.
Todd C. Miller [Fri, 18 Dec 2015 21:05:02 +0000 (14:05 -0700)]
Actually use the plugin_dir Path setting in sudo.conf.

9 years agoThe Path setting for the plugin directory is "plugin_dir" not "plugin".
Todd C. Miller [Fri, 18 Dec 2015 21:03:59 +0000 (14:03 -0700)]
The Path setting for the plugin directory is "plugin_dir" not "plugin".

9 years agoAllow sudo.conf Path settings to disable path names (by setting the
Todd C. Miller [Fri, 18 Dec 2015 19:31:28 +0000 (12:31 -0700)]
Allow sudo.conf Path settings to disable path names (by setting the
value of NULL).

9 years agoChange noexec flag in selinux_execve() from int to bool.
Todd C. Miller [Wed, 16 Dec 2015 22:16:48 +0000 (15:16 -0700)]
Change noexec flag in selinux_execve() from int to bool.

9 years agoRefactor code to set LD_PRELOAD (or the equivalent) in the environment
Todd C. Miller [Wed, 16 Dec 2015 22:08:01 +0000 (15:08 -0700)]
Refactor code to set LD_PRELOAD (or the equivalent) in the environment
into a preload_dso() function.  Also avoid allocating a new copy
of the environment array if the size of the array does not change.

9 years agoAdd missing square brackets in configure option descriptions.
Todd C. Miller [Wed, 16 Dec 2015 21:57:37 +0000 (14:57 -0700)]
Add missing square brackets in configure option descriptions.

9 years agoDocument the names of the I/O log files and mention buffering.
Todd C. Miller [Fri, 11 Dec 2015 17:04:17 +0000 (10:04 -0700)]
Document the names of the I/O log files and mention buffering.
Document that I/O logs are in gzip format by default.

9 years agoAdd BASHOPTS to initial_badenv_table[]; from Stephane Chazelas
Todd C. Miller [Fri, 11 Dec 2015 00:14:56 +0000 (17:14 -0700)]
Add BASHOPTS to initial_badenv_table[]; from Stephane Chazelas

9 years agoWhen parsing sudoOptions that include an operator (!, +, +=, -=)
Todd C. Miller [Wed, 9 Dec 2015 21:57:33 +0000 (14:57 -0700)]
When parsing sudoOptions that include an operator (!, +, +=, -=)
strip out any whitespace on either side of the operator.

9 years agoStrip whitespace around '!', '=', '+=' and '-=' in Defaults entries.
Todd C. Miller [Tue, 8 Dec 2015 22:06:00 +0000 (15:06 -0700)]
Strip whitespace around '!', '=', '+=' and '-=' in Defaults entries.

9 years agoDocument the race condition between the digest check and command
Todd C. Miller [Sun, 6 Dec 2015 22:34:53 +0000 (15:34 -0700)]
Document the race condition between the digest check and command
execution.

9 years agoWhen checking the query results, don't set user_matches in the
Todd C. Miller [Wed, 2 Dec 2015 21:06:37 +0000 (14:06 -0700)]
When checking the query results, don't set user_matches in the
netgroup pass unless sudo_ldap_check_non_unix_group() returns true.
This was preventing the mail_no_user sudoOption from being effective.

9 years agoIn list mode, we always want to clear FLAG_NO_USER and FLAG_NO_HOST
Todd C. Miller [Wed, 2 Dec 2015 17:43:41 +0000 (10:43 -0700)]
In list mode, we always want to clear FLAG_NO_USER and FLAG_NO_HOST
regardless of whether or not there was an actual match.  Otherwise,
warning mail may be sent which is not what we want in list mode.
This is consistent with what the sudoers file backend does.

9 years agoUse size_t for length parameters in the fill functions used by the
Todd C. Miller [Sun, 22 Nov 2015 16:22:38 +0000 (09:22 -0700)]
Use size_t for length parameters in the fill functions used by the
lexer.

9 years agoUse yy_size_t for digest_len since newer flex uses yy_size_t for
Todd C. Miller [Sun, 22 Nov 2015 16:19:12 +0000 (09:19 -0700)]
Use yy_size_t for digest_len since newer flex uses yy_size_t for
yyleng.  Old flex uses int for yyleng so we need to use a cast to
avoid a sign compare warning.

9 years agoUse https in sudo.ws urls
Todd C. Miller [Fri, 20 Nov 2015 17:51:11 +0000 (10:51 -0700)]
Use https in sudo.ws urls

9 years agoUse https in urls.
Todd C. Miller [Fri, 20 Nov 2015 17:36:53 +0000 (10:36 -0700)]
Use https in urls.

9 years agosudo 1.8.16
Todd C. Miller [Fri, 20 Nov 2015 17:33:08 +0000 (10:33 -0700)]
sudo 1.8.16

9 years agoWhen preserving variables from the invoking user's environment, if
Todd C. Miller [Fri, 20 Nov 2015 16:55:18 +0000 (09:55 -0700)]
When preserving variables from the invoking user's environment, if
there are duplicates only keep the first instance.

9 years agoAdd debug_return_ssize_t
Todd C. Miller [Sun, 1 Nov 2015 22:13:28 +0000 (15:13 -0700)]
Add debug_return_ssize_t

9 years agoAvoid compilation error on Solaris 10 with Stun Studio 12.
Todd C. Miller [Sun, 1 Nov 2015 22:08:50 +0000 (15:08 -0700)]
Avoid compilation error on Solaris 10 with Stun Studio 12.
Bug #727

9 years agosync with translationproject.org
Todd C. Miller [Sat, 31 Oct 2015 23:33:51 +0000 (17:33 -0600)]
sync with translationproject.org

9 years agoMention ssp configure fix.
Todd C. Miller [Sat, 31 Oct 2015 15:10:58 +0000 (09:10 -0600)]
Mention ssp configure fix.

9 years agosync with translationproject.org
Todd C. Miller [Fri, 30 Oct 2015 16:20:47 +0000 (10:20 -0600)]
sync with translationproject.org

9 years agoDon't use CPPFLAGS for the -fstack-protector check. Otherwise on
Todd C. Miller [Fri, 30 Oct 2015 16:11:55 +0000 (10:11 -0600)]
Don't use CPPFLAGS for the -fstack-protector check.  Otherwise on
systems with _FORTIFY_SOURCE support we'll get an error due to the
lack of optimization flags.  Bug #725

9 years agoWhen checking for stack protector support we need to actually link
Todd C. Miller [Fri, 30 Oct 2015 14:49:22 +0000 (08:49 -0600)]
When checking for stack protector support we need to actually link
the test program.

9 years agoPreserve LDFLAGS when checking for stack protector as they may include
Todd C. Miller [Thu, 29 Oct 2015 20:06:21 +0000 (14:06 -0600)]
Preserve LDFLAGS when checking for stack protector as they may include
rpath settings to allow the stack protector lib to be found.  Avoid
using existing CFLAGS since we don't want the compiler to optimize
away the stack variable.

9 years agoBetter configure test for -fstack-protector. Some gcc installations
Todd C. Miller [Thu, 29 Oct 2015 16:51:09 +0000 (10:51 -0600)]
Better configure test for -fstack-protector.  Some gcc installations
may be missing the ssp library even though the compiler supports it.

9 years agoSet errno to EISDIR instead of ENOTDIR if directory is writable
Todd C. Miller [Sun, 25 Oct 2015 20:28:38 +0000 (14:28 -0600)]
Set errno to EISDIR instead of ENOTDIR if directory is writable
since ENOTDIR can be a legitimate errno.  This avoids a bogus
"directory is writable" error in that case.

9 years agoFix the check for whether to include 32-bit arch in Mac OS X packages.
Todd C. Miller [Sun, 25 Oct 2015 15:10:15 +0000 (09:10 -0600)]
Fix the check for whether to include 32-bit arch in Mac OS X packages.

9 years agoregen
Todd C. Miller [Sat, 24 Oct 2015 12:27:55 +0000 (06:27 -0600)]
regen

9 years agoWhen creating a new file, sudoedit will now check that the file's
Todd C. Miller [Sat, 24 Oct 2015 12:20:20 +0000 (06:20 -0600)]
When creating a new file, sudoedit will now check that the file's
parent directory exists before running the editor.

9 years agoAdd always_query_group_plugin
Todd C. Miller [Sat, 24 Oct 2015 11:43:07 +0000 (05:43 -0600)]
Add always_query_group_plugin

9 years agoAdd ABOUT-NLS from GNU gettext.
Todd C. Miller [Fri, 23 Oct 2015 20:13:54 +0000 (14:13 -0600)]
Add ABOUT-NLS from GNU gettext.

9 years agoAdd directory writability checks for sudoedit.
Todd C. Miller [Fri, 23 Oct 2015 20:04:35 +0000 (14:04 -0600)]
Add directory writability checks for sudoedit.

9 years agoLatest.
Todd C. Miller [Tue, 6 Oct 2015 21:23:22 +0000 (15:23 -0600)]
Latest.

9 years agoIgnore the SUDO_CONV_PROMPT_ECHO_OK flag when echo is enabled.
Todd C. Miller [Tue, 6 Oct 2015 21:21:41 +0000 (15:21 -0600)]
Ignore the SUDO_CONV_PROMPT_ECHO_OK flag when echo is enabled.
This was preventing a match of SUDO_CONV_PROMPT_ECHO_ON which
resulted in a masked password instead of an echoed one.

9 years agoRepair challenge/response prompting for BSD authentication which
Todd C. Miller [Tue, 6 Oct 2015 21:00:47 +0000 (15:00 -0600)]
Repair challenge/response prompting for BSD authentication which
got broken while it was converted to use the conversation function.

9 years agoUse the auth_getpass (and the plugin conversation fuction) for Tru64
Todd C. Miller [Tue, 6 Oct 2015 16:25:53 +0000 (10:25 -0600)]
Use the auth_getpass (and the plugin conversation fuction) for Tru64
SIA.  This prevents sudo from sleeping while holding the tty ticket
lock.

9 years agoFor env_reset, SHELL should be set based on the target user, not
Todd C. Miller [Tue, 6 Oct 2015 16:25:43 +0000 (10:25 -0600)]
For env_reset, SHELL should be set based on the target user, not
the invoking user unless preserved via env_keep.

9 years agosync with translationproject.org
Todd C. Miller [Tue, 6 Oct 2015 15:33:27 +0000 (09:33 -0600)]
sync with translationproject.org

9 years agoHungarian and Slovak translations
Todd C. Miller [Mon, 5 Oct 2015 12:06:52 +0000 (06:06 -0600)]
Hungarian and Slovak translations

9 years agoAdd new Slovak and Hungarian translations from translationproject.org
Todd C. Miller [Mon, 5 Oct 2015 12:03:42 +0000 (06:03 -0600)]
Add new Slovak and Hungarian translations from translationproject.org

9 years agoRemove S_ISREG check from sudo_edit_open(), it is already done in
Todd C. Miller [Sat, 3 Oct 2015 02:35:55 +0000 (20:35 -0600)]
Remove S_ISREG check from sudo_edit_open(), it is already done in
the caller.

9 years agoOpen sudoedit files with O_NONBLOCK and fail if they are not regular
Todd C. Miller [Fri, 2 Oct 2015 20:45:09 +0000 (14:45 -0600)]
Open sudoedit files with O_NONBLOCK and fail if they are not regular
files.

9 years agoIt is possible for WIFSTOPPED to be true even if waitpid() is not
Todd C. Miller [Fri, 2 Oct 2015 17:24:01 +0000 (11:24 -0600)]
It is possible for WIFSTOPPED to be true even if waitpid() is not
given WUNTRACED if the child is ptraced.  Don't exit the waitpid()
loop if WIFSTOPPED is true, just in case.

9 years agorebuild .mo files
Todd C. Miller [Wed, 30 Sep 2015 20:04:39 +0000 (14:04 -0600)]
rebuild .mo files

9 years agosync with translationproject.org
Todd C. Miller [Wed, 30 Sep 2015 20:04:17 +0000 (14:04 -0600)]
sync with translationproject.org

9 years agoThere's no point in trying to interpose protected versions of the
Todd C. Miller [Tue, 29 Sep 2015 03:20:37 +0000 (21:20 -0600)]
There's no point in trying to interpose protected versions of the
exec family of functions.  Many modern C libraries use hidden symbols
for the functions and syscalls defined in libc such that they cannot
be overridden inside libc itself.  We have to just wrap all the exec
variants plus system and popen.

9 years agoList all the functions wrapped by sudo_noexec.so.
Todd C. Miller [Mon, 28 Sep 2015 22:48:46 +0000 (16:48 -0600)]
List all the functions wrapped by sudo_noexec.so.

9 years agoThe section is now called "EXEC and NOEXEC" and it is above, not
Todd C. Miller [Mon, 28 Sep 2015 22:48:20 +0000 (16:48 -0600)]
The section is now called "EXEC and NOEXEC" and it is above, not
below.

9 years agoAlso wrap popen(3).
Todd C. Miller [Mon, 28 Sep 2015 21:34:16 +0000 (15:34 -0600)]
Also wrap popen(3).

9 years agoAlso interpose system(3). On glibc systems you cannot interpose
Todd C. Miller [Mon, 28 Sep 2015 21:10:00 +0000 (15:10 -0600)]
Also interpose system(3).  On glibc systems you cannot interpose
the syscalls used internally by libc.

9 years agoSet active debug instance to sudo_debug_instance() during the
Todd C. Miller [Mon, 28 Sep 2015 18:28:18 +0000 (12:28 -0600)]
Set active debug instance to sudo_debug_instance() during the
conversation function.

9 years agoLOGNAME and USERNAME are set the same way as USER
Todd C. Miller [Sun, 27 Sep 2015 21:40:05 +0000 (15:40 -0600)]
LOGNAME and USERNAME are set the same way as USER

9 years agoDocument behavior when the command dies from a signal in EXIT STATUS.
Todd C. Miller [Sun, 27 Sep 2015 14:59:46 +0000 (08:59 -0600)]
Document behavior when the command dies from a signal in EXIT STATUS.

9 years agoBug #722
Todd C. Miller [Sat, 26 Sep 2015 17:02:24 +0000 (11:02 -0600)]
Bug #722

9 years agoWhen the command sudo is running is killed by a signal, sudo will
Todd C. Miller [Sat, 26 Sep 2015 16:53:16 +0000 (10:53 -0600)]
When the command sudo is running is killed by a signal, sudo will
now send itself the same signal with the default signal handler
instead of exiting.  The bash shell appears to ignore some signals,
e.g.  SIGINT, unless the command is killed by that signal.  This
makes the behavior of commands run under sudo the same as without
sudo when bash is the shell.  Bug #722

9 years agoAdjust set_logname description to new behavior when any of LOGNAME,
Todd C. Miller [Fri, 25 Sep 2015 17:19:28 +0000 (11:19 -0600)]
Adjust set_logname description to new behavior when any of LOGNAME,
USER or USERNAME are preserved.

9 years agoIf some, but not all, of the LOGNAME, USER or USERNAME environment
Todd C. Miller [Fri, 25 Sep 2015 17:15:22 +0000 (11:15 -0600)]
If some, but not all, of the LOGNAME, USER or USERNAME environment
variables have been preserved from the invoking user's environment,
sudo will now use the preserved value to set the remaining variables
instead of using the runas user.  This ensures that if, for example,
only LOGNAME is present in the env_keep list, that sudo will not
set USER and USERNAME to the runas user.

9 years agoFix passing of the callback pointer to the conversation function.
Todd C. Miller [Thu, 24 Sep 2015 19:43:17 +0000 (13:43 -0600)]
Fix passing of the callback pointer to the conversation function.
This was preventing the on_suspend and on_resume functions from
being called on PAM systems.

9 years agoExplicitly mark large hex constants unsigned.
Todd C. Miller [Thu, 24 Sep 2015 17:23:02 +0000 (11:23 -0600)]
Explicitly mark large hex constants unsigned.

9 years agoCast sizeof(entry) to off_t before making it a negative offset for
Todd C. Miller [Thu, 24 Sep 2015 16:52:44 +0000 (10:52 -0600)]
Cast sizeof(entry) to off_t before making it a negative offset for
lseek().  Fixes "sudo -k" on Solaris and probably others.

9 years agoAdd explicit mention of sudo's netgroup semantics since they differ
Todd C. Miller [Mon, 21 Sep 2015 22:04:59 +0000 (16:04 -0600)]
Add explicit mention of sudo's netgroup semantics since they differ
from most other netgroup consumers.

9 years agosync with translationproject.org
Todd C. Miller [Mon, 21 Sep 2015 21:18:04 +0000 (15:18 -0600)]
sync with translationproject.org

9 years agoFix potential double free of the cookie when sudo is suspended at
Todd C. Miller [Mon, 21 Sep 2015 21:07:00 +0000 (15:07 -0600)]
Fix potential double free of the cookie when sudo is suspended at
the password prompt.

9 years agosync with translationproject.org
Todd C. Miller [Wed, 16 Sep 2015 15:53:43 +0000 (09:53 -0600)]
sync with translationproject.org

9 years agosync with translationproject.org
Todd C. Miller [Tue, 15 Sep 2015 20:04:43 +0000 (14:04 -0600)]
sync with translationproject.org

9 years agoBug #719
Todd C. Miller [Tue, 15 Sep 2015 19:36:34 +0000 (13:36 -0600)]
Bug #719

9 years agoSIGHUP is now relayed to the command. Bug #719
Todd C. Miller [Tue, 15 Sep 2015 18:24:19 +0000 (12:24 -0600)]
SIGHUP is now relayed to the command.  Bug #719

9 years agoWhen a terminal device is closed, SIGHUP is sent to the controlling
Todd C. Miller [Tue, 15 Sep 2015 16:30:36 +0000 (10:30 -0600)]
When a terminal device is closed, SIGHUP is sent to the controlling
process associated with that terminal.  It is not sent to the entire
process group so sudo needs to relay SIGHUP to the command when it
is not being run in a new pty.  Bug #719

9 years agoMention visudo bug in 1.8.14
Todd C. Miller [Tue, 15 Sep 2015 15:50:35 +0000 (09:50 -0600)]
Mention visudo bug in 1.8.14

9 years agoWe reserved two slots at the end of the editor argv for the line
Todd C. Miller [Tue, 15 Sep 2015 15:29:40 +0000 (09:29 -0600)]
We reserved two slots at the end of the editor argv for the line
number and the file name.  However, resolve_editor() adds "--"
before the file names so the +line_number is interpreted as a file
name, not a line number so we need to overwrite the "--" as well.

9 years agoRemove checks for __sys_siglist and __sys_signame. They are internal
Todd C. Miller [Thu, 10 Sep 2015 22:44:57 +0000 (16:44 -0600)]
Remove checks for __sys_siglist and __sys_signame.  They are internal
to libc and there are no known systems that export those symbols
that do not already export the single underbar or no-underbar versions.

9 years agoSync with translationproject.org
Todd C. Miller [Thu, 10 Sep 2015 20:30:57 +0000 (14:30 -0600)]
Sync with translationproject.org

9 years agoregen
Todd C. Miller [Thu, 10 Sep 2015 20:30:02 +0000 (14:30 -0600)]
regen

9 years agoRestore old signal handlers before tty settings. That way SIGTTOU
Todd C. Miller [Wed, 9 Sep 2015 21:27:09 +0000 (15:27 -0600)]
Restore old signal handlers before tty settings.  That way SIGTTOU
is at its original value if sudo_term_restore() should fail.

9 years agoDocument what happens when the on_suspend/on_resume callbacks
Todd C. Miller [Wed, 9 Sep 2015 21:14:06 +0000 (15:14 -0600)]
Document what happens when the on_suspend/on_resume callbacks
return an error.

9 years agoNo need to have version macros for hooks, callbacks and the sudoers
Todd C. Miller [Wed, 9 Sep 2015 20:56:52 +0000 (14:56 -0600)]
No need to have version macros for hooks, callbacks and the sudoers
group plugin.  We can just use the main sudo API macros.  The sudoers
group plugin macros are preserved for source compatibility but are
not documented.

9 years agoProperly escape the backslash before a comma in an example so the
Todd C. Miller [Wed, 9 Sep 2015 20:33:01 +0000 (14:33 -0600)]
Properly escape the backslash before a comma in an example so the
example rule is parsable by visudo.

9 years agoIgnore callbacks if major version doesn't match.
Todd C. Miller [Wed, 9 Sep 2015 19:29:57 +0000 (13:29 -0600)]
Ignore callbacks if major version doesn't match.

9 years agoRemove include/compat/timespec.h. Systems old enough to lack struct
Todd C. Miller [Wed, 9 Sep 2015 17:13:22 +0000 (11:13 -0600)]
Remove include/compat/timespec.h.  Systems old enough to lack struct
timespec are too old to build a modern sudo.

9 years agoBug #713
Todd C. Miller [Wed, 9 Sep 2015 16:52:23 +0000 (10:52 -0600)]
Bug #713

9 years agoFill in cstat if exec_setup() fails. Previously it was only filled
Todd C. Miller [Wed, 9 Sep 2015 16:50:21 +0000 (10:50 -0600)]
Fill in cstat if exec_setup() fails.  Previously it was only filled
in for an execve() failure.  Fixes an unkillable sudo process when
exec_setup() fails and I/O logging is enabled.