]> granicus.if.org Git - sudo/log
sudo
12 years agoActive Directory apparently requires that tenths of a second be
Todd C. Miller [Mon, 30 Jul 2012 15:15:14 +0000 (11:15 -0400)]
Active Directory apparently requires that tenths of a second be
present in a date so append .0 to the "now" value in the time filter.
Also remove space for the global AND from TIMEFILTER_LENGTH since
it was not being used consistently.  Buffers of TIMEFILTER_LENGTH
now need to account for the terminating NUL byte.

--HG--
branch : 1.7

12 years agoRemove pod versinons of HISTORY and LICENSE as they were not being
Todd C. Miller [Sun, 29 Jul 2012 20:30:06 +0000 (16:30 -0400)]
Remove pod versinons of HISTORY and LICENSE as they were not being
kept in sync.

--HG--
branch : 1.7

12 years agoSync with trunk version.
Todd C. Miller [Sun, 29 Jul 2012 20:29:23 +0000 (16:29 -0400)]
Sync with trunk version.

--HG--
branch : 1.7

12 years agoFix errors introduced when sudoNotBefore, sudoNotAfter and sudoOrder
Todd C. Miller [Fri, 27 Jul 2012 18:26:25 +0000 (14:26 -0400)]
Fix errors introduced when sudoNotBefore, sudoNotAfter and sudoOrder
were added.  From David Hicks.

--HG--
branch : 1.7

12 years agoMore minor costmetic fixes.
Todd C. Miller [Wed, 18 Jul 2012 13:22:43 +0000 (09:22 -0400)]
More minor costmetic fixes.

--HG--
branch : 1.7

12 years agoMinor cosmetic fixes.
Todd C. Miller [Thu, 12 Jul 2012 19:17:10 +0000 (15:17 -0400)]
Minor cosmetic fixes.

--HG--
branch : 1.7

12 years agoDo not set a resource limit to zero when we are unable to fetch a
Todd C. Miller [Fri, 6 Jul 2012 14:10:23 +0000 (10:10 -0400)]
Do not set a resource limit to zero when we are unable to fetch a
value from /etc/security/limits.

--HG--
branch : 1.7

12 years agoAdd "Provides: sudo" to debian sudo-ldap package
Todd C. Miller [Thu, 5 Jul 2012 13:34:30 +0000 (09:34 -0400)]
Add "Provides: sudo" to debian sudo-ldap package

--HG--
branch : 1.7

12 years agoOnly check for pie support when using gcc.
Todd C. Miller [Mon, 2 Jul 2012 15:19:07 +0000 (11:19 -0400)]
Only check for pie support when using gcc.

--HG--
branch : 1.7

12 years agoAdd configure check for building PIE executables instead of doing
Todd C. Miller [Mon, 2 Jul 2012 14:12:32 +0000 (10:12 -0400)]
Add configure check for building PIE executables instead of doing
it in mkpkg.

--HG--
branch : 1.7

12 years agoMacOS pp backend doesn't like modes longer than 4 characters.
Todd C. Miller [Mon, 2 Jul 2012 12:25:02 +0000 (08:25 -0400)]
MacOS pp backend doesn't like modes longer than 4 characters.

--HG--
branch : 1.7

12 years agofix version
Todd C. Miller [Fri, 29 Jun 2012 16:59:28 +0000 (12:59 -0400)]
fix version

--HG--
branch : 1.7

12 years agoDocument improved Tivoli Directory Server support.
Todd C. Miller [Fri, 29 Jun 2012 16:57:46 +0000 (12:57 -0400)]
Document improved Tivoli Directory Server support.

--HG--
branch : 1.7

12 years agoAdd support for ldaps using Tivoli LDAP libraries.
Todd C. Miller [Fri, 29 Jun 2012 16:55:22 +0000 (12:55 -0400)]
Add support for ldaps using Tivoli LDAP libraries.
Add ldap.conf option to specify Tivoli key db password.
Allow TLS ciphers to be configured for Tivoli.

--HG--
branch : 1.7

12 years agoTivoli Directory Server 6.3 libs always return a (bogus) error
Todd C. Miller [Thu, 28 Jun 2012 19:45:15 +0000 (15:45 -0400)]
Tivoli Directory Server 6.3 libs always return a (bogus) error
when setting LDAP_OPT_CONNECT_TIMEOUT.

--HG--
branch : 1.7

12 years agoUpdate
Todd C. Miller [Thu, 28 Jun 2012 19:01:09 +0000 (15:01 -0400)]
Update

--HG--
branch : 1.7

12 years agoTreat LDAP_OPT_CONNECT_TIMEOUT (Tivoli Directory Server 6.3) the
Todd C. Miller [Thu, 28 Jun 2012 18:58:34 +0000 (14:58 -0400)]
Treat LDAP_OPT_CONNECT_TIMEOUT (Tivoli Directory Server 6.3) the
same as LDAP_OPT_CONNECT_TIMEOUT (OpenSSH).
Don't make failure to a set an ldap option fatal.

--HG--
branch : 1.7

12 years agoUse MAX_UID_T_LEN + 1 for uid/gid buffers, not MAX_UID_T_LEN to
Todd C. Miller [Wed, 27 Jun 2012 17:43:30 +0000 (13:43 -0400)]
Use MAX_UID_T_LEN + 1 for uid/gid buffers, not MAX_UID_T_LEN to
prevent potential truncation.  Bug #562.

--HG--
branch : 1.7

12 years agoIf installing with installp, error out if there is already an
Todd C. Miller [Mon, 25 Jun 2012 20:16:34 +0000 (16:16 -0400)]
If installing with installp, error out if there is already an
instance of the rpm package installed.

--HG--
branch : 1.7

12 years agoAdd --disable-nls for AIX
Todd C. Miller [Mon, 25 Jun 2012 18:00:15 +0000 (14:00 -0400)]
Add --disable-nls for AIX

--HG--
branch : 1.7

12 years agoDebian sudo-ldap packages should now depend on libldap-2.4-2, not
Todd C. Miller [Fri, 22 Jun 2012 14:57:46 +0000 (10:57 -0400)]
Debian sudo-ldap packages should now depend on libldap-2.4-2, not
libldap2.

--HG--
branch : 1.7

12 years agoAdd Homepage and Bugs to debian control file.
Todd C. Miller [Thu, 21 Jun 2012 17:41:47 +0000 (13:41 -0400)]
Add Homepage and Bugs to debian control file.

--HG--
branch : 1.7

12 years agoremove obsolete comment
Todd C. Miller [Thu, 21 Jun 2012 12:51:43 +0000 (08:51 -0400)]
remove obsolete comment

--HG--
branch : 1.7

12 years agofix typo when setting aix_freeware
Todd C. Miller [Wed, 20 Jun 2012 18:18:20 +0000 (14:18 -0400)]
fix typo when setting aix_freeware

--HG--
branch : 1.7

12 years agoAdditional ${foo} -> $(foo) Makefile tweaks.
Todd C. Miller [Mon, 18 Jun 2012 13:50:59 +0000 (09:50 -0400)]
Additional ${foo} -> $(foo) Makefile tweaks.

--HG--
branch : 1.7

12 years agoRe-merge argv escaping for "sudo -s command" from trunk to fix a
Todd C. Miller [Fri, 15 Jun 2012 18:25:38 +0000 (14:25 -0400)]
Re-merge argv escaping for "sudo -s command" from trunk to fix a
NULL pointer dereference.

--HG--
branch : 1.7

12 years agoInstall AIX packages under /opt/freeware with links in /usr/bin and
Todd C. Miller [Mon, 11 Jun 2012 19:07:06 +0000 (15:07 -0400)]
Install AIX packages under /opt/freeware with links in /usr/bin and
/usr/sbin.  This matches the layout of the sudo package from AIX
freeware.

--HG--
branch : 1.7

12 years agoInstall shared objects with mode 0644 except on HP-UX which needs
Todd C. Miller [Mon, 11 Jun 2012 14:45:53 +0000 (10:45 -0400)]
Install shared objects with mode 0644 except on HP-UX which needs
the executable bit set.

--HG--
branch : 1.7

12 years agoMake installed file modes consistent with the file modes in the
Todd C. Miller [Mon, 11 Jun 2012 14:16:32 +0000 (10:16 -0400)]
Make installed file modes consistent with the file modes in the
sudo package.

--HG--
branch : 1.7

12 years agoAdd "%:" prefix when talking about QAS non-Unix group support.
Todd C. Miller [Fri, 8 Jun 2012 17:29:10 +0000 (13:29 -0400)]
Add "%:" prefix when talking about QAS non-Unix group support.

--HG--
branch : 1.7

12 years agoFix packaging of symbolic links on HP-UX when the link source already
Todd C. Miller [Fri, 8 Jun 2012 17:27:22 +0000 (13:27 -0400)]
Fix packaging of symbolic links on HP-UX when the link source already
exists in the filesystem.

--HG--
branch : 1.7

12 years agoOnly specify prefix if we are overriding the default value.
Todd C. Miller [Fri, 8 Jun 2012 17:26:26 +0000 (13:26 -0400)]
Only specify prefix if we are overriding the default value.
Fixes the man dir (/usr/local/man vs. /usr/local/share/man).

--HG--
branch : 1.7

12 years agoFix license file path for Mac OS X.
Todd C. Miller [Fri, 8 Jun 2012 14:34:59 +0000 (10:34 -0400)]
Fix license file path for Mac OS X.

--HG--
branch : 1.7

12 years agoFix setting of sudoedit_man variable.
Todd C. Miller [Fri, 8 Jun 2012 13:38:00 +0000 (09:38 -0400)]
Fix setting of sudoedit_man variable.

--HG--
branch : 1.7

12 years agoEcho the command when linking the sudoedit manual.
Todd C. Miller [Fri, 8 Jun 2012 13:37:16 +0000 (09:37 -0400)]
Echo the command when linking the sudoedit manual.

--HG--
branch : 1.7

12 years agoMention sudoreplay stdout playback improvements.
Todd C. Miller [Thu, 7 Jun 2012 18:21:15 +0000 (14:21 -0400)]
Mention sudoreplay stdout playback improvements.

--HG--
branch : 1.7

12 years agoBuild .deb packages with selinux support.
Todd C. Miller [Thu, 7 Jun 2012 18:02:10 +0000 (14:02 -0400)]
Build .deb packages with selinux support.

--HG--
branch : 1.7

12 years agoDon't list paths for unstripped binaries in the lintial overrides.
Todd C. Miller [Mon, 4 Jun 2012 19:06:34 +0000 (15:06 -0400)]
Don't list paths for unstripped binaries in the lintial overrides.

--HG--
branch : 1.7

12 years agoAdd support for Installed-Size header in control file, required by
Todd C. Miller [Mon, 4 Jun 2012 18:53:58 +0000 (14:53 -0400)]
Add support for Installed-Size header in control file, required by
newer debian versions.

--HG--
branch : 1.7

12 years agoFix extended description in .deb files.
Todd C. Miller [Mon, 4 Jun 2012 17:26:54 +0000 (13:26 -0400)]
Fix extended description in .deb files.

--HG--
branch : 1.7

12 years agoAdd Depends, Replaces and Conflicts headers for .deb packages.
Todd C. Miller [Mon, 4 Jun 2012 17:26:31 +0000 (13:26 -0400)]
Add Depends, Replaces and Conflicts headers for .deb packages.

--HG--
branch : 1.7

12 years agoIf there are no privs to print, write the message to the lbuf instead
Todd C. Miller [Mon, 4 Jun 2012 13:19:56 +0000 (09:19 -0400)]
If there are no privs to print, write the message to the lbuf instead
of printing it directly.

--HG--
branch : 1.7

12 years agoFix mismerge, no sudoers.so in 1.7
Todd C. Miller [Thu, 31 May 2012 20:59:49 +0000 (16:59 -0400)]
Fix mismerge, no sudoers.so in 1.7

--HG--
branch : 1.7

12 years agoQuiet lintian warnings for .deb files:
Todd C. Miller [Thu, 31 May 2012 20:58:22 +0000 (16:58 -0400)]
Quiet lintian warnings for .deb files:

 * install sudoedit and the sudoedit manual as symbolic links, not
   hard links and package them as such.
 * set -e in %pos and %preun for debian
 * add lintian overrides file
 * fix modes to be more in line with what Debian expects
 * add correct section
 * install LICENSE as copyright and ChangeLog as changelog
 * create stub changelog.debian

--HG--
branch : 1.7

12 years agoReplace out of date MAN_POSTINSTALL with MANCOMPRESS and MANCOMPRESSEXT
Todd C. Miller [Thu, 31 May 2012 20:51:15 +0000 (16:51 -0400)]
Replace out of date MAN_POSTINSTALL with MANCOMPRESS and MANCOMPRESSEXT
which can be used to compress the installed manual pages.
Compress the man pages for .deb files to appease lintian.

--HG--
branch : 1.7

12 years agoBuild PIE executable on Mac OS X 10.5 and above.
Todd C. Miller [Thu, 31 May 2012 20:48:18 +0000 (16:48 -0400)]
Build PIE executable on Mac OS X 10.5 and above.

--HG--
branch : 1.7

12 years agoUse a debian-compliant package maintainer field.
Todd C. Miller [Thu, 31 May 2012 20:29:35 +0000 (16:29 -0400)]
Use a debian-compliant package maintainer field.
Fix find command to properly skip files in the DEBIAN dir when
building md5sums.

--HG--
branch : 1.7

12 years agoNo need to loop over atomic_writev(), it guarantees to write all
Todd C. Miller [Wed, 30 May 2012 14:50:02 +0000 (10:50 -0400)]
No need to loop over atomic_writev(), it guarantees to write all
data or return an error.

Fix handling of stdout/stderr that contains "\r\n" and handle a
"\r\n" pair that spans a buffer.

--HG--
branch : 1.7

12 years agoInstead of doing extra write()s when replaying stdout, build up a
Todd C. Miller [Tue, 29 May 2012 17:46:34 +0000 (13:46 -0400)]
Instead of doing extra write()s when replaying stdout, build up a
vector for writev() instead.  This results in far fewer system
calls.

--HG--
branch : 1.7

12 years agoWhen replaying a log of stdout or stderr, do newline to carriage
Todd C. Miller [Fri, 25 May 2012 20:38:55 +0000 (16:38 -0400)]
When replaying a log of stdout or stderr, do newline to carriage
return + linefeed conversion.  We cannot have termios do this for
us since we've disabled output postprocessing (POST) when setting
raw mode.

--HG--
branch : 1.7

12 years agoDon't add -fstack-protector to CFLAGS if ld gets an error trying
Todd C. Miller [Thu, 24 May 2012 15:04:42 +0000 (11:04 -0400)]
Don't add -fstack-protector to CFLAGS if ld gets an error trying
to ust it.  This can happen when libssp cannot be found.

--HG--
branch : 1.7

12 years agoMention hardening by default and how to disable.
Todd C. Miller [Thu, 24 May 2012 14:21:59 +0000 (10:21 -0400)]
Mention hardening by default and how to disable.

--HG--
branch : 1.7

12 years agoWhen checking for -fstack-protector, treat warnings as fatal errors.
Todd C. Miller [Wed, 23 May 2012 21:13:36 +0000 (17:13 -0400)]
When checking for -fstack-protector, treat warnings as fatal errors.

--HG--
branch : 1.7

12 years agoUse TRUE/FALSE as 3rd argument to sudo_ttyname_scan()
Todd C. Miller [Wed, 23 May 2012 20:14:00 +0000 (16:14 -0400)]
Use TRUE/FALSE as 3rd argument to sudo_ttyname_scan()

--HG--
branch : 1.7

12 years agoregen
Todd C. Miller [Wed, 23 May 2012 19:59:04 +0000 (15:59 -0400)]
regen

--HG--
branch : 1.7

12 years agomissing "and"
Todd C. Miller [Wed, 23 May 2012 19:58:33 +0000 (15:58 -0400)]
missing "and"

--HG--
branch : 1.7

12 years agoUpdate for sudo 1.7.10
Todd C. Miller [Wed, 23 May 2012 19:56:17 +0000 (15:56 -0400)]
Update for sudo 1.7.10

--HG--
branch : 1.7

12 years agoDon't prompt for a password if the user is in the exempt group, is
Todd C. Miller [Wed, 23 May 2012 19:37:24 +0000 (15:37 -0400)]
Don't prompt for a password if the user is in the exempt group, is
root, or is running the command as themselves even if the -k option
was specified.  This makes "sudo -k command" consistent with the
behavior one would get if the user ran "sudo -k" immediately before
running the command.

--HG--
branch : 1.7

12 years agoNo longer throw an error if sudoers is a symbolic link. Deprecated
Todd C. Miller [Wed, 23 May 2012 19:33:25 +0000 (15:33 -0400)]
No longer throw an error if sudoers is a symbolic link.  Deprecated
the --with-stow option as that is now (effectively) the default.

--HG--
branch : 1.7

12 years agoTreat a tty read failure like EOF as it usually means the pty has
Todd C. Miller [Wed, 23 May 2012 19:09:30 +0000 (15:09 -0400)]
Treat a tty read failure like EOF as it usually means the pty has
gone away.  Handle write() on the tty returning EIO.

--HG--
branch : 1.7

12 years agoLinux select() may return ENOMEM if there is a kernel resource
Todd C. Miller [Wed, 23 May 2012 19:06:11 +0000 (15:06 -0400)]
Linux select() may return ENOMEM if there is a kernel resource
shortage.  Older Solaris select() may return EIO instead of EBADF
when the tty goes away.  If we get an unhandled select() failure,
kill the child and exit cleanly.

--HG--
branch : 1.7

12 years agoIf select() return EBADF in the main event loop, one of the ttys
Todd C. Miller [Wed, 23 May 2012 19:00:22 +0000 (15:00 -0400)]
If select() return EBADF in the main event loop, one of the ttys
must have gone away so perform any I/O we can and close the bad
fds.

--HG--
branch : 1.7

12 years agoFix compilation when I/O logging support is not compiled in.
Todd C. Miller [Wed, 23 May 2012 18:57:18 +0000 (14:57 -0400)]
Fix compilation when I/O logging support is not compiled in.

--HG--
branch : 1.7

12 years agoIgnore SIGTTIN and SIGTTOU in main sudo process when I/O logging.
Todd C. Miller [Wed, 23 May 2012 18:21:07 +0000 (14:21 -0400)]
Ignore SIGTTIN and SIGTTOU in main sudo process when I/O logging.
It is better to receive EIO from read()/write() than to be suspended
when we don't expect it.  Fixes a problem when our terminal is
revoked which can happen when, e.g. our sshd is killed unceremoniously.
Also, only change the value of "alive" from true to false, never
from false to true.  It is possible for us to receive notification
of the child having stopped after it is already dead.  This does
not mean it has risen from the grave.

--HG--
branch : 1.7

12 years agoDon't try to restore the terminal if we are not the foreground
Todd C. Miller [Wed, 23 May 2012 18:17:41 +0000 (14:17 -0400)]
Don't try to restore the terminal if we are not the foreground
process.  Otherwise, we may be stopped by SIGTTOU when we try to
update the terminal settings when cleaning up.

--HG--
branch : 1.7

12 years agoDon't need zero_bytes() after ecalloc()
Todd C. Miller [Wed, 23 May 2012 17:07:00 +0000 (13:07 -0400)]
Don't need zero_bytes() after ecalloc()

--HG--
branch : 1.7

12 years agoIn Solaris 11, /dev/pts under the "dev" filesystem, not "devices".
Todd C. Miller [Wed, 23 May 2012 16:54:00 +0000 (12:54 -0400)]
In Solaris 11, /dev/pts under the "dev" filesystem, not "devices".
Update tty_is_devpts() to match so we can determine when the tty has
been reused.

--HG--
branch : 1.7

12 years agoAllow the -k flag to be used along with the -i and -s flags.
Todd C. Miller [Wed, 23 May 2012 16:50:37 +0000 (12:50 -0400)]
Allow the -k flag to be used along with the -i and -s flags.

--HG--
branch : 1.7

12 years agoRototill code to determine the tty. For Linux, we now look up the
Todd C. Miller [Wed, 23 May 2012 16:46:39 +0000 (12:46 -0400)]
Rototill code to determine the tty.  For Linux, we now look up the
tty device in /proc/pid/stat instead of trying to open /proc/pid/fd/[0-2].
The sudo_ttyname_dev() function maps the given device number to a
string.  On BSD, we can use devname().  On Solaris, _ttyname_dev()
does what we want.  For others we do a breadth-first search of /dev.

--HG--
branch : 1.7

12 years agoDon't try to erealloc() a potentially freed pointer.
Todd C. Miller [Wed, 23 May 2012 15:24:19 +0000 (11:24 -0400)]
Don't try to erealloc() a potentially freed pointer.

--HG--
branch : 1.7

12 years agoPrefer KERN_PROC2 over KERN_PROC. Fixes compilation on some versions
Todd C. Miller [Wed, 23 May 2012 15:23:31 +0000 (11:23 -0400)]
Prefer KERN_PROC2 over KERN_PROC.  Fixes compilation on some versions
of OpenBSD versions that have KERN_PROC2 but not KERN_PROC.

--HG--
branch : 1.7

12 years agoClarify what "sudoreplay -l" displays and mention that it is sorted.
Todd C. Miller [Wed, 23 May 2012 15:20:11 +0000 (11:20 -0400)]
Clarify what "sudoreplay -l" displays and mention that it is sorted.

--HG--
branch : 1.7

12 years agoiIf struct dirent has d_type, use it to avoid an extra stat().
Todd C. Miller [Wed, 23 May 2012 15:14:41 +0000 (11:14 -0400)]
iIf struct dirent has d_type, use it to avoid an extra stat().

--HG--
branch : 1.7

12 years agoSort output of "sudoreplay -l"
Todd C. Miller [Wed, 23 May 2012 15:05:11 +0000 (11:05 -0400)]
Sort output of "sudoreplay -l"

--HG--
branch : 1.7

12 years agoIf I/O log file includes rows + cols, warn if the user's tty is
Todd C. Miller [Wed, 23 May 2012 14:55:54 +0000 (10:55 -0400)]
If I/O log file includes rows + cols, warn if the user's tty is
not big enough.

--HG--
branch : 1.7

12 years agoFix printing of TSID in "sudoreplay -l"
Todd C. Miller [Wed, 23 May 2012 14:32:38 +0000 (10:32 -0400)]
Fix printing of TSID in "sudoreplay -l"

--HG--
branch : 1.7

12 years agoFix printf format warning (time_t vs. long)
Todd C. Miller [Wed, 23 May 2012 14:31:14 +0000 (10:31 -0400)]
Fix printf format warning (time_t vs. long)

--HG--
branch : 1.7

12 years agoAdd support for replaying sessions from sudo 1.8 when iolog_file
Todd C. Miller [Wed, 23 May 2012 14:28:58 +0000 (10:28 -0400)]
Add support for replaying sessions from sudo 1.8 when iolog_file
is set to something other than %{seq}.

--HG--
branch : 1.7

12 years agotypo fix in comment
Todd C. Miller [Tue, 22 May 2012 20:28:36 +0000 (16:28 -0400)]
typo fix in comment

--HG--
branch : 1.7

12 years agoAdd entry for SSL LDAP errors on Mozilla SDKs when the cert dir is
Todd C. Miller [Tue, 22 May 2012 20:27:34 +0000 (16:27 -0400)]
Add entry for SSL LDAP errors on Mozilla SDKs when the cert dir is
not specified.

--HG--
branch : 1.7

12 years agoMatch CentOS 6.0
Todd C. Miller [Tue, 22 May 2012 20:25:50 +0000 (16:25 -0400)]
Match CentOS 6.0

--HG--
branch : 1.7

12 years agoFix test for -z relro
Todd C. Miller [Tue, 22 May 2012 19:46:00 +0000 (15:46 -0400)]
Fix test for -z relro

--HG--
branch : 1.7

12 years agoBuild with -fstack-protector and link with -zrelo where supported.
Todd C. Miller [Tue, 22 May 2012 17:26:38 +0000 (13:26 -0400)]
Build with -fstack-protector and link with -zrelo where supported.
Added --disable-hardening option to disable hardening options.

--HG--
branch : 1.7

12 years agoIf sudoers_mode is group-readable but the actual sudoers file is
Todd C. Miller [Mon, 21 May 2012 18:24:27 +0000 (14:24 -0400)]
If sudoers_mode is group-readable but the actual sudoers file is
not, open the file as uid 0, not uid 1.  This fixes a problem when
sudoers has a more restrictive mode than what sudo expects to find.
In older versions, sudo would silently chmod the file to add the
group-readable bit.

--HG--
branch : 1.7

12 years agoFix #includedir; from Mike Frysinger
Todd C. Miller [Thu, 17 May 2012 19:44:22 +0000 (15:44 -0400)]
Fix #includedir; from Mike Frysinger

--HG--
branch : 1.7

12 years agoRelax the user/group/mode checks on sudoers files. As long as the
Todd C. Miller [Thu, 17 May 2012 16:09:56 +0000 (12:09 -0400)]
Relax the user/group/mode checks on sudoers files.  As long as the
file is owned by the right user, not world-writable and not writable
by a group other than the one specified at configure time (gid 0
byile is considered OK.  Note that visudo will still
set the mode to the value specified at configure time.

--HG--
branch : 1.7

12 years agoRelax the user/group/mode checks on sudoers files. As long as the
Todd C. Miller [Thu, 17 May 2012 16:07:18 +0000 (12:07 -0400)]
Relax the user/group/mode checks on sudoers files.  As long as the
file is owned by the right user, not world-writable and not writable
by a group other than the one specified at configure time (gid 0
byile is considered OK.  Note that visudo will still
set the mode to the value specified at configure time.

--HG--
branch : 1.7

12 years agoDelete creds after closing the PAM session.
Todd C. Miller [Thu, 17 May 2012 15:45:12 +0000 (11:45 -0400)]
Delete creds after closing the PAM session.

--HG--
branch : 1.7

12 years agoFix typo in last commit
Todd C. Miller [Thu, 17 May 2012 15:36:24 +0000 (11:36 -0400)]
Fix typo in last commit

--HG--
branch : 1.7

12 years agoInstead of treating ^C from tgetpass() specially, always
Todd C. Miller [Thu, 17 May 2012 15:23:54 +0000 (11:23 -0400)]
Instead of treating ^C from tgetpass() specially, always
return AUTH_INTR if tgetpass() returned NULL.
Treat PAM_AUTHINFO_UNAVAIL like PAM_AUTH_ERR which Mac OS X
returns this when there is no tty.

--HG--
branch : 1.7

12 years agoNeed to call ldapssl_clientauth_init() for start_tls on Mozilla
Todd C. Miller [Thu, 17 May 2012 15:04:33 +0000 (11:04 -0400)]
Need to call ldapssl_clientauth_init() for start_tls on Mozilla
LDAP SDK.

--HG--
branch : 1.7

12 years agoFix printing of invalid uri
Todd C. Miller [Thu, 17 May 2012 15:03:53 +0000 (11:03 -0400)]
Fix printing of invalid uri

--HG--
branch : 1.7

12 years agoProvide a more useful error message if using a Mozilla-style LDAP
Todd C. Miller [Thu, 17 May 2012 15:03:18 +0000 (11:03 -0400)]
Provide a more useful error message if using a Mozilla-style LDAP
SDK and you forgot to specify TLS_CERT in ldap.conf.

--HG--
branch : 1.7

12 years agoSplit global and per-connection LDAP options into separate arrays.
Todd C. Miller [Thu, 17 May 2012 14:58:44 +0000 (10:58 -0400)]
Split global and per-connection LDAP options into separate arrays.
Set global LDAP options before calling ldap_initialize() or ldap_init().
After we have an LDAP handle, set the per-connection options.
Fixes a problem with OpenLDAP using the nss crypto backend; bug #342

--HG--
branch : 1.7

12 years agoQuiet some compiler warnings
Todd C. Miller [Wed, 16 May 2012 20:06:30 +0000 (16:06 -0400)]
Quiet some compiler warnings

--HG--
branch : 1.7

12 years agoFix compiler warnings on some platforms and provide a better method
Todd C. Miller [Wed, 16 May 2012 19:50:42 +0000 (15:50 -0400)]
Fix compiler warnings on some platforms and provide a better method
of defeating gcc's warn_unused_result attribute.

--HG--
branch : 1.7

12 years agoAdded tag SUDO_1_7_9p1 for changeset 26d9603eb5af
Todd C. Miller [Tue, 15 May 2012 14:05:10 +0000 (10:05 -0400)]
Added tag SUDO_1_7_9p1 for changeset 26d9603eb5af

--HG--
branch : 1.7

12 years agoUpdate for sudo 1.7.9p1 SUDO_1_7_9p1
Todd C. Miller [Mon, 14 May 2012 18:49:11 +0000 (14:49 -0400)]
Update for sudo 1.7.9p1

--HG--
branch : 1.7

12 years agoAdd missing break between AF_INET and AF_INET6 in addr_matches_if_netmask()
Todd C. Miller [Mon, 14 May 2012 18:47:47 +0000 (14:47 -0400)]
Add missing break between AF_INET and AF_INET6 in addr_matches_if_netmask()

--HG--
branch : 1.7

12 years agoThe pointer to the siginfo_t struct in a signal handler may be NULL.
Todd C. Miller [Fri, 11 May 2012 15:00:07 +0000 (11:00 -0400)]
The pointer to the siginfo_t struct in a signal handler may be NULL.

--HG--
branch : 1.7