]> granicus.if.org Git - sudo/log
sudo
7 years agoDon't loop over read/write, recv/send or tcgetpgrp/tcsetpgrp trying
Todd C. Miller [Thu, 30 Nov 2017 16:53:21 +0000 (09:53 -0700)]
Don't loop over read/write, recv/send or tcgetpgrp/tcsetpgrp trying
to handle EINTR.  We now use SA_RESTART with signals so this is not
needed and is potentially dangerous if it is possible to receive
SIGTTIN or SIGTTOU (which it currently is not).

7 years agoBetter describe things when a command is run in a pty.
Todd C. Miller [Tue, 21 Nov 2017 23:59:54 +0000 (16:59 -0700)]
Better describe things when a command is run in a pty.

7 years agoSprinkle some extra debugging printfs
Todd C. Miller [Wed, 29 Nov 2017 20:13:33 +0000 (13:13 -0700)]
Sprinkle some extra debugging printfs

7 years agoHandle receipt of SIGTTIN/SIGTTOU when reading/writing from/to the tty.
Todd C. Miller [Wed, 29 Nov 2017 19:06:12 +0000 (12:06 -0700)]
Handle receipt of SIGTTIN/SIGTTOU when reading/writing from/to the tty.
We can't use a signal event for these since that would restart the
system call after the signal was handled and the callback would not
get a chance to run.  Fixes running a command in the background that
write to the tty when the TOSTOP terminal flag is set.

7 years agoWe don't need to be the foreground process to be able to write to
Todd C. Miller [Wed, 29 Nov 2017 19:06:12 +0000 (12:06 -0700)]
We don't need to be the foreground process to be able to write to
the terminal in most cases.  If the background process tries to
modify the terminal flags it will receive SIGTTOU which is relayed
to the sudo front-end.  This currently mishandles terminals with
the TOSTOP local flag set.

7 years agoAvoid a double free when ipa_hostname is set in sssd.conf and it
Todd C. Miller [Tue, 28 Nov 2017 18:28:44 +0000 (11:28 -0700)]
Avoid a double free when ipa_hostname is set in sssd.conf and it
is an unqualified host name.  From Daniel Kopecek.

Also move the "unable to allocate memory" warning into get_ipa_hostname()
itself to make it easier to see where the allocation failed in the
debug log.

7 years agoWhen running a command as the invoking user we cannot use the gid
Todd C. Miller [Tue, 28 Nov 2017 16:48:43 +0000 (09:48 -0700)]
When running a command as the invoking user we cannot use the gid
list from the front-end since it may not correspond to the user's
aux group vector as defined by the group database.

7 years agoAdd missing initprogname() calls.
Todd C. Miller [Tue, 28 Nov 2017 16:06:44 +0000 (09:06 -0700)]
Add missing initprogname() calls.

7 years agoPlug some memory leaks on error, some found by the clang static analyzer.
Todd C. Miller [Thu, 16 Nov 2017 16:43:24 +0000 (09:43 -0700)]
Plug some memory leaks on error, some found by the clang static analyzer.

7 years agoAvoid calling cmnd_matches() in list/verify mode if we already have
Todd C. Miller [Wed, 15 Nov 2017 22:09:25 +0000 (15:09 -0700)]
Avoid calling cmnd_matches() in list/verify mode if we already have
a match.

7 years agoIn list (-l) or verify (-v) mode, if we have a match but authentication
Todd C. Miller [Wed, 15 Nov 2017 22:06:45 +0000 (15:06 -0700)]
In list (-l) or verify (-v) mode, if we have a match but authentication
is required, clear FLAG_NOPASSWD so that when listpw/verifypw is
set to "all" and there are multiple sudoers sources a password will
be required unless none of the entries in all sources require
authentication.  From Radovan Sroka of RedHat

7 years agoWhen checking the results for "sudo -l" and "sudo -v", keep checking
Todd C. Miller [Wed, 15 Nov 2017 19:27:39 +0000 (12:27 -0700)]
When checking the results for "sudo -l" and "sudo -v", keep checking
even after we get a match since the value of doauth may depend on
evaluating all the results.  From Radovan Sroka of RedHat.

7 years agoIf passwd_tries is less than 1, check_user() will always return
Todd C. Miller [Tue, 14 Nov 2017 20:58:35 +0000 (13:58 -0700)]
If passwd_tries is less than 1, check_user() will always return
false (since the user didn't authenticate).  The normal reason for
this is an authentication error but in this case no authentication
was tries so no warning message has been displayed to the user.  If
the user wasn't given a chance to authenticate, set inform_user to
true when calling log_denial() from sudoers_policy_main().

An alternate approach would be for check_user() to return true
in this case but seems more confusing.

7 years agoDocument bash shell alias issue with "sudo -i".
Todd C. Miller [Sun, 22 Oct 2017 12:54:41 +0000 (06:54 -0600)]
Document bash shell alias issue with "sudo -i".

7 years agoReturn an error if the sudo front end doesn't set the user name, user ID,
Todd C. Miller [Fri, 20 Oct 2017 13:55:48 +0000 (07:55 -0600)]
Return an error if the sudo front end doesn't set the user name, user ID,
group ID or host name.  Bug #807

7 years agoTreat an empty hostname as a failure and return NULL.
Todd C. Miller [Fri, 20 Oct 2017 13:37:40 +0000 (07:37 -0600)]
Treat an empty hostname as a failure and return NULL.

7 years agoAdd support for #include and #includedir from Natale Vinto.
Todd C. Miller [Tue, 17 Oct 2017 20:28:38 +0000 (14:28 -0600)]
Add support for #include and #includedir from Natale Vinto.

7 years agoMinor corrections from Tae Wong
Todd C. Miller [Sat, 14 Oct 2017 22:24:10 +0000 (16:24 -0600)]
Minor corrections from Tae Wong

7 years agoAdd a warning that for "sudo -i command" and "sudo -s command" the
Todd C. Miller [Thu, 12 Oct 2017 16:07:46 +0000 (10:07 -0600)]
Add a warning that for "sudo -i command" and "sudo -s command" the
shell is not run in interactive mode which may change its behavior.

7 years agoFix stair-stepped output when the output of a sudo command is piped
Todd C. Miller [Tue, 26 Sep 2017 20:21:11 +0000 (14:21 -0600)]
Fix stair-stepped output when the output of a sudo command is piped
to another command and use_pty is set.

7 years agoenv_keep and env_check are also taken into account with "sudo -i".
Todd C. Miller [Tue, 26 Sep 2017 19:08:57 +0000 (13:08 -0600)]
env_keep and env_check are also taken into account with "sudo -i".
Bug #806

7 years agoMake PC insults the default and add new configure option,
Todd C. Miller [Mon, 18 Sep 2017 16:45:02 +0000 (10:45 -0600)]
Make PC insults the default and add new configure option,
enable-offensive-insults, to enable the offensive insults.

7 years agoAdd missing translators from recent updates and one name change.
Todd C. Miller [Thu, 14 Sep 2017 17:05:41 +0000 (11:05 -0600)]
Add missing translators from recent updates and one name change.

7 years agosync with translationproject.org
Todd C. Miller [Thu, 7 Sep 2017 21:47:09 +0000 (15:47 -0600)]
sync with translationproject.org
* * *
sync with translationproject.org

7 years agoMore accurately describe the use_pty option now that its behavior
Todd C. Miller [Thu, 7 Sep 2017 20:59:37 +0000 (14:59 -0600)]
More accurately describe the use_pty option now that its behavior
has changed with respect to interposition with a pipe.
Also describe some caveats with log_input.

7 years agoDocument changes in use_pty behavior when no terminal is present.
Todd C. Miller [Thu, 7 Sep 2017 20:58:34 +0000 (14:58 -0600)]
Document changes in use_pty behavior when no terminal is present.

7 years agoSet ec->cmnd_pid to the correct value when receiving the command's
Todd C. Miller [Thu, 7 Sep 2017 19:22:10 +0000 (13:22 -0600)]
Set ec->cmnd_pid to the correct value when receiving the command's
process ID from the monitor.

7 years agoIf /dev/tty is not available and no I/O logging plugins are configured,
Todd C. Miller [Thu, 7 Sep 2017 17:32:30 +0000 (11:32 -0600)]
If /dev/tty is not available and no I/O logging plugins are configured,
fall back on exec_nopty() even if the policy plugin requested a pty.
We never allocate a pty when sudo is not run from a terminal anyway.

7 years agoDo not set utmp_user if we did not actually allocate a pty.
Todd C. Miller [Thu, 7 Sep 2017 17:00:19 +0000 (11:00 -0600)]
Do not set utmp_user if we did not actually allocate a pty.

7 years agosudo 1.8.21p2
Todd C. Miller [Thu, 7 Sep 2017 03:02:11 +0000 (21:02 -0600)]
sudo 1.8.21p2

7 years agosudo_terminated() should not return true when SIGCHLD is pending.
Todd C. Miller [Wed, 6 Sep 2017 22:08:23 +0000 (16:08 -0600)]
sudo_terminated() should not return true when SIGCHLD is pending.
Bug #801

7 years agoSet SIGCHLD handler to SIG_DFL before forking the askpass command
Todd C. Miller [Wed, 6 Sep 2017 21:59:37 +0000 (15:59 -0600)]
Set SIGCHLD handler to SIG_DFL before forking the askpass command
and restore after.  Otherwise, SIGCHLD will end up in the list of
pending signals and sudo_execute() will not execute the command.

7 years agoThe read and write sides of signal_pipe[] were swapped, resulting
Todd C. Miller [Wed, 6 Sep 2017 18:29:36 +0000 (12:29 -0600)]
The read and write sides of signal_pipe[] were swapped, resulting
in EBADF reading from and writing to the signal pipe on Linux and
probably others.  On systems with bidirectional pipes this was not
an issue.

7 years agoFix a logic error in 96651906de42 which prevented sudo from using
Todd C. Miller [Tue, 5 Sep 2017 15:30:19 +0000 (09:30 -0600)]
Fix a logic error in 96651906de42 which prevented sudo from using
the PAM-supplied prompt.  Bug #799

7 years agoSudo 1.8.21p1
Todd C. Miller [Fri, 1 Sep 2017 20:09:43 +0000 (14:09 -0600)]
Sudo 1.8.21p1

7 years agoThe Fedora sudo package uses /etc/ldap.conf not /etc/sudo-ldap.conf.
Todd C. Miller [Fri, 1 Sep 2017 19:59:45 +0000 (13:59 -0600)]
The Fedora sudo package uses /etc/ldap.conf not /etc/sudo-ldap.conf.

7 years agoThe fix for matching when no sudoRunAsUser is present in a sudoRole
Todd C. Miller [Fri, 1 Sep 2017 17:36:15 +0000 (11:36 -0600)]
The fix for matching when no sudoRunAsUser is present in a sudoRole
was incomplete.  If no -g option was specified on the command line
but sudoRunAsGroup is present in a sudoRole, we need to treat the
group match as failed instead of missing.

7 years agoSprinkle a few more debugging printfs.
Todd C. Miller [Fri, 1 Sep 2017 15:22:31 +0000 (09:22 -0600)]
Sprinkle a few more debugging printfs.

7 years agoFix replaying sessions that contain input logs. When the inter-record
Todd C. Miller [Fri, 1 Sep 2017 15:00:17 +0000 (09:00 -0600)]
Fix replaying sessions that contain input logs.  When the inter-record
timeout expires we need to read the next record if there is nothing
to output.

7 years agoregen
Todd C. Miller [Fri, 1 Sep 2017 12:01:08 +0000 (06:01 -0600)]
regen

7 years agoFix typo (Auguest vs. August). From David Pocock.
Todd C. Miller [Fri, 1 Sep 2017 12:00:48 +0000 (06:00 -0600)]
Fix typo (Auguest vs. August).  From David Pocock.

7 years agoGo back to returning true from display_privs() on non-error. This
Todd C. Miller [Thu, 31 Aug 2017 17:29:19 +0000 (11:29 -0600)]
Go back to returning true from display_privs() on non-error.  This
results in "sudo -U otheruser -l" exiting with a status of 0 even
when otheruser is not allowed to run commands.  This is appropriate
since the "sudo -l" command was successful.  This does not change
the exit value when otheruser runs "sudo -l" themselves, the exit
status will be 1 since that user is not allowed to run commands.
Requested by Radovan Sroka.

7 years agoFix the pass2 ldap query string when no search filter is defined.
Todd C. Miller [Thu, 31 Aug 2017 17:05:48 +0000 (11:05 -0600)]
Fix the pass2 ldap query string when no search filter is defined.
Due to the addition of "(sudoUser=*)" to the query we always need
the AND operator, even if no search filter is present.

7 years agoDon't forward SIGINFO to the child when it is send by the kernel
Todd C. Miller [Tue, 29 Aug 2017 14:58:14 +0000 (08:58 -0600)]
Don't forward SIGINFO to the child when it is send by the kernel
(not another user process).  This is consistent with the handling
of other keyboard-generated signals such as SIGINT, SIGQUIT and
SIGTSTP.  Bug #796

7 years agoFix path to LICENSE and NEWS files that get used in the installer.
Todd C. Miller [Wed, 23 Aug 2017 17:54:13 +0000 (11:54 -0600)]
Fix path to LICENSE and NEWS files that get used in the installer.
Previously, the installed versions were used instead of the ones
in the destdir.

7 years agosync with translationproject.org
Todd C. Miller [Mon, 21 Aug 2017 01:07:07 +0000 (19:07 -0600)]
sync with translationproject.org

7 years agosync with translationproject.org
Todd C. Miller [Fri, 18 Aug 2017 16:00:27 +0000 (10:00 -0600)]
sync with translationproject.org

7 years agosync with translationproject.org
Todd C. Miller [Sat, 12 Aug 2017 21:29:35 +0000 (15:29 -0600)]
sync with translationproject.org

7 years agoPreserving environment variables on the command line was bug #279
Todd C. Miller [Fri, 11 Aug 2017 15:50:07 +0000 (09:50 -0600)]
Preserving environment variables on the command line was bug #279

7 years agoAdd Friulian translation for sudo from Fabio Tomat via translationproject.org
Todd C. Miller [Thu, 10 Aug 2017 16:14:57 +0000 (10:14 -0600)]
Add Friulian translation for sudo from Fabio Tomat via translationproject.org

7 years agosync with translationproject.org
Todd C. Miller [Tue, 8 Aug 2017 12:50:24 +0000 (06:50 -0600)]
sync with translationproject.org

7 years agoIn the Runas example that uses "boulder" make it clear that "boulder"
Todd C. Miller [Fri, 4 Aug 2017 20:55:03 +0000 (14:55 -0600)]
In the Runas example that uses "boulder" make it clear that "boulder"
is a host name.

7 years agoregen
Todd C. Miller [Thu, 3 Aug 2017 16:06:16 +0000 (10:06 -0600)]
regen

7 years agoAllow the user to specify a list of environment variables to preserve.
Todd C. Miller [Thu, 3 Aug 2017 13:32:24 +0000 (07:32 -0600)]
Allow the user to specify a list of environment variables to preserve.
This adds an option paramter to the --preserve-env option, a
comma-separated list of variable names.

7 years agoReplace tty_tickets option with timestamp_type which can be
Todd C. Miller [Tue, 1 Aug 2017 22:14:54 +0000 (16:14 -0600)]
Replace tty_tickets option with timestamp_type which can be
global, ppid or tty.  Defaults to tty (no change in behavior).
Some users want the ppid behavior.

7 years agoregen
Todd C. Miller [Tue, 1 Aug 2017 21:45:20 +0000 (15:45 -0600)]
regen

7 years agoDon't send email about an unresolvable host name if fqdn is
Todd C. Miller [Tue, 1 Aug 2017 19:45:32 +0000 (13:45 -0600)]
Don't send email about an unresolvable host name if fqdn is
enabled and the user specified the run host via the -h flag.

7 years agofix playback of stdout/stderr without embedded carriage returns
Todd C. Miller [Mon, 31 Jul 2017 16:44:39 +0000 (10:44 -0600)]
fix playback of stdout/stderr without embedded carriage returns

7 years agoAvoid unused variable warning when sasl is not used.
Todd C. Miller [Fri, 28 Jul 2017 20:05:54 +0000 (14:05 -0600)]
Avoid unused variable warning when sasl is not used.

7 years agoAdd support for --enable-sasl and --disable-sasl to make it possible
Todd C. Miller [Fri, 28 Jul 2017 19:52:55 +0000 (13:52 -0600)]
Add support for --enable-sasl and --disable-sasl to make it possible
to enable/disable support for LDAP with SASL authentication.  Sudo
compiles in support for SASL authentiation by default if the
ldap_sasl_interactive_bind_s() function is detected.
Bug #788

7 years agoList the correct pattern ("*=()*") in the env_delete description.
Todd C. Miller [Fri, 28 Jul 2017 15:50:12 +0000 (09:50 -0600)]
List the correct pattern ("*=()*") in the env_delete description.
Use pseudo-tty instead of pseudo terminal for consistency.

7 years agoInclude pathnames.h for /dev/fd on FreeBSD and Mac OS X.
Todd C. Miller [Fri, 28 Jul 2017 02:51:21 +0000 (20:51 -0600)]
Include pathnames.h for /dev/fd on FreeBSD and Mac OS X.

7 years agoupdate for 1.8.21
Todd C. Miller [Thu, 27 Jul 2017 23:08:09 +0000 (17:08 -0600)]
update for 1.8.21

7 years agoNo need to call sudo_ev_del() before sudo_ev_free(); sudo_ev_free()
Todd C. Miller [Thu, 27 Jul 2017 20:12:57 +0000 (14:12 -0600)]
No need to call sudo_ev_del() before sudo_ev_free(); sudo_ev_free()
will delete the event from its base before freeing it.

7 years agoTerminate the command if an I/O log function returns 0 or -1. This
Todd C. Miller [Thu, 27 Jul 2017 20:10:44 +0000 (14:10 -0600)]
Terminate the command if an I/O log function returns 0 or -1.  This
was mistakenly removed by 25b7fd056614 in Sudo 1.8.18 with the
removal of the ignore_iolog_errors variable.

7 years agoQuiet a coverity false positive.
Todd C. Miller [Thu, 27 Jul 2017 17:36:10 +0000 (11:36 -0600)]
Quiet a coverity false positive.

7 years agoChange to a single event loop in sudoreplay and use signal events.
Todd C. Miller [Thu, 27 Jul 2017 15:45:35 +0000 (09:45 -0600)]
Change to a single event loop in sudoreplay and use signal events.

7 years agostart new sentences on a new line
Todd C. Miller [Fri, 21 Jul 2017 17:20:04 +0000 (11:20 -0600)]
start new sentences on a new line

7 years agoClarify how the variable prompt options interact with each other
Todd C. Miller [Fri, 21 Jul 2017 17:18:13 +0000 (11:18 -0600)]
Clarify how the variable prompt options interact with each other
and PAM.

7 years agoDon't set passprompt_override when SUDO_PROMPT is present.
Todd C. Miller [Fri, 21 Jul 2017 15:07:00 +0000 (09:07 -0600)]
Don't set passprompt_override when SUDO_PROMPT is present.
This effectively reverts ed77d255f383.

We treat the SUDO_PROMPT environment variable similar to passprompt
in sudoers: it will only override a PAM prompt if the PAM prompt
is either "Password:" or "username's Password:".

7 years agoAdd syslog_pid sudoers option to log sudo's process ID when logging
Todd C. Miller [Thu, 20 Jul 2017 22:33:12 +0000 (16:33 -0600)]
Add syslog_pid sudoers option to log sudo's process ID when logging
via syslog.  This is disabled by default to match historic behavior.

7 years agoWhen deciding which prompt to use (PAM's or sudo's) treat the PAM
Todd C. Miller [Thu, 20 Jul 2017 22:06:47 +0000 (16:06 -0600)]
When deciding which prompt to use (PAM's or sudo's) treat the PAM
prompt "username's Password:" as equivalent to "Password:".
Some PAM modules (on AIX at least) use this prompt.

7 years agoAdd missing argument to a few of the defaults strings in the
Todd C. Miller [Thu, 20 Jul 2017 19:58:54 +0000 (13:58 -0600)]
Add missing argument to a few of the defaults strings in the
"sudo -V" output.

7 years agoWhen examining environment variables or variables passed in from
Todd C. Miller [Thu, 20 Jul 2017 18:02:22 +0000 (12:02 -0600)]
When examining environment variables or variables passed in from
the front-end, ignore variables with no value specified.

7 years agoDocument that "-p prompt" overrides SUDO_PROMPT.
Todd C. Miller [Thu, 20 Jul 2017 17:44:50 +0000 (11:44 -0600)]
Document that "-p prompt" overrides SUDO_PROMPT.

7 years agoEnable passprompt_override by default if SUDO_PROMPT is present in
Todd C. Miller [Thu, 20 Jul 2017 17:40:49 +0000 (11:40 -0600)]
Enable passprompt_override by default if SUDO_PROMPT is present in
the environment.  This is consistent with how "sudo -p prompt" is
handled.

7 years agoWhen reading a single character via a switch() use "default: instead
Todd C. Miller [Mon, 17 Jul 2017 20:44:18 +0000 (14:44 -0600)]
When reading a single character via a switch() use "default: instead
of "case 1:" to quiet a coverity warning.

7 years agoInitialize ch in getsize_cb() in case we are called with the wrong
Todd C. Miller [Mon, 17 Jul 2017 20:13:08 +0000 (14:13 -0600)]
Initialize ch in getsize_cb() in case we are called with the wrong
initial state.

7 years agoremove unused variable
Todd C. Miller [Mon, 17 Jul 2017 20:09:48 +0000 (14:09 -0600)]
remove unused variable

7 years agoCall install_sudoers() even when doedit is false. If a file in a
Todd C. Miller [Mon, 17 Jul 2017 15:42:42 +0000 (09:42 -0600)]
Call install_sudoers() even when doedit is false.  If a file in a
#includedir has a syntax error it will still have been edited and
we need to install the edited temp file.

7 years agoReparse sudoers if a new #include file was added.
Todd C. Miller [Mon, 17 Jul 2017 15:26:00 +0000 (09:26 -0600)]
Reparse sudoers if a new #include file was added.
Otherwise the new file will not get its syntax checked.
Bug #791

7 years agodon't restore the cursor when setting terminal size, we don't want the cursor to...
Todd C. Miller [Fri, 14 Jul 2017 20:30:43 +0000 (14:30 -0600)]
don't restore the cursor when setting terminal size, we don't want the cursor to move

7 years agoRead the xterm terminal size using an event so we can easily time
Todd C. Miller [Fri, 14 Jul 2017 16:10:00 +0000 (10:10 -0600)]
Read the xterm terminal size using an event so we can easily time
out if needed.

7 years agoIf we free the default base in sudo_ev_base_free(), reset the default
Todd C. Miller [Fri, 14 Jul 2017 16:09:58 +0000 (10:09 -0600)]
If we free the default base in sudo_ev_base_free(), reset the default
base to NULL.

7 years agoAdd the ability to set a default event base, to be used by plugins
Todd C. Miller [Thu, 13 Jul 2017 19:59:31 +0000 (13:59 -0600)]
Add the ability to set a default event base, to be used by plugins
which don't have access to the event base.

7 years agoAllow sudoreplay to adjust the window size on xterm-like terminals.
Todd C. Miller [Thu, 13 Jul 2017 17:20:45 +0000 (11:20 -0600)]
Allow sudoreplay to adjust the window size on xterm-like terminals.

7 years agoLog window size change events in the sudoers I/O plugin.
Todd C. Miller [Wed, 12 Jul 2017 11:47:28 +0000 (05:47 -0600)]
Log window size change events in the sudoers I/O plugin.
Let sudoreplay parse a timing file with window change events
(currently ignored).

7 years agoPass window size change events to the plugin.
Todd C. Miller [Wed, 12 Jul 2017 11:47:28 +0000 (05:47 -0600)]
Pass window size change events to the plugin.

7 years agoClear input, output, control and local flags before copying them
Todd C. Miller [Wed, 12 Jul 2017 11:47:28 +0000 (05:47 -0600)]
Clear input, output, control and local flags before copying them
from the source terminal.  Otherwise, flags that are disabled
in the source terminal may still be enabled in the destination.

7 years agoRemove pointless subshells in targets that simply change the directory
Todd C. Miller [Wed, 12 Jul 2017 11:45:46 +0000 (05:45 -0600)]
Remove pointless subshells in targets that simply change the directory
and execute a command.  The command is already run in a shell so
there is no need to execute a subshell in this case.

7 years agoStore the debug instance ID for I/O plugins too.
Todd C. Miller [Mon, 10 Jul 2017 22:28:10 +0000 (16:28 -0600)]
Store the debug instance ID for I/O plugins too.
Now iolog_open() is consistent with policy_open().

7 years agoMove the bits to fill in the new event base to sudo_ev_base_init(),
Todd C. Miller [Thu, 1 Jun 2017 15:45:23 +0000 (09:45 -0600)]
Move the bits to fill in the new event base to sudo_ev_base_init(),
which is not currently exported.

7 years agoUse getentropy() in mkstemp/mkdtemp replacement.
Todd C. Miller [Fri, 30 Jun 2017 00:11:30 +0000 (18:11 -0600)]
Use getentropy() in mkstemp/mkdtemp replacement.

7 years agoUse _PATH_DEV consistently
Todd C. Miller [Fri, 30 Jun 2017 00:10:53 +0000 (18:10 -0600)]
Use _PATH_DEV consistently

7 years agoWhen copying terminal settings from one tty to another only copy a
Todd C. Miller [Thu, 15 Jun 2017 18:59:46 +0000 (12:59 -0600)]
When copying terminal settings from one tty to another only copy a
subset of the flags.  Sudo now copies the same set of flags that
OpenSSH uses, which should be safe.

7 years agoAdd debug warning when we have wait status but don't overwrite the
Todd C. Miller [Thu, 15 Jun 2017 13:51:02 +0000 (07:51 -0600)]
Add debug warning when we have wait status but don't overwrite the
existing cstat.

7 years agoBetter handling of SIGCONT from in command in the monitor. It is
Todd C. Miller [Thu, 15 Jun 2017 13:51:00 +0000 (07:51 -0600)]
Better handling of SIGCONT from in command in the monitor.  It is
useful to know when the command continued but we don't want to
inform the parent or store the wait status in this case.  Fixes a
hang after multiple suspends on Linux.

7 years agoavoid padding in struct cmndspec
Todd C. Miller [Fri, 9 Jun 2017 14:58:44 +0000 (08:58 -0600)]
avoid padding in struct cmndspec

7 years agoFix the man section of sudo_plugin in cross-references.
Todd C. Miller [Wed, 7 Jun 2017 22:25:46 +0000 (16:25 -0600)]
Fix the man section of sudo_plugin in cross-references.

7 years agoDon't treat an unchanged file as an error. From Xin Li.
Todd C. Miller [Mon, 5 Jun 2017 13:47:43 +0000 (07:47 -0600)]
Don't treat an unchanged file as an error.  From Xin Li.