]> granicus.if.org Git - sudo/log
sudo
12 years agoIf we are not running with an effective uid of 0, try to give the
Todd C. Miller [Fri, 30 Mar 2012 16:58:54 +0000 (12:58 -0400)]
If we are not running with an effective uid of 0, try to give the
user enough information to debug the problem.

--HG--
branch : 1.7

12 years agoIf the "timestampowner" user cannot be resolved, use uid 0 instead
Todd C. Miller [Fri, 30 Mar 2012 16:51:32 +0000 (12:51 -0400)]
If the "timestampowner" user cannot be resolved, use uid 0 instead
of exiting with a fatal error.

--HG--
branch : 1.7

12 years agoFor PAM authentication, merge the PAM environment with the user
Todd C. Miller [Fri, 30 Mar 2012 16:47:42 +0000 (12:47 -0400)]
For PAM authentication, merge the PAM environment with the user
environment in pam_begin_session().

--HG--
branch : 1.7

12 years agoQuiet compiler warning when SELinux is enabled.
Todd C. Miller [Fri, 30 Mar 2012 16:46:37 +0000 (12:46 -0400)]
Quiet compiler warning when SELinux is enabled.

--HG--
branch : 1.7

12 years agoDon't read /etc/environment on Linux when using PAM, PAM should set
Todd C. Miller [Fri, 30 Mar 2012 16:35:02 +0000 (12:35 -0400)]
Don't read /etc/environment on Linux when using PAM, PAM should set
the environment variables as needed via pam_env.

--HG--
branch : 1.7

12 years agoAdd check for pam_getenvlist()
Todd C. Miller [Fri, 30 Mar 2012 16:32:47 +0000 (12:32 -0400)]
Add check for pam_getenvlist()

--HG--
branch : 1.7

12 years agoUse normal error path if unable to set sudoers gid.
Todd C. Miller [Fri, 30 Mar 2012 16:30:36 +0000 (12:30 -0400)]
Use normal error path if unable to set sudoers gid.

--HG--
branch : 1.7

12 years agoMake sudoersdir relative to PKG_INSTALL_ROOT for Solaris.
Todd C. Miller [Fri, 30 Mar 2012 16:27:12 +0000 (12:27 -0400)]
Make sudoersdir relative to PKG_INSTALL_ROOT for Solaris.
Make sure sudoers file is writable before trying to edit it.

--HG--
branch : 1.7

12 years agoAdd execvpe(), exect(), posix_spawn() and posix_spawnp() wrappers
Todd C. Miller [Fri, 30 Mar 2012 13:44:25 +0000 (09:44 -0400)]
Add execvpe(), exect(), posix_spawn() and posix_spawnp() wrappers
to sudo_noexec.c.

--HG--
branch : 1.7

12 years agoUpdate zlib to version 1.2.6
Todd C. Miller [Thu, 29 Mar 2012 18:30:13 +0000 (14:30 -0400)]
Update zlib to version 1.2.6

--HG--
branch : 1.7

12 years agoIf there is nothing to read from the askpass program, set errno to
Todd C. Miller [Tue, 27 Mar 2012 16:39:11 +0000 (12:39 -0400)]
If there is nothing to read from the askpass program, set errno to
EINTR.  This makes the cancel button behave like the user entered
^C at the password prompt when PAM is used.

--HG--
branch : 1.7

12 years agoAdded tag SUDO_1_7_9 for changeset d896e8043fe6
Todd C. Miller [Fri, 17 Feb 2012 18:47:43 +0000 (13:47 -0500)]
Added tag SUDO_1_7_9 for changeset d896e8043fe6

--HG--
branch : 1.7

12 years agoBuild flat packages, not package bundles, on Mac OS X. SUDO_1_7_9
Todd C. Miller [Thu, 16 Feb 2012 18:13:19 +0000 (13:13 -0500)]
Build flat packages, not package bundles, on Mac OS X.

--HG--
branch : 1.7

12 years agoMake sudo_goodpath() return value boolean
Todd C. Miller [Fri, 10 Feb 2012 19:56:41 +0000 (14:56 -0500)]
Make sudo_goodpath() return value boolean

--HG--
branch : 1.7

12 years agoDon't permanently add -D_FORTIFY_SOURCE=2 to CPPFLAGS
Todd C. Miller [Fri, 10 Feb 2012 19:29:28 +0000 (14:29 -0500)]
Don't permanently add -D_FORTIFY_SOURCE=2 to CPPFLAGS

--HG--
branch : 1.7

12 years agoAdd Mac OS X support, printing the latest chunk of the NEWS file
Todd C. Miller [Fri, 10 Feb 2012 17:59:58 +0000 (12:59 -0500)]
Add Mac OS X support, printing the latest chunk of the NEWS file
and the license text in the installer.

--HG--
branch : 1.7

12 years agoAdd explicit file modes that match those used by "make install"
Todd C. Miller [Fri, 10 Feb 2012 17:55:13 +0000 (12:55 -0500)]
Add explicit file modes that match those used by "make install"

--HG--
branch : 1.7

12 years agoSync with upstream for Mac OS X fixes.
Todd C. Miller [Fri, 10 Feb 2012 17:52:52 +0000 (12:52 -0500)]
Sync with upstream for Mac OS X fixes.

--HG--
branch : 1.7

12 years agoGot back to using "install-sh -M" for files installed as non-readable
Todd C. Miller [Fri, 10 Feb 2012 17:52:22 +0000 (12:52 -0500)]
Got back to using "install-sh -M" for files installed as non-readable
by owner.  This fixes "make install" as non-root for package building.

--HG--
branch : 1.7

12 years agoUse -m not -M for install-sh for everything except setuid.
Todd C. Miller [Thu, 9 Feb 2012 16:13:40 +0000 (11:13 -0500)]
Use -m not -M for install-sh for everything except setuid.
If timedir parent doesn't exist, use default dir mode, not 0700.

--HG--
branch : 1.7

12 years agoRe-sync with upstream; no longer need a local patch.
Todd C. Miller [Tue, 7 Feb 2012 18:27:15 +0000 (13:27 -0500)]
Re-sync with upstream; no longer need a local patch.

--HG--
branch : 1.7

12 years agoAdd support for building Mac OS X packages.
Todd C. Miller [Tue, 7 Feb 2012 16:50:26 +0000 (11:50 -0500)]
Add support for building Mac OS X packages.

--HG--
branch : 1.7

12 years agoSync with upstream
Todd C. Miller [Tue, 7 Feb 2012 16:46:40 +0000 (11:46 -0500)]
Sync with upstream

--HG--
branch : 1.7

12 years agoError out if user specified --with-pam but we can't find the headers
Todd C. Miller [Wed, 1 Feb 2012 17:12:53 +0000 (12:12 -0500)]
Error out if user specified --with-pam but we can't find the headers
or library.  Also throw an error if the headers are present but the
library is not and vice versa.

--HG--
branch : 1.7

12 years agoFix the sudoers permission check when the expected sudoers mode is
Todd C. Miller [Tue, 31 Jan 2012 21:25:07 +0000 (16:25 -0500)]
Fix the sudoers permission check when the expected sudoers mode is
owner-writable.

--HG--
branch : 1.7

12 years agoVerify that we can link executables built with -D_FORTIFY_SOURCE
Todd C. Miller [Mon, 30 Jan 2012 20:03:40 +0000 (15:03 -0500)]
Verify that we can link executables built with -D_FORTIFY_SOURCE
before using it.

--HG--
branch : 1.7

12 years agoAdd rudimentary check for _FORTIFY_SOURCE support by checking for
Todd C. Miller [Mon, 30 Jan 2012 15:12:14 +0000 (10:12 -0500)]
Add rudimentary check for _FORTIFY_SOURCE support by checking for
__sprintf_chk, one of the functions used by gcc to support it.

--HG--
branch : 1.7

12 years agoadd 1.7.8p2
Todd C. Miller [Mon, 30 Jan 2012 15:11:14 +0000 (10:11 -0500)]
add 1.7.8p2

--HG--
branch : 1.7

12 years agoUpdate
Todd C. Miller [Thu, 26 Jan 2012 21:36:16 +0000 (16:36 -0500)]
Update

--HG--
branch : 1.7

12 years agoWe need to init the auth system regardless of whether we need a
Todd C. Miller [Thu, 26 Jan 2012 21:34:49 +0000 (16:34 -0500)]
We need to init the auth system regardless of whether we need a
password since we will be closing the PAM session in the monitor
process.  Fixes a crash in the monitor on Solaris; bugzilla #533

--HG--
branch : 1.7

12 years agoThe change in a1e7e31519ec that caused to exit when the monitor
Todd C. Miller [Wed, 25 Jan 2012 21:33:15 +0000 (16:33 -0500)]
The change in a1e7e31519ec that caused to exit when the monitor
dies created a race condition between the monitor exiting and the
status being read.  All we really want to do is make sure that
select() notifies us that there is a status change when the monitor
dies unexpectedly so shutdown the socketpair connected to the monitor
for writing when it dies.  That way we can still read the status
that is pending on the socket and select() on Linux will tell us
that the fd is ready.

--HG--
branch : 1.7

12 years agoAdd custom version of AC_CHECK_LIB that uses the extra libs in the
Todd C. Miller [Fri, 20 Jan 2012 15:53:12 +0000 (10:53 -0500)]
Add custom version of AC_CHECK_LIB that uses the extra libs in the
cache value name.  With this we no longer need to rely on a modified
version of autoconf.

--HG--
branch : 1.7

12 years agoBetter handling of network functions that need -lsocket -lnsl
Todd C. Miller [Thu, 19 Jan 2012 19:21:31 +0000 (14:21 -0500)]
Better handling of network functions that need -lsocket -lnsl

--HG--
branch : 1.7

12 years agoFix sh warning; use "test" instead of "["
Todd C. Miller [Tue, 17 Jan 2012 18:11:05 +0000 (13:11 -0500)]
Fix sh warning; use "test" instead of "["

--HG--
branch : 1.7

12 years agoWhen not logging I/O, use a signal handler that only forwards SIGINT,
Todd C. Miller [Tue, 17 Jan 2012 17:20:28 +0000 (12:20 -0500)]
When not logging I/O, use a signal handler that only forwards SIGINT,
SIGQUIT and SIGHUP when they are user-generated signals.  Fixes a
race in the non-I/O logging path where the command may receive two
keyboard-generated signals; one from the kernel and one from the
sudo process.

--HG--
branch : 1.7

12 years agoBack out change that put the command in its own pgrp when not logging
Todd C. Miller [Tue, 17 Jan 2012 16:22:44 +0000 (11:22 -0500)]
Back out change that put the command in its own pgrp when not logging
I/O.  It causes problems with pipelines.

--HG--
branch : 1.7

13 years agoInclude parent directories in case they don't already exist. This
Todd C. Miller [Fri, 13 Jan 2012 14:50:03 +0000 (09:50 -0500)]
Include parent directories in case they don't already exist.  This
fixes a directory permissions problem with the AIX package when the
/usr/local directories don't already exist.

--HG--
branch : 1.7

13 years agosync with git version
Todd C. Miller [Fri, 13 Jan 2012 14:06:26 +0000 (09:06 -0500)]
sync with git version

--HG--
branch : 1.7

13 years agoMove tty name lookup code to its own file.
Todd C. Miller [Fri, 13 Jan 2012 11:11:23 +0000 (06:11 -0500)]
Move tty name lookup code to its own file.

--HG--
branch : 1.7

13 years agoUpdate for sudo 1.7.9
Todd C. Miller [Thu, 12 Jan 2012 21:42:45 +0000 (16:42 -0500)]
Update for sudo 1.7.9

--HG--
branch : 1.7

13 years agoregen
Todd C. Miller [Thu, 12 Jan 2012 20:29:45 +0000 (15:29 -0500)]
regen

--HG--
branch : 1.7

13 years agoFor "visudo -c" also list include files that were checked when
Todd C. Miller [Thu, 12 Jan 2012 20:26:37 +0000 (15:26 -0500)]
For "visudo -c" also list include files that were checked when
everything is OK.

--HG--
branch : 1.7

13 years agoUpdate copyright year.
Todd C. Miller [Thu, 12 Jan 2012 20:26:24 +0000 (15:26 -0500)]
Update copyright year.

--HG--
branch : 1.7

13 years agoAllow "visudo -c" to work when we only have read-only access to the
Todd C. Miller [Thu, 12 Jan 2012 20:23:16 +0000 (15:23 -0500)]
Allow "visudo -c" to work when we only have read-only access to the
sudoers include files.

--HG--
branch : 1.7

13 years agoDo not include GLOB_MARK in the flags we pass to glob(3). Fixes a
Todd C. Miller [Thu, 12 Jan 2012 20:21:36 +0000 (15:21 -0500)]
Do not include GLOB_MARK in the flags we pass to glob(3). Fixes a
bug where a pattern like "/usr/*" include /usr/bin/ in the results,
which would be incorrectly be interpreted as if the sudoers file had
specified a directory. From Vitezslav Cizek.

--HG--
branch : 1.7

13 years agoPrint a more sensible error if yyparse() returns non-zero but
Todd C. Miller [Thu, 12 Jan 2012 20:20:47 +0000 (15:20 -0500)]
Print a more sensible error if yyparse() returns non-zero but
yyerror() was not called.

--HG--
branch : 1.7

13 years agoWhen trying to determine the tty, fall back on /proc/ppid/fd/{0,1,2}
Todd C. Miller [Thu, 12 Jan 2012 20:17:30 +0000 (15:17 -0500)]
When trying to determine the tty, fall back on /proc/ppid/fd/{0,1,2}
if the main process's fds 0-2 are not hooked up to a tty.
On BSD, use the KERN_PROC_PID sysctl() instead.

--HG--
branch : 1.7

13 years agoWhen not logging I/O, put command in its own pgrp and make that the
Todd C. Miller [Thu, 12 Jan 2012 20:04:07 +0000 (15:04 -0500)]
When not logging I/O, put command in its own pgrp and make that the
controlling pgrp if the command is in the foreground. Fixes a race
in the non-I/O logging path where the command may receive two
keyboard-generated signals; one from the kernel and one from the
sudo process.

--HG--
branch : 1.7

13 years agoAdd missing %s printf escape to the iolog_dir description.
Todd C. Miller [Thu, 12 Jan 2012 20:02:08 +0000 (15:02 -0500)]
Add missing %s printf escape to the iolog_dir description.

--HG--
branch : 1.7

13 years agoHandle different Unix domain socket (actually socketpair) semantics
Todd C. Miller [Thu, 12 Jan 2012 19:54:18 +0000 (14:54 -0500)]
Handle different Unix domain socket (actually socketpair) semantics
in BSD vs. Linux. In BSD if one end of the socketpair goes away
select() returns the fd as readable and the read will fail with
ECONNRESET. This doesn't appear to happen on Linux so if we notice
that the monitor process has died when I/O logging is enabled,
behave like the command has exited. This means we log the wait
status of the monitor, not the command, but there is nothing else
we can do at that point. This should only be an issue if SIGKILL
is sent to the monitor process.

--HG--
branch : 1.7

13 years agoCatch common signals in the monitor process so they get passed to
Todd C. Miller [Thu, 12 Jan 2012 19:52:07 +0000 (14:52 -0500)]
Catch common signals in the monitor process so they get passed to
the command. Fixes a problem when the entire login session is killed
when ssh is disconnected or the terminal window is closed.

--HG--
branch : 1.7

13 years agoMention how to configure pam_hpsec on HP-UX to play nicely with
Todd C. Miller [Thu, 12 Jan 2012 19:51:27 +0000 (14:51 -0500)]
Mention how to configure pam_hpsec on HP-UX to play nicely with
sudo.

--HG--
branch : 1.7

13 years agoEscape values in the search expression as per RFC 4515
Todd C. Miller [Thu, 12 Jan 2012 19:49:39 +0000 (14:49 -0500)]
Escape values in the search expression as per RFC 4515

--HG--
branch : 1.7

13 years agoBump version to 1.7.9
Todd C. Miller [Thu, 12 Jan 2012 19:42:57 +0000 (14:42 -0500)]
Bump version to 1.7.9

--HG--
branch : 1.7

13 years agoRemove unwanted login_close() in last commit.
Todd C. Miller [Thu, 12 Jan 2012 19:42:46 +0000 (14:42 -0500)]
Remove unwanted login_close() in last commit.

--HG--
branch : 1.7

13 years agoFetch the login class for the user we authenticate specifically
Todd C. Miller [Thu, 12 Jan 2012 19:23:42 +0000 (14:23 -0500)]
Fetch the login class for the user we authenticate specifically
when using BSD authentication. That user may have a different login
class than what we will use to run the command. When setting the
login class for the command, use the target user's struct passwd,
not the invoking user's.

--HG--
branch : 1.7

13 years agoNo longer need SUDO_CHECK_TYPE and SUDO_TYPE_* now that the default
Todd C. Miller [Thu, 12 Jan 2012 18:28:49 +0000 (13:28 -0500)]
No longer need SUDO_CHECK_TYPE and SUDO_TYPE_* now that the default
includes have unistd.h in them.

--HG--
branch : 1.7

13 years agoUse HAVE_STRUCT_TIMESPEC and HAVE_STRUCT_IN6_ADDR instead of
Todd C. Miller [Thu, 12 Jan 2012 18:27:37 +0000 (13:27 -0500)]
Use HAVE_STRUCT_TIMESPEC and HAVE_STRUCT_IN6_ADDR instead of
HAVE_TIMESPEC and HAVE_IN6_ADDR respectively.

--HG--
branch : 1.7

13 years agoFix mode on sudoers as needed when the -f option is not specified.
Todd C. Miller [Thu, 12 Jan 2012 18:20:10 +0000 (13:20 -0500)]
Fix mode on sudoers as needed when the -f option is not specified.

--HG--
branch : 1.7

13 years agoBuild PIE executables for newer Debian and Ubuntu
Todd C. Miller [Thu, 12 Jan 2012 18:19:36 +0000 (13:19 -0500)]
Build PIE executables for newer Debian and Ubuntu

--HG--
branch : 1.7

13 years agoDo not close error pipe or debug fd via closefrom() as we need them
Todd C. Miller [Thu, 12 Jan 2012 18:19:01 +0000 (13:19 -0500)]
Do not close error pipe or debug fd via closefrom() as we need them
to report an exec error should one occur.

--HG--
branch : 1.7

13 years agoOlder Netscape LDAP SDKs don't prototype ldapssl_set_strength()
Todd C. Miller [Thu, 12 Jan 2012 18:10:41 +0000 (13:10 -0500)]
Older Netscape LDAP SDKs don't prototype ldapssl_set_strength()

--HG--
branch : 1.7

13 years agoReplace UCB fnmatch.c with a non-recursive version written by
Todd C. Miller [Thu, 12 Jan 2012 18:10:19 +0000 (13:10 -0500)]
Replace UCB fnmatch.c with a non-recursive version written by
William A. Rowe Jr.

--HG--
branch : 1.7

13 years agoMake the env_reset descriptions consistent.
Todd C. Miller [Thu, 12 Jan 2012 16:35:56 +0000 (11:35 -0500)]
Make the env_reset descriptions consistent.

--HG--
branch : 1.7

13 years agoDo multiple expansion when expanding paths to the noexec file, and
Todd C. Miller [Thu, 12 Jan 2012 16:24:54 +0000 (11:24 -0500)]
Do multiple expansion when expanding paths to the noexec file, and
sesh. Adapted from a diff by Mike Frysinger

--HG--
branch : 1.7

13 years agoAdd ignore file
Todd C. Miller [Thu, 12 Jan 2012 15:54:20 +0000 (10:54 -0500)]
Add ignore file

--HG--
branch : 1.7

13 years agoUpdate to libtool 2.4.2
Todd C. Miller [Thu, 12 Jan 2012 15:48:12 +0000 (10:48 -0500)]
Update to libtool 2.4.2

--HG--
branch : 1.7

13 years agoAdd support for relative paths in #include and #includedir
Todd C. Miller [Thu, 12 Jan 2012 15:39:49 +0000 (10:39 -0500)]
Add support for relative paths in #include and #includedir

--HG--
branch : 1.7

13 years agoAdd missing word in HOME security note.
Todd C. Miller [Thu, 12 Jan 2012 15:20:08 +0000 (10:20 -0500)]
Add missing word in HOME security note.

--HG--
branch : 1.7

13 years agoKeep track of the last token returned. On error, if the last token
Todd C. Miller [Thu, 12 Jan 2012 15:18:57 +0000 (10:18 -0500)]
Keep track of the last token returned. On error, if the last token
was COMMENT, decrement sudolineno since the error most likely
occurred on the preceding line. Previously we always uses sudolineno-1
which will give the wrong line number for errors within a line.

--HG--
branch : 1.7

13 years agoFix typo in visiblepw description; from Joel Pickett
Todd C. Miller [Sun, 18 Dec 2011 19:22:24 +0000 (14:22 -0500)]
Fix typo in visiblepw description; from Joel Pickett

--HG--
branch : 1.7

13 years agoMark libexec files as optional. If there is no support for noexec,
Todd C. Miller [Tue, 8 Nov 2011 13:37:38 +0000 (08:37 -0500)]
Mark libexec files as optional.  If there is no support for noexec,
sudo will not build sudo_noexec.so.  Fixes a packaging problem on
AIX 4.3

--HG--
branch : 1.7

13 years agoMake alias_remove_recursive() return TRUE/FALSE as its callers
Todd C. Miller [Wed, 26 Oct 2011 15:07:11 +0000 (11:07 -0400)]
Make alias_remove_recursive() return TRUE/FALSE as its callers
expect and remove two unused arguments.  Fixes bug 519.

--HG--
branch : 1.7

13 years agoWhen matching a RunasAlias for a runas group, pass the alias in as
Todd C. Miller [Tue, 25 Oct 2011 19:07:58 +0000 (15:07 -0400)]
When matching a RunasAlias for a runas group, pass the alias in as
the group_list, not the user_list.  From Daniel Kopecek.

--HG--
branch : 1.7

13 years agoAdded tag SUDO_1_7_8 for changeset 571f47a3e08c
Todd C. Miller [Fri, 21 Oct 2011 13:20:03 +0000 (09:20 -0400)]
Added tag SUDO_1_7_8 for changeset 571f47a3e08c

--HG--
branch : 1.7

13 years agoRevert unintended commit of version change to 1.7.8rc1 SUDO_1_7_8
Todd C. Miller [Fri, 21 Oct 2011 13:19:53 +0000 (09:19 -0400)]
Revert unintended commit of version change to 1.7.8rc1

--HG--
branch : 1.7

13 years agoAdd sudoedit fix
Todd C. Miller [Mon, 10 Oct 2011 19:52:43 +0000 (15:52 -0400)]
Add sudoedit fix

--HG--
branch : 1.7

13 years agoIgnore set_logname (which is now the default) for sudoedit since
Todd C. Miller [Mon, 10 Oct 2011 17:13:42 +0000 (13:13 -0400)]
Ignore set_logname (which is now the default) for sudoedit since
we want the LOGNAME, USER and USERNAME environment variables to
refer to the calling user since that is who the editor runs as.
This allows the editor to find the user's startup files.
Fixes bugzilla #515

--HG--
branch : 1.7

13 years agoModify the authentication API such that the init and cleanup functions
Todd C. Miller [Tue, 27 Sep 2011 20:29:27 +0000 (16:29 -0400)]
Modify the authentication API such that the init and cleanup functions
are always called, regardless of whether or not we are going to
verify a password.  This is needed for proper PAM session support.

--HG--
branch : 1.7

13 years agoIf the invoking user cannot be resolved by uid fake the struct
Todd C. Miller [Sat, 24 Sep 2011 23:41:22 +0000 (19:41 -0400)]
If the invoking user cannot be resolved by uid fake the struct
passwd and store it in the cache so we can delref it on exit.

--HG--
branch : 1.7

13 years agoAdded tag SUDO_1_7_7 for changeset 9fba0207f99a
Todd C. Miller [Thu, 22 Sep 2011 13:30:30 +0000 (09:30 -0400)]
Added tag SUDO_1_7_7 for changeset 9fba0207f99a

--HG--
branch : 1.7

13 years agoUpdate to current reality and add bit about ssh auth
Todd C. Miller [Wed, 21 Sep 2011 16:35:42 +0000 (12:35 -0400)]
Update to current reality and add bit about ssh auth

--HG--
branch : 1.7

13 years agoMake "verbose" static; fixes a namespace clash with pam_ssh_agent_auth
Todd C. Miller [Wed, 21 Sep 2011 16:35:14 +0000 (12:35 -0400)]
Make "verbose" static; fixes a namespace clash with pam_ssh_agent_auth
(and it doesn't need to be extern these days).

--HG--
branch : 1.7

13 years agoFreeBSD has libutil.h not util.h
Todd C. Miller [Wed, 21 Sep 2011 16:34:13 +0000 (12:34 -0400)]
FreeBSD has libutil.h not util.h

--HG--
branch : 1.7

13 years agoDefine _BSD_SOURCE on FreeBSD, OpenBSD and DragonflyBSD
Todd C. Miller [Wed, 21 Sep 2011 16:33:23 +0000 (12:33 -0400)]
Define _BSD_SOURCE on FreeBSD, OpenBSD and DragonflyBSD

--HG--
branch : 1.7

13 years agoApply MODE_MASK to sudo_mode in the switch statement that handles
Todd C. Miller [Sat, 17 Sep 2011 14:22:32 +0000 (10:22 -0400)]
Apply MODE_MASK to sudo_mode in the switch statement that handles
modes other than MODE_RUN.

--HG--
branch : 1.7

13 years agoUpdate for version 1.7.8
Todd C. Miller [Sat, 17 Sep 2011 00:13:27 +0000 (20:13 -0400)]
Update for version 1.7.8

--HG--
branch : 1.7

13 years agoAdd support for DEREF in ldap.conf.
Todd C. Miller [Sat, 17 Sep 2011 00:10:21 +0000 (20:10 -0400)]
Add support for DEREF in ldap.conf.

--HG--
branch : 1.7

13 years agoCheck for -libmldap too when looking for ldap libs, which is the
Todd C. Miller [Sat, 17 Sep 2011 00:04:25 +0000 (20:04 -0400)]
Check for -libmldap too when looking for ldap libs, which is the
Tivoli Directory Server client library.

--HG--
branch : 1.7

13 years agoHonor NOPASSWD tag for denied commands too.
Todd C. Miller [Sat, 17 Sep 2011 00:03:45 +0000 (20:03 -0400)]
Honor NOPASSWD tag for denied commands too.

--HG--
branch : 1.7

13 years agoRemove --with-CC option; it doesn't work correctly now that we use
Todd C. Miller [Sat, 17 Sep 2011 00:03:07 +0000 (20:03 -0400)]
Remove --with-CC option; it doesn't work correctly now that we use
libtool. Users can get the same effect by setting the CC
environment variable when running configure.

--HG--
branch : 1.7

13 years agoDon't assume all editors support the +linenumber command line
Todd C. Miller [Fri, 16 Sep 2011 23:59:47 +0000 (19:59 -0400)]
Don't assume all editors support the +linenumber command line
argument, use a whitelist of known good editors.

--HG--
branch : 1.7

13 years agoUse PAM by default on AIX 6 and higher.
Todd C. Miller [Fri, 16 Sep 2011 23:57:12 +0000 (19:57 -0400)]
Use PAM by default on AIX 6 and higher.
Fix some square brackets in case statements that needed to be
doubled up. While here, use $OSMAJOR when it makes sense.

--HG--
branch : 1.7

13 years agoAdd --enable-werror configure option.
Todd C. Miller [Tue, 30 Aug 2011 14:12:04 +0000 (10:12 -0400)]
Add --enable-werror configure option.
Add -Wall and -Werror after all tests so they don't cause failures.

--HG--
branch : 1.7

13 years agoAdd configure test for missing errno declaration and only
Todd C. Miller [Tue, 30 Aug 2011 14:09:46 +0000 (10:09 -0400)]
Add configure test for missing errno declaration and only
declare it ourselves if it is missing.

--HG--
branch : 1.7

13 years agoInclude errno.h before sudo.h to avoid conflicting with the system
Todd C. Miller [Tue, 30 Aug 2011 13:45:07 +0000 (09:45 -0400)]
Include errno.h before sudo.h to avoid conflicting with the system
definition of errno.

--HG--
branch : 1.7

13 years agoFix matching a network number with netmask when the network number
Todd C. Miller [Sat, 27 Aug 2011 16:12:28 +0000 (12:12 -0400)]
Fix matching a network number with netmask when the network number
is not the first address in the CIDR block.

--HG--
branch : 1.7

13 years agoFix building on RHEL 3
Todd C. Miller [Tue, 23 Aug 2011 19:25:56 +0000 (15:25 -0400)]
Fix building on RHEL 3

--HG--
branch : 1.7

13 years agobash 2.x doesd not support the -l flag and exits with an error if SUDO_1_7_7
Todd C. Miller [Sun, 14 Aug 2011 20:00:01 +0000 (16:00 -0400)]
bash 2.x doesd not support the -l flag and exits with an error if
it is specified so use --login instead. This causes an error with
bash 1.x (which uses -login instead) but this version is hopefully
less used than 2.x.

--HG--
branch : 1.7

13 years agoDetect HP-UX bundled compiler on ia64 systems.
Todd C. Miller [Sun, 14 Aug 2011 19:58:49 +0000 (15:58 -0400)]
Detect HP-UX bundled compiler on ia64 systems.

--HG--
branch : 1.7