]> granicus.if.org Git - sudo/log
sudo
9 years agoUse TCSAFLUSH instead of TCSANOW in sudo_term_copy(). sudo-1.7
Todd C. Miller [Thu, 23 Jul 2015 13:47:38 +0000 (07:47 -0600)]
Use TCSAFLUSH instead of TCSANOW in sudo_term_copy().
Be consistent with where we put TCSASOFT in the action flags.

--HG--
branch : 1.7

9 years agoIn term_restore(), only restores the terminal if we are in the
Todd C. Miller [Thu, 23 Jul 2015 13:46:25 +0000 (07:46 -0600)]
In term_restore(), only restores the terminal if we are in the
foregroup process group.  Instead of calling tcgetpgrp(), which is
racy, we set a temporary handler for SIGTTOU and check whether it
was received after a failed call to tcsetattr().

--HG--
branch : 1.7

9 years agoDocument function return values.
Todd C. Miller [Thu, 23 Jul 2015 13:38:53 +0000 (07:38 -0600)]
Document function return values.

--HG--
branch : 1.7

9 years agosyscall restarting is broken on Mac OS X when interrupted by a tty
Todd C. Miller [Thu, 23 Jul 2015 13:36:27 +0000 (07:36 -0600)]
syscall restarting is broken on Mac OS X when interrupted by a tty
signal so restart tcsetattr() by hand.  For details, see.
http://openradar.appspot.com/radar?id=6402578615107584

--HG--
branch : 1.7

10 years agoFix cut & pasto that prevented the SIGPIPE handler from being
Todd C. Miller [Mon, 2 Mar 2015 16:36:32 +0000 (09:36 -0700)]
Fix cut & pasto that prevented the SIGPIPE handler from being
restored before returning from tgetpass().  From mancha

--HG--
branch : 1.7

10 years agoHistorically, crypt() returned the empty string on error, which
Todd C. Miller [Thu, 19 Feb 2015 21:18:13 +0000 (14:18 -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.

--HG--
branch : 1.7

10 years agoCheck for crypt() returning NULL. Traditionally, crypt() never
Todd C. Miller [Thu, 19 Feb 2015 20:41:16 +0000 (13:41 -0700)]
Check for crypt() returning NULL. Traditionally, crypt() never
returned NULL but newer versions of eglibc have a crypt() that does.
Bug #598

--HG--
branch : 1.7

10 years agoAdded tag SUDO_1_7_10p9 for changeset 772c68ed1580
Todd C. Miller [Tue, 10 Feb 2015 17:10:16 +0000 (10:10 -0700)]
Added tag SUDO_1_7_10p9 for changeset 772c68ed1580

--HG--
branch : 1.7

10 years agoFix a packaging problem with the sudoedit man page link on Debian. SUDO_1_7_10p9
Todd C. Miller [Tue, 10 Feb 2015 17:01:47 +0000 (10:01 -0700)]
Fix a packaging problem with the sudoedit man page link on Debian.

--HG--
branch : 1.7

10 years agoOnly use the first two digits of the version number.
Todd C. Miller [Tue, 10 Feb 2015 17:00:20 +0000 (10:00 -0700)]
Only use the first two digits of the version number.
Fixes a problem on RHEL 7 which has version numbers like 7.0.1406

--HG--
branch : 1.7

10 years agoRemove duplicate Requires: line in generated rpm spec file.
Todd C. Miller [Tue, 10 Feb 2015 15:27:13 +0000 (08:27 -0700)]
Remove duplicate Requires: line in generated rpm spec file.

--HG--
branch : 1.7

10 years agoIn pp_files_expand() set _target to be empty. Fixes a problem with
Todd C. Miller [Tue, 10 Feb 2015 15:26:49 +0000 (08:26 -0700)]
In pp_files_expand() set _target to be empty.  Fixes a problem with
Solaris sh where simply using typeset doesn't causes the variable
to be treated as local so we can inadvertantly inherit a value from
a previous call.

--HG--
branch : 1.7

10 years agoFor rpm, do not specify a mode in %attr for symbolic links. Avoids
Todd C. Miller [Tue, 10 Feb 2015 15:26:35 +0000 (08:26 -0700)]
For rpm, do not specify a mode in %attr for symbolic links.  Avoids
the warning "Explicit %attr() mode not applicaple to symlink"

--HG--
branch : 1.7

10 years agoUpdate polypkg from trunk.
Todd C. Miller [Tue, 10 Feb 2015 15:26:18 +0000 (08:26 -0700)]
Update polypkg from trunk.

--HG--
branch : 1.7

10 years agoUse -fstack-protector-strong in preference to -fstack-protector-all
Todd C. Miller [Tue, 10 Feb 2015 03:54:42 +0000 (20:54 -0700)]
Use -fstack-protector-strong in preference to -fstack-protector-all
or -fstack-protector.

--HG--
branch : 1.7

10 years agoOn Solaris 11 and higher, tag binaries for ASLR if supported by the
Todd C. Miller [Tue, 10 Feb 2015 03:54:20 +0000 (20:54 -0700)]
On Solaris 11 and higher, tag binaries for ASLR if supported by the
linker.

--HG--
branch : 1.7

10 years agoRestrict default creation of PIE binaries (-fPIE and -pie) to Linux.
Todd C. Miller [Tue, 10 Feb 2015 03:52:50 +0000 (20:52 -0700)]
Restrict default creation of PIE binaries (-fPIE and -pie) to Linux.
OpenBSD also supports PIE but enables it by default so we don't
need to do anything.  This fixes problems on systems with a version
of GNU ld that accepts -pie but where the run-time linker doesn't
actually support PIE.  Also verify that a trivial PIE binary works
unless PIE is explicitly enabled.

--HG--
branch : 1.7

10 years agoSanity check the TZ environment variable by special casing it in
Todd C. Miller [Mon, 9 Feb 2015 23:34:06 +0000 (16:34 -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.

--HG--
branch : 1.7

11 years agoUpdate Mac SDK paths.
Todd C. Miller [Wed, 5 Mar 2014 21:30:59 +0000 (14:30 -0700)]
Update Mac SDK paths.

--HG--
branch : 1.7

11 years agoFix fd leak on Linux when determing boot time. This is usually
Todd C. Miller [Mon, 28 Apr 2014 14:36:05 +0000 (08:36 -0600)]
Fix fd leak on Linux when determing boot time.  This is usually
masked by the closefrom() call in sudo.  From Jamie Anderson.
Bug #645

--HG--
branch : 1.7

11 years agoFix up SUDO_1_7_10p8 tag.
Todd C. Miller [Wed, 5 Mar 2014 21:09:37 +0000 (14:09 -0700)]
Fix up SUDO_1_7_10p8 tag.

--HG--
branch : 1.7

11 years agoAdded tag SUDO_1_7_10p8 for changeset dcacf314271c
Todd C. Miller [Wed, 5 Mar 2014 21:09:20 +0000 (14:09 -0700)]
Added tag SUDO_1_7_10p8 for changeset dcacf314271c

--HG--
branch : 1.7

11 years agoRemoved tag SUDO_1_7_10p8 SUDO_1_7_10p8
Todd C. Miller [Wed, 5 Mar 2014 21:07:56 +0000 (14:07 -0700)]
Removed tag SUDO_1_7_10p8

--HG--
branch : 1.7

11 years agoNeed to use MAXHOSTNAMELEN not HOST_NAME_MAX in sudo 1.7.
Todd C. Miller [Wed, 5 Mar 2014 21:06:44 +0000 (14:06 -0700)]
Need to use MAXHOSTNAMELEN not HOST_NAME_MAX in sudo 1.7.

--HG--
branch : 1.7

11 years agoAdded tag SUDO_1_7_10p8 for changeset 0fe6c4ba99be
Todd C. Miller [Wed, 5 Mar 2014 17:10:32 +0000 (10:10 -0700)]
Added tag SUDO_1_7_10p8 for changeset 0fe6c4ba99be

--HG--
branch : 1.7

11 years agoSudo 1.7 configure doesn't support --disable-nls
Todd C. Miller [Wed, 5 Mar 2014 16:58:23 +0000 (09:58 -0700)]
Sudo 1.7 configure doesn't support --disable-nls

--HG--
branch : 1.7

11 years agoUpdate for sudo 1.7.10p8
Todd C. Miller [Wed, 5 Mar 2014 13:53:41 +0000 (06:53 -0700)]
Update for sudo 1.7.10p8

--HG--
branch : 1.7

11 years agoRemove extraneous keeps in SYNOPSIS now that mandoc does implied
Todd C. Miller [Wed, 5 Mar 2014 13:06:27 +0000 (06:06 -0700)]
Remove extraneous keeps in SYNOPSIS now that mandoc does implied
keeps when converting from mdoc to man.

--HG--
branch : 1.7

11 years agoProperly escape the : in :alpha:
Todd C. Miller [Wed, 5 Mar 2014 13:06:27 +0000 (06:06 -0700)]
Properly escape the : in :alpha:

--HG--
branch : 1.7

11 years agoReplace some uses of .Sy with .Ar, .Ev and .Pa as appropriate.
Todd C. Miller [Wed, 5 Mar 2014 13:06:27 +0000 (06:06 -0700)]
Replace some uses of .Sy with .Ar, .Ev and .Pa as appropriate.
From Jan Stary.

--HG--
branch : 1.7

11 years agoRemove some extraneous markup; from Ingo Schwarze
Todd C. Miller [Wed, 5 Mar 2014 13:06:26 +0000 (06:06 -0700)]
Remove some extraneous markup; from Ingo Schwarze
 * No need to explicitly end a macro with No before | because | counts
   as middle punctuation and falls out of the macro, anyway.
 * No need to explicitly re-open in-line macros after | because |
   counts as middle punctuation and the macros resume afterwards,
   anyway.
 * Simplify the mnemonic remarks regarding the option letters, no need
   for manual font and spacing control with No and Ns.
 * Trim Ns No to just Ns, it already implies No.

--HG--
branch : 1.7

11 years agoUse .Ar macro instead of "file ..." Use ".Cm -" instead of ".Li -"
Todd C. Miller [Wed, 5 Mar 2014 13:06:26 +0000 (06:06 -0700)]
Use .Ar macro instead of "file ..." Use ".Cm -" instead of ".Li -"
for the default login class. From Ingo Schwarze.

--HG--
branch : 1.7

11 years agoOnly warn once when we are unable to open the sudoers file.
Todd C. Miller [Wed, 5 Mar 2014 13:06:26 +0000 (06:06 -0700)]
Only warn once when we are unable to open the sudoers file.

--HG--
branch : 1.7

11 years agoCheck for illegal characters in the NIS domain name. RHEL (and
Todd C. Miller [Wed, 5 Mar 2014 13:06:26 +0000 (06:06 -0700)]
Check for illegal characters in the NIS domain name.  RHEL (and
perhaps other Linux distros) use the string "(none)" instead of an
empty string when there is no actual NIS-style domain name. Bug #596

--HG--
branch : 1.7

11 years agoBump I/O buffer size to 32K
Todd C. Miller [Wed, 5 Mar 2014 13:06:25 +0000 (06:06 -0700)]
Bump I/O buffer size to 32K

--HG--
branch : 1.7

11 years agoMac OS X has netgroup functions in netdb.h.
Todd C. Miller [Wed, 5 Mar 2014 13:06:25 +0000 (06:06 -0700)]
Mac OS X has netgroup functions in netdb.h.

--HG--
branch : 1.7

11 years agoFix logic inversion when checking environment variables on the
Todd C. Miller [Fri, 28 Feb 2014 22:09:19 +0000 (15:09 -0700)]
Fix logic inversion when checking environment variables on the
command line against the blacklist.  This is only a problem when
env_reset is disabled.

--HG--
branch : 1.7

11 years agoMerge from sudo trunk:
Todd C. Miller [Fri, 28 Feb 2014 22:08:30 +0000 (15:08 -0700)]
Merge from sudo trunk:

Ignore EOVERFLOW from pstat_getproc().  The HP-UX kernel appears
to return this in certain situations but it appears to be harmless
at least insofar as retrieving the tty goes.

Handle d_type == DT_UNKNOWN when resolving the device to a name.

Don't check the tty of the parent process.  Now that we get the
controlling tty device number from the kernel there is no need.  If
the process has really disassociated from the tty then reporting
"unknown" is appropriate.

AIX may have a 64-bit pr_ttydev that we need to convert to 32-bit
before we try to match it against st_rdev.

Break out of the loop if sudo_ttyname_scan() returns non-NULL.
Fixes a problem finding the tty name when it is not in /dev/pts.

--HG--
branch : 1.7

11 years agoWe need limits.h here.
Todd C. Miller [Fri, 28 Feb 2014 22:05:36 +0000 (15:05 -0700)]
We need limits.h here.

--HG--
branch : 1.7

11 years agoUse /dev/fd in closefrom() on FreeBSD < 8.0 and Mac OS X.
Todd C. Miller [Fri, 28 Feb 2014 22:05:19 +0000 (15:05 -0700)]
Use /dev/fd in closefrom() on FreeBSD < 8.0 and Mac OS X.

--HG--
branch : 1.7

11 years agoAvoid a crash on Mac OS X 10.8 (at least) when we close libdispatch's
Todd C. Miller [Fri, 28 Feb 2014 22:04:36 +0000 (15:04 -0700)]
Avoid a crash on Mac OS X 10.8 (at least) when we close libdispatch's
fds out from under it before executing the command.  Switch to just
setting the close on exec flag instead.

--HG--
branch : 1.7

11 years agoMake -c option description more accurate (merged from sudo 1.8).
Todd C. Miller [Sun, 8 Dec 2013 18:22:30 +0000 (11:22 -0700)]
Make -c option description more accurate (merged from sudo 1.8).

--HG--
branch : 1.7

11 years agoWhen checking whether a user may change the login class, just check
Todd C. Miller [Sun, 8 Dec 2013 18:11:21 +0000 (11:11 -0700)]
When checking whether a user may change the login class, just check
pw_uid of the runas user, which was passed in to set_loginclass().

--HG--
branch : 1.7

11 years agoFix compilation when --without-iologdir configure option is specified.
Todd C. Miller [Fri, 22 Nov 2013 23:39:58 +0000 (16:39 -0700)]
Fix compilation when --without-iologdir configure option is specified.
Based on an apple patch via Kyle J. McKay

--HG--
branch : 1.7

11 years agoFix typo.
Todd C. Miller [Thu, 7 Nov 2013 21:46:13 +0000 (14:46 -0700)]
Fix typo.

--HG--
branch : 1.7

11 years agoAdd missing call to restore_signals() in the !dowait case.
Todd C. Miller [Thu, 7 Nov 2013 15:52:18 +0000 (08:52 -0700)]
Add missing call to restore_signals() in the !dowait case.

--HG--
branch : 1.7

11 years agoFix realloc loop() in lbuf_append_quoted(); from Daniel Kopecek
Todd C. Miller [Mon, 12 Aug 2013 15:32:43 +0000 (09:32 -0600)]
Fix realloc loop() in lbuf_append_quoted(); from Daniel Kopecek

--HG--
branch : 1.7

12 years agoFix potential double free in an error path.
Todd C. Miller [Tue, 5 Mar 2013 18:08:04 +0000 (13:08 -0500)]
Fix potential double free in an error path.

--HG--
branch : 1.7

12 years agoUse pst_highestfd from pstat_getproc() on HP-UX.
Todd C. Miller [Fri, 1 Mar 2013 21:02:03 +0000 (16:02 -0500)]
Use pst_highestfd from pstat_getproc() on HP-UX.

--HG--
branch : 1.7

12 years agoUse pstat() on HP-UX to determine the tty device.
Todd C. Miller [Fri, 1 Mar 2013 16:17:31 +0000 (11:17 -0500)]
Use pstat() on HP-UX to determine the tty device.

--HG--
branch : 1.7

12 years agoFix exit value if check_user() returns -1.
Todd C. Miller [Fri, 1 Mar 2013 16:14:05 +0000 (11:14 -0500)]
Fix exit value if check_user() returns -1.

--HG--
branch : 1.7

12 years agore-tag SUDO_1_7_10p7
Todd C. Miller [Fri, 1 Mar 2013 16:13:24 +0000 (11:13 -0500)]
re-tag SUDO_1_7_10p7

--HG--
branch : 1.7

12 years agoAdded tag SUDO_1_7_10p7 for changeset d95631aa92d9
Todd C. Miller [Fri, 1 Mar 2013 16:12:23 +0000 (11:12 -0500)]
Added tag SUDO_1_7_10p7 for changeset d95631aa92d9

--HG--
branch : 1.7

12 years agoSudo 1.7.10p7 SUDO_1_7_10p7
Todd C. Miller [Fri, 1 Mar 2013 16:11:45 +0000 (11:11 -0500)]
Sudo 1.7.10p7

--HG--
branch : 1.7

12 years agoAdded tag SUDO_1_7_10p7 for changeset ddf399e3e306
Todd C. Miller [Mon, 25 Feb 2013 20:07:38 +0000 (15:07 -0500)]
Added tag SUDO_1_7_10p7 for changeset ddf399e3e306

--HG--
branch : 1.7

12 years agoCompletely ignore time stamp file if it is set to the epoch,
Todd C. Miller [Thu, 21 Feb 2013 15:05:25 +0000 (10:05 -0500)]
Completely ignore time stamp file if it is set to the epoch,
regardless of what gettimeofday() returns.

--HG--
branch : 1.7

12 years agoMake display_cmnd() return value match trunk version.
Todd C. Miller [Tue, 19 Feb 2013 19:41:41 +0000 (14:41 -0500)]
Make display_cmnd() return value match trunk version.
Fixes exit status of "sudo -l command".

--HG--
branch : 1.7

12 years ago#include "sudo_usage.h" not <sudo_usage.h> so we get the one in the
Todd C. Miller [Fri, 15 Feb 2013 15:27:21 +0000 (10:27 -0500)]
#include "sudo_usage.h" not <sudo_usage.h> so we get the one in the
build directory and not the src dir when using a separate build
directory.

--HG--
branch : 1.7

12 years agoAdded tag SUDO_1_7_10p6 for changeset 882475dfa47c
Todd C. Miller [Sun, 10 Feb 2013 23:44:16 +0000 (18:44 -0500)]
Added tag SUDO_1_7_10p6 for changeset 882475dfa47c

--HG--
branch : 1.7

12 years agoSudo 1.7.10p6 SUDO_1_7_10p6
Todd C. Miller [Sun, 10 Feb 2013 23:44:05 +0000 (18:44 -0500)]
Sudo 1.7.10p6

--HG--
branch : 1.7

12 years agoSync with autoconf 2.68
Todd C. Miller [Sun, 10 Feb 2013 23:36:13 +0000 (18:36 -0500)]
Sync with autoconf 2.68

--HG--
branch : 1.7

12 years agoMove call the save_signals() to before SIGINT, SIGQUIT and SIGTSTP
Todd C. Miller [Sun, 10 Feb 2013 23:24:56 +0000 (18:24 -0500)]
Move call the save_signals() to before SIGINT, SIGQUIT and SIGTSTP
are set to SIG_IGN.

--HG--
branch : 1.7

12 years agoStore the session ID in the tty ticket file too. A tty may only
Todd C. Miller [Fri, 8 Feb 2013 15:42:32 +0000 (10:42 -0500)]
Store the session ID in the tty ticket file too.  A tty may only
be in one session at a time so if the session ID doesn't match we
ignore the ticket.

--HG--
branch : 1.7

12 years agoAdded tag SUDO_1_7_10p5 for changeset 765958d9ee1e
Todd C. Miller [Thu, 31 Jan 2013 21:09:23 +0000 (16:09 -0500)]
Added tag SUDO_1_7_10p5 for changeset 765958d9ee1e

--HG--
branch : 1.7

12 years agoSudo 1.7.10p5 SUDO_1_7_10p5
Todd C. Miller [Thu, 31 Jan 2013 21:09:09 +0000 (16:09 -0500)]
Sudo 1.7.10p5

--HG--
branch : 1.7

12 years agoUpdate copyright year
Todd C. Miller [Thu, 31 Jan 2013 21:09:04 +0000 (16:09 -0500)]
Update copyright year

--HG--
branch : 1.7

12 years agoFix potential stack overflow due to infinite recursion in alias
Todd C. Miller [Thu, 31 Jan 2013 16:12:53 +0000 (11:12 -0500)]
Fix potential stack overflow due to infinite recursion in alias
cycle detection. From Daniel Kopecek.

--HG--
branch : 1.7

12 years agoRemove ttyname() fall back code on systems where we can query the
Todd C. Miller [Thu, 31 Jan 2013 16:10:23 +0000 (11:10 -0500)]
Remove ttyname() fall back code on systems where we can query the
kernel for the tty device via /proc or sysctl().  If there is no
controlling tty, it is better to just treat the tty as unknown
rather than to blindly use what is hooked up to std{in,out,err}.

--HG--
branch : 1.7

12 years agoAdded tag SUDO_1_7_10p4 for changeset a5ea48905d46
Todd C. Miller [Tue, 15 Jan 2013 21:54:23 +0000 (16:54 -0500)]
Added tag SUDO_1_7_10p4 for changeset a5ea48905d46

--HG--
branch : 1.7

12 years agoSudo 1.7.10p4 SUDO_1_7_10p4
Todd C. Miller [Tue, 15 Jan 2013 20:40:33 +0000 (15:40 -0500)]
Sudo 1.7.10p4

--HG--
branch : 1.7

12 years agoUse -fstack-protector-all in preference to -fstack-protector where
Todd C. Miller [Tue, 15 Jan 2013 20:38:11 +0000 (15:38 -0500)]
Use -fstack-protector-all in preference to -fstack-protector where
supported and restrict the test to GNU compatible compilers.

--HG--
branch : 1.7

12 years agoBreak out stack smashing protector options into SSP_CFLAGS and
Todd C. Miller [Tue, 15 Jan 2013 20:02:15 +0000 (15:02 -0500)]
Break out stack smashing protector options into SSP_CFLAGS and
SSP_LDFLAGS so we can use it everywhere.

--HG--
branch : 1.7

12 years agoAvoid NULL deref for unknown Defaults in strict mode.
Todd C. Miller [Tue, 15 Jan 2013 19:55:34 +0000 (14:55 -0500)]
Avoid NULL deref for unknown Defaults in strict mode.

--HG--
branch : 1.7

12 years agoDo not inform the user that the command was not permitted by the
Todd C. Miller [Tue, 15 Jan 2013 19:54:49 +0000 (14:54 -0500)]
Do not inform the user that the command was not permitted by the
policy if they do not successfully authenticate. This is a regression
introduced in sudo 1.7.10.

--HG--
branch : 1.7

12 years agoThe -a option should be #ifdef HAVE_BSD_AUTH_H, not -A.
Todd C. Miller [Tue, 15 Jan 2013 19:50:08 +0000 (14:50 -0500)]
The -a option should be #ifdef HAVE_BSD_AUTH_H, not -A.

--HG--
branch : 1.7

12 years agoAdd missing call to save_signals().
Todd C. Miller [Sun, 13 Jan 2013 20:25:57 +0000 (15:25 -0500)]
Add missing call to save_signals().

--HG--
branch : 1.7

12 years agoIn rbrepair(), make sure we never try to change the color of the
Todd C. Miller [Tue, 1 Jan 2013 21:24:29 +0000 (16:24 -0500)]
In rbrepair(), make sure we never try to change the color of the
sentinel node, which is the first entry, not the root.
From Michael King

--HG--
branch : 1.7

12 years agoNo need to restore default signal handler for SIGSTOP as it is not
Todd C. Miller [Tue, 1 Jan 2013 21:23:37 +0000 (16:23 -0500)]
No need to restore default signal handler for SIGSTOP as it is not
catchable.  Attempting to do so is harmless but sigaction() will
fail and set errno to EINVAL which makes it looks like there is an
error.

--HG--
branch : 1.7

12 years agoDisable PIE on FreeBSD/ia64, otherwise sudo will segfault.
Todd C. Miller [Tue, 1 Jan 2013 21:21:58 +0000 (16:21 -0500)]
Disable PIE on FreeBSD/ia64, otherwise sudo will segfault.

--HG--
branch : 1.7

12 years agoFor PERM_ROOT set egid to 0 so log files are not created with the
Todd C. Miller [Tue, 13 Nov 2012 16:20:35 +0000 (11:20 -0500)]
For PERM_ROOT set egid to 0 so log files are not created with the
gid of the user.

--HG--
branch : 1.7

12 years agoSet gid to 0 when creating I/O log directories.
Todd C. Miller [Tue, 13 Nov 2012 16:03:48 +0000 (11:03 -0500)]
Set gid to 0 when creating I/O log directories.

--HG--
branch : 1.7

12 years agosync with upstream
Todd C. Miller [Tue, 13 Nov 2012 14:46:47 +0000 (09:46 -0500)]
sync with upstream

--HG--
branch : 1.7

12 years agoAdd support for SUDO_PREINSTALL_CMD so we can correct the LDAP lib
Todd C. Miller [Tue, 13 Nov 2012 14:44:32 +0000 (09:44 -0500)]
Add support for SUDO_PREINSTALL_CMD so we can correct the LDAP lib
path for HP-UX SOM binaries.

--HG--
branch : 1.7

12 years agoMention HP-UX pam.conf settings.
Todd C. Miller [Fri, 28 Sep 2012 13:05:40 +0000 (09:05 -0400)]
Mention HP-UX pam.conf settings.

--HG--
branch : 1.7

12 years agoFix running commands that need the terminal in the background when
Todd C. Miller [Mon, 24 Sep 2012 19:09:32 +0000 (15:09 -0400)]
Fix running commands that need the terminal in the background when
I/O logging is enabled.  E.g. "sudo vi &".  When the command is
foregrounded, it will now resume properly.

--HG--
branch : 1.7

12 years agoAdded tag SUDO_1_7_10p3 for changeset 235ca8006055
Todd C. Miller [Wed, 19 Sep 2012 18:37:48 +0000 (14:37 -0400)]
Added tag SUDO_1_7_10p3 for changeset 235ca8006055

--HG--
branch : 1.7

12 years agoUse 1/0 not TRUE/FALSE. SUDO_1_7_10p3
Todd C. Miller [Wed, 19 Sep 2012 18:37:21 +0000 (14:37 -0400)]
Use 1/0 not TRUE/FALSE.

--HG--
branch : 1.7

12 years agosudo 1.7.10p3
Todd C. Miller [Tue, 18 Sep 2012 14:03:28 +0000 (10:03 -0400)]
sudo 1.7.10p3

--HG--
branch : 1.7

12 years agoAvoid calling fclose(NULL) in the error path when we cannot open an
Todd C. Miller [Tue, 18 Sep 2012 14:02:13 +0000 (10:02 -0400)]
Avoid calling fclose(NULL) in the error path when we cannot open an
I/O log file.

--HG--
branch : 1.7

12 years agoDon't use embedded newline when matching, use \n. This got expanded
Todd C. Miller [Tue, 18 Sep 2012 02:10:23 +0000 (22:10 -0400)]
Don't use embedded newline when matching, use \n.  This got expanded
at some point.  Bug #573

--HG--
branch : 1.7

12 years agoFall back on lstat(2) if d_type in struct dirent is DT_UNKNOWN.
Todd C. Miller [Mon, 17 Sep 2012 17:42:48 +0000 (13:42 -0400)]
Fall back on lstat(2) if d_type in struct dirent is DT_UNKNOWN.
Not all file systems support d_type.  Bug #572

--HG--
branch : 1.7

12 years agoAdded tag SUDO_1_7_10p2 for changeset 60d2336634f5
Todd C. Miller [Mon, 17 Sep 2012 01:07:00 +0000 (21:07 -0400)]
Added tag SUDO_1_7_10p2 for changeset 60d2336634f5

--HG--
branch : 1.7

12 years agoSudo 1.7.10p2 SUDO_1_7_10p2
Todd C. Miller [Mon, 17 Sep 2012 01:06:51 +0000 (21:06 -0400)]
Sudo 1.7.10p2

--HG--
branch : 1.7

12 years agoWhen setting the signal handler for SIGTSTP to the default value
Todd C. Miller [Mon, 17 Sep 2012 01:05:54 +0000 (21:05 -0400)]
When setting the signal handler for SIGTSTP to the default value
in non-I/O log mode, store the old handler value for when we restore
it after resume.

--HG--
branch : 1.7

12 years agoAdded tag SUDO_1_7_10p1 for changeset a8330024abe7
Todd C. Miller [Wed, 12 Sep 2012 19:34:03 +0000 (15:34 -0400)]
Added tag SUDO_1_7_10p1 for changeset a8330024abe7

--HG--
branch : 1.7

12 years agoMention support for SUCCESS=return in /etc/nsswitch.conf SUDO_1_7_10p1
Todd C. Miller [Wed, 12 Sep 2012 19:13:56 +0000 (15:13 -0400)]
Mention support for SUCCESS=return in /etc/nsswitch.conf

--HG--
branch : 1.7

12 years agosudo 1.7.10p1
Todd C. Miller [Wed, 12 Sep 2012 18:37:38 +0000 (14:37 -0400)]
sudo 1.7.10p1

--HG--
branch : 1.7

12 years agoAvoid setting LOGNAME, USER and USERNAME variables twice when
Todd C. Miller [Tue, 11 Sep 2012 14:26:26 +0000 (10:26 -0400)]
Avoid setting LOGNAME, USER and USERNAME variables twice when
set_logname is enabled.

--HG--
branch : 1.7

12 years agoFix duplicate detection in sudo_putenv(), do not prune out the
Todd C. Miller [Tue, 11 Sep 2012 14:25:07 +0000 (10:25 -0400)]
Fix duplicate detection in sudo_putenv(), do not prune out the
variable we just set when overwriting an existing instance.
Fixes bug #570

--HG--
branch : 1.7

12 years agoAdd support for [SUCCESS=return] in nsswitch.conf; from Daniel Kopecek
Todd C. Miller [Tue, 4 Sep 2012 13:29:49 +0000 (09:29 -0400)]
Add support for [SUCCESS=return] in nsswitch.conf; from Daniel Kopecek

--HG--
branch : 1.7