]> granicus.if.org Git - sudo/log
sudo
13 years agoIf srcdir is "." just use the basename of the yacc/lex file when
Todd C. Miller [Wed, 4 Jan 2012 18:01:11 +0000 (13:01 -0500)]
If srcdir is "." just use the basename of the yacc/lex file when
generating the C version.  This matches the generated files currently
in the repo.

--HG--
branch : 1.8

13 years agoClean up the DEVEL noise
Todd C. Miller [Wed, 4 Jan 2012 17:57:25 +0000 (12:57 -0500)]
Clean up the DEVEL noise

--HG--
branch : 1.8

13 years agoHandle different Unix domain socket (actually socketpair) semantics
Todd C. Miller [Wed, 4 Jan 2012 17:57:06 +0000 (12:57 -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.8

13 years agoCatch common signals in the monitor process so they get passed to
Todd C. Miller [Wed, 4 Jan 2012 17:56:54 +0000 (12:56 -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.
Previously, the monitor would exit and plugin's close method would
not be called.

--HG--
branch : 1.8

13 years agoMention how to configure pam_hpsec on HP-UX to play nicely with sudo.
Todd C. Miller [Wed, 4 Jan 2012 17:56:43 +0000 (12:56 -0500)]
Mention how to configure pam_hpsec on HP-UX to play nicely with sudo.

--HG--
branch : 1.8

13 years agoEscape values in the search expression as per RFC 4515.
Todd C. Miller [Wed, 4 Jan 2012 17:56:34 +0000 (12:56 -0500)]
Escape values in the search expression as per RFC 4515.

--HG--
branch : 1.8

13 years agoNo need for install target to depend explicitly on install-dirs,
Todd C. Miller [Wed, 4 Jan 2012 17:56:25 +0000 (12:56 -0500)]
No need for install target to depend explicitly on install-dirs,
the install-foo targets all depend on it.

--HG--
branch : 1.8

13 years agoignore src/sesh
Todd C. Miller [Wed, 4 Jan 2012 17:56:17 +0000 (12:56 -0500)]
ignore src/sesh

--HG--
branch : 1.8

13 years agoAdd support for setenv entries in login.conf. We can't use LOGIN_SETENV
Todd C. Miller [Wed, 4 Jan 2012 17:56:09 +0000 (12:56 -0500)]
Add support for setenv entries in login.conf.  We can't use LOGIN_SETENV
since the plugin sets up the envp the command is executed with.
Also regen the Makefile.in files while here.  Fixes bug #527

--HG--
branch : 1.8

13 years agoAdd getaddrinfo() for those without it, written by Russ Allbery
Todd C. Miller [Wed, 4 Jan 2012 17:55:48 +0000 (12:55 -0500)]
Add getaddrinfo() for those without it, written by Russ Allbery

--HG--
branch : 1.8

13 years agoRestore PACKAGE_TARNAME, it is used in docdir
Todd C. Miller [Wed, 4 Jan 2012 17:55:31 +0000 (12:55 -0500)]
Restore PACKAGE_TARNAME, it is used in docdir

--HG--
branch : 1.8

13 years agoSunPro C Compiler also has a _Bool builtin.
Todd C. Miller [Wed, 4 Jan 2012 17:55:23 +0000 (12:55 -0500)]
SunPro C Compiler also has a _Bool builtin.
Also add stdbool.h to the MANIFEST

--HG--
branch : 1.8

13 years agoRemove duplicate return statements.
Todd C. Miller [Wed, 4 Jan 2012 17:55:14 +0000 (12:55 -0500)]
Remove duplicate return statements.

--HG--
branch : 1.8

13 years agoemove inaccurate comment
Todd C. Miller [Wed, 4 Jan 2012 17:55:05 +0000 (12:55 -0500)]
emove inaccurate comment

--HG--
branch : 1.8

13 years agoFetch the login class for the user we authenticate specifically when
Todd C. Miller [Wed, 4 Jan 2012 17:54:54 +0000 (12:54 -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.  Fixes bug 526

--HG--
branch : 1.8

13 years agoReplace @DEV@ prefix with DEVEL variable so we can do "make DEVEL=1"
Todd C. Miller [Wed, 4 Jan 2012 17:54:43 +0000 (12:54 -0500)]
Replace @DEV@ prefix with DEVEL variable so we can do "make DEVEL=1"

--HG--
branch : 1.8

13 years agoFix "make check" fallout from the sudo_conv changes in sudo_debug.
Todd C. Miller [Wed, 4 Jan 2012 17:54:32 +0000 (12:54 -0500)]
Fix "make check" fallout from the sudo_conv changes in sudo_debug.

--HG--
branch : 1.8

13 years agoUse stdbool.h instead of rolling our own TRUE/FALSE macros.
Todd C. Miller [Wed, 4 Jan 2012 17:54:23 +0000 (12:54 -0500)]
Use stdbool.h instead of rolling our own TRUE/FALSE macros.

--HG--
branch : 1.8

13 years agoAdd stdbool.h for systems without it.
Todd C. Miller [Wed, 4 Jan 2012 17:54:08 +0000 (12:54 -0500)]
Add stdbool.h for systems without it.

--HG--
branch : 1.8

13 years agoNo longer need SUDO_CHECK_TYPE and SUDO_TYPE_* now that the default
Todd C. Miller [Wed, 4 Jan 2012 17:53:53 +0000 (12:53 -0500)]
No longer need SUDO_CHECK_TYPE and SUDO_TYPE_* now that the default
includes have unistd.h in them.  Add check for socklen_t for upcoming
getaddrinfo compat.

--HG--
branch : 1.8

13 years agoUse HAVE_STRUCT_TIMESPEC and HAVE_STRUCT_IN6_ADDR instead of
Todd C. Miller [Wed, 4 Jan 2012 17:53:41 +0000 (12:53 -0500)]
Use HAVE_STRUCT_TIMESPEC and HAVE_STRUCT_IN6_ADDR instead of
HAVE_TIMESPEC and HAVE_IN6_ADDR respectively.

--HG--
branch : 1.8

13 years agoNo longer need to include time.h here as missing.h does not use
Todd C. Miller [Wed, 4 Jan 2012 17:53:28 +0000 (12:53 -0500)]
No longer need to include time.h here as missing.h does not use
time_t.

--HG--
branch : 1.8

13 years agoFix mode on sudoers as needed when the -f option is not specified.
Todd C. Miller [Wed, 4 Jan 2012 17:53:19 +0000 (12:53 -0500)]
Fix mode on sudoers as needed when the -f option is not specified.

--HG--
branch : 1.8

13 years agoAdd Serbian translation for sudo from translationproject.org
Todd C. Miller [Wed, 4 Jan 2012 17:53:09 +0000 (12:53 -0500)]
Add Serbian translation for sudo from translationproject.org

--HG--
branch : 1.8

13 years agoNo longer pass debug_file to plugin, plugins must now use CONV_DEBUG_MSG
Todd C. Miller [Wed, 4 Jan 2012 17:53:01 +0000 (12:53 -0500)]
No longer pass debug_file to plugin, plugins must now use CONV_DEBUG_MSG

--HG--
branch : 1.8

13 years agoBuild PIE executables for newer Debian and Ubuntu
Todd C. Miller [Wed, 4 Jan 2012 17:52:53 +0000 (12:52 -0500)]
Build PIE executables for newer Debian and Ubuntu

--HG--
branch : 1.8

13 years agoInclude time.h for ctime() prototype.
Todd C. Miller [Wed, 4 Jan 2012 17:52:44 +0000 (12:52 -0500)]
Include time.h for ctime() prototype.

--HG--
branch : 1.8

13 years agoDo not close error pipe or debug fd via closefrom() as we need them
Todd C. Miller [Wed, 4 Jan 2012 17:52:36 +0000 (12:52 -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.8

13 years agoDocument that a sudoUser may now be a group ID.
Todd C. Miller [Wed, 4 Jan 2012 17:52:24 +0000 (12:52 -0500)]
Document that a sudoUser may now be a group ID.

--HG--
branch : 1.8

13 years agoAdd support for permitting access by group ID in addition to group name.
Todd C. Miller [Wed, 4 Jan 2012 17:52:14 +0000 (12:52 -0500)]
Add support for permitting access by group ID in addition to group name.

--HG--
branch : 1.8

13 years agoOlder Netscape LDAP SDKs don't prototype ldapssl_set_strength()
Todd C. Miller [Wed, 4 Jan 2012 17:52:03 +0000 (12:52 -0500)]
Older Netscape LDAP SDKs don't prototype ldapssl_set_strength()

--HG--
branch : 1.8

13 years agoReplace UCB fnmatch.c with a non-recursive version written by
Todd C. Miller [Wed, 4 Jan 2012 17:51:48 +0000 (12:51 -0500)]
Replace UCB fnmatch.c with a non-recursive version written by
William A. Rowe Jr.

--HG--
branch : 1.8

13 years agoFix typo, return_debug vs. debug_return
Todd C. Miller [Wed, 4 Jan 2012 17:51:34 +0000 (12:51 -0500)]
Fix typo, return_debug vs. debug_return

--HG--
branch : 1.8

13 years agoUpdate Japanese sudoers translation from translationproject.org
Todd C. Miller [Wed, 4 Jan 2012 17:51:25 +0000 (12:51 -0500)]
Update Japanese sudoers translation from translationproject.org

--HG--
branch : 1.8

13 years agoMake the env_reset descriptions consistent.
Todd C. Miller [Wed, 4 Jan 2012 17:51:09 +0000 (12:51 -0500)]
Make the env_reset descriptions consistent.

--HG--
branch : 1.8

13 years agoDo multiple expansion when expanding paths to the noexec file, sesh
Todd C. Miller [Wed, 4 Jan 2012 17:50:58 +0000 (12:50 -0500)]
Do multiple expansion when expanding paths to the noexec file, sesh
and the plugin directory.  Adapted from a diff by Mike Frysinger

--HG--
branch : 1.8

13 years agoregen
Todd C. Miller [Wed, 4 Jan 2012 17:50:44 +0000 (12:50 -0500)]
regen

--HG--
branch : 1.8

13 years agoAdd ignore file; from Mike Frysinger
Todd C. Miller [Wed, 4 Jan 2012 17:50:35 +0000 (12:50 -0500)]
Add ignore file; from Mike Frysinger

--HG--
branch : 1.8

13 years agono longer save old Makefile.in to .old
Todd C. Miller [Wed, 4 Jan 2012 17:50:27 +0000 (12:50 -0500)]
no longer save old Makefile.in to .old

--HG--
branch : 1.8

13 years agoregen
Todd C. Miller [Wed, 4 Jan 2012 17:50:19 +0000 (12:50 -0500)]
regen

--HG--
branch : 1.8

13 years agoUpdate to libtool 2.4.2
Todd C. Miller [Wed, 4 Jan 2012 17:49:54 +0000 (12:49 -0500)]
Update to libtool 2.4.2

--HG--
branch : 1.8

13 years agoBump grammar version for #include and #includedir relative path support.
Todd C. Miller [Wed, 4 Jan 2012 17:49:46 +0000 (12:49 -0500)]
Bump grammar version for #include and #includedir relative path support.

--HG--
branch : 1.8

13 years agoAdd support for relative paths in #include and #includedir
Todd C. Miller [Wed, 4 Jan 2012 17:49:35 +0000 (12:49 -0500)]
Add support for relative paths in #include and #includedir

--HG--
branch : 1.8

13 years agoFix install-plugin when shared objects are unsupported or disabled.
Todd C. Miller [Wed, 4 Jan 2012 17:49:26 +0000 (12:49 -0500)]
Fix install-plugin when shared objects are unsupported or disabled.

--HG--
branch : 1.8

13 years agoDon't write to sbp if it is NULL
Todd C. Miller [Wed, 4 Jan 2012 17:49:16 +0000 (12:49 -0500)]
Don't write to sbp if it is NULL

--HG--
branch : 1.8

13 years agoIf LINGUAS is set, only install matching .mo files
Todd C. Miller [Wed, 4 Jan 2012 17:49:08 +0000 (12:49 -0500)]
If LINGUAS is set, only install matching .mo files

--HG--
branch : 1.8

13 years agoFix non-dynamic (no dlopen) sudo build.
Todd C. Miller [Wed, 4 Jan 2012 17:48:54 +0000 (12:48 -0500)]
Fix non-dynamic (no dlopen) sudo build.

--HG--
branch : 1.8

13 years agoDon't error out if the user specified --disable-shared
Todd C. Miller [Wed, 4 Jan 2012 17:48:46 +0000 (12:48 -0500)]
Don't error out if the user specified --disable-shared

--HG--
branch : 1.8

13 years agoUse SUDO_CONV_DEBUG_MSG in the plugin instead of writing
Todd C. Miller [Wed, 4 Jan 2012 17:48:35 +0000 (12:48 -0500)]
Use SUDO_CONV_DEBUG_MSG in the plugin instead of writing
directly to the debug file.

--HG--
branch : 1.8

13 years agoMake sudo_goodpath() return value bolean
Todd C. Miller [Wed, 4 Jan 2012 17:48:23 +0000 (12:48 -0500)]
Make sudo_goodpath() return value bolean

--HG--
branch : 1.8

13 years agoRemove obsolete securid auth method.
Todd C. Miller [Wed, 4 Jan 2012 17:48:11 +0000 (12:48 -0500)]
Remove obsolete securid auth method.

--HG--
branch : 1.8

13 years agoPrefix authentication functions with a "sudo_" prefix to avoid
Todd C. Miller [Wed, 4 Jan 2012 17:47:58 +0000 (12:47 -0500)]
Prefix authentication functions with a "sudo_" prefix to avoid
namespace problems.

--HG--
branch : 1.8

13 years agoRemove the old Kerberos IV support
Todd C. Miller [Wed, 4 Jan 2012 17:47:46 +0000 (12:47 -0500)]
Remove the old Kerberos IV support

--HG--
branch : 1.8

13 years agoDon't print garbage at the end of the custom lecture.
Todd C. Miller [Wed, 4 Jan 2012 17:47:33 +0000 (12:47 -0500)]
Don't print garbage at the end of the custom lecture.

--HG--
branch : 1.8

13 years agoAdd lexer tracing as debug@parser
Todd C. Miller [Wed, 4 Jan 2012 17:47:26 +0000 (12:47 -0500)]
Add lexer tracing as debug@parser

--HG--
branch : 1.8

13 years agoAdd devdir before srcdir in include path and fix up dependecies
Todd C. Miller [Wed, 4 Jan 2012 17:47:14 +0000 (12:47 -0500)]
Add devdir before srcdir in include path and fix up dependecies
accordingly and add better devdir support to mkdep.pl.  We also
need to #include <gram.h> not "gram.h" and <def_data.h> and not
"def_data.h" when generating the parser in a build dir.

--HG--
branch : 1.8

13 years agoMark libexec files as optional. If we build without shared object
Todd C. Miller [Wed, 4 Jan 2012 17:46:15 +0000 (12:46 -0500)]
Mark libexec files as optional.  If we build without shared object
support, libexec is not used.

--HG--
branch : 1.8

13 years agoChange Debug sudo.conf setting to take a program name as the first
Todd C. Miller [Wed, 4 Jan 2012 17:46:02 +0000 (12:46 -0500)]
Change Debug sudo.conf setting to take a program name as the first
argument.  In the future, this will allow visudo and sudoreplay to
use their own Debug entries.

--HG--
branch : 1.8

13 years agofix sudo_debug_printf priority
Todd C. Miller [Wed, 4 Jan 2012 17:45:51 +0000 (12:45 -0500)]
fix sudo_debug_printf priority

--HG--
branch : 1.8

13 years agoadd missing debug_return_int
Todd C. Miller [Wed, 4 Jan 2012 17:45:40 +0000 (12:45 -0500)]
add missing debug_return_int

--HG--
branch : 1.8

13 years agoFold SUDO_DEBUG_PROGERR and SUDO_DEBUG_SYSERR into SUDO_DEBUG_ERROR
Todd C. Miller [Wed, 4 Jan 2012 17:45:16 +0000 (12:45 -0500)]
Fold SUDO_DEBUG_PROGERR and SUDO_DEBUG_SYSERR into SUDO_DEBUG_ERROR

--HG--
branch : 1.8

13 years agoAdd missing word in HOME security note.
Todd C. Miller [Wed, 4 Jan 2012 17:45:05 +0000 (12:45 -0500)]
Add missing word in HOME security note.

--HG--
branch : 1.8

13 years agoPrevent "testsudoers -d username" from trying to malloc(0).
Todd C. Miller [Wed, 4 Jan 2012 17:44:55 +0000 (12:44 -0500)]
Prevent "testsudoers -d username" from trying to malloc(0).

--HG--
branch : 1.8

13 years agoTests for empty sudoers (should parse OK) and syntax errors within
Todd C. Miller [Wed, 4 Jan 2012 17:44:34 +0000 (12:44 -0500)]
Tests for empty sudoers (should parse OK) and syntax errors within
a line (should report correct line number) both with and without
the trailing newline.

--HG--
branch : 1.8

13 years agoPrint line number when there is a parser error.
Todd C. Miller [Wed, 4 Jan 2012 17:44:19 +0000 (12:44 -0500)]
Print line number when there is a parser error.

--HG--
branch : 1.8

13 years agoKeep track of the last token returned. On error, if the last token was
Todd C. Miller [Wed, 4 Jan 2012 17:44:03 +0000 (12:44 -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.8

13 years agoupdate with sudo 1.8.3p1 info
Todd C. Miller [Wed, 4 Jan 2012 17:43:55 +0000 (12:43 -0500)]
update with sudo 1.8.3p1 info

--HG--
branch : 1.8

13 years agoFix crash when "sudo -g group -i" is run. Fixes bug 521
Todd C. Miller [Wed, 4 Jan 2012 17:43:42 +0000 (12:43 -0500)]
Fix crash when "sudo -g group -i" is run.  Fixes bug 521

--HG--
branch : 1.8

13 years agoMake alias_remove_recursive() return TRUE/FALSE as its callers
Todd C. Miller [Wed, 4 Jan 2012 17:43:29 +0000 (12:43 -0500)]
Make alias_remove_recursive() return TRUE/FALSE as its callers
expect and remove two unused arguments.  Fixes bug 519.

--HG--
branch : 1.8

13 years agoAdd regress test for bugzilla 519
Todd C. Miller [Wed, 4 Jan 2012 17:43:19 +0000 (12:43 -0500)]
Add regress test for bugzilla 519

--HG--
branch : 1.8

13 years agoDisable warning/error wrapping in regress tests.
Todd C. Miller [Wed, 4 Jan 2012 17:43:06 +0000 (12:43 -0500)]
Disable warning/error wrapping in regress tests.

--HG--
branch : 1.8

13 years agoDo compile-po as part of sync-po so that the .mo files get rebuild
Todd C. Miller [Wed, 4 Jan 2012 17:42:52 +0000 (12:42 -0500)]
Do compile-po as part of sync-po so that the .mo files get rebuild
automatically when we sync with translationproject.org

--HG--
branch : 1.8

13 years agocheck_addr needs to link with the network libraries on Solaris
Todd C. Miller [Wed, 4 Jan 2012 17:42:36 +0000 (12:42 -0500)]
check_addr needs to link with the network libraries on Solaris

--HG--
branch : 1.8

13 years agoWhen matching a RunasAlias for a runas group, pass the alias in as
Todd C. Miller [Wed, 4 Jan 2012 17:42:25 +0000 (12:42 -0500)]
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.8

13 years agoWe need to init the auth system regardless of whether we need a
Todd C. Miller [Wed, 4 Jan 2012 17:42:14 +0000 (12:42 -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 #518

--HG--
branch : 1.8

13 years agoGet rid of done: label. If the child exits we still need to close
Todd C. Miller [Wed, 4 Jan 2012 17:42:01 +0000 (12:42 -0500)]
Get rid of done: label.  If the child exits we still need to close
the pty, update utmp and restore the SELinux tty context.

--HG--
branch : 1.8

13 years agoAdd debug_decl/debug_return (almost) everywhere.
Todd C. Miller [Wed, 4 Jan 2012 17:41:49 +0000 (12:41 -0500)]
Add debug_decl/debug_return (almost) everywhere.
Remove old sudo_debug() and convert users to sudo_debug_printf().

--HG--
branch : 1.8

13 years agoWrap error/errorx and warning/warningx functions with debug statements.
Todd C. Miller [Wed, 4 Jan 2012 17:40:54 +0000 (12:40 -0500)]
Wrap error/errorx and warning/warningx functions with debug statements.
Disable wrapping for standalone sudoers programs as well as memory
allocation functions (to avoid infinite recursion).

--HG--
branch : 1.8

13 years agoAdd checks for __func__ and __FUNCTION__ and mention that we now
Todd C. Miller [Wed, 4 Jan 2012 17:40:43 +0000 (12:40 -0500)]
Add checks for __func__ and __FUNCTION__ and mention that we now
require a cpp that supports variadic macros.

--HG--
branch : 1.8

13 years agoNew debug framework for sudo and plugins using /etc/sudo.conf that
Todd C. Miller [Wed, 4 Jan 2012 17:40:27 +0000 (12:40 -0500)]
New debug framework for sudo and plugins using /etc/sudo.conf that
also supports function call tracing.

--HG--
branch : 1.8

13 years agoIf srcdir is "." just use the basename of the yacc/lex file when
Todd C. Miller [Thu, 8 Dec 2011 18:41:35 +0000 (13:41 -0500)]
If srcdir is "." just use the basename of the yacc/lex file when
generating the C version.  This matches the generated files currently
in the repo.

13 years agoClean up the DEVEL noise
Todd C. Miller [Thu, 8 Dec 2011 17:53:10 +0000 (12:53 -0500)]
Clean up the DEVEL noise

13 years agoHandle different Unix domain socket (actually socketpair) semantics
Todd C. Miller [Thu, 8 Dec 2011 16:18:38 +0000 (11:18 -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.

13 years agoCatch common signals in the monitor process so they get passed to
Todd C. Miller [Thu, 8 Dec 2011 16:15:53 +0000 (11:15 -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.
Previously, the monitor would exit and plugin's close method would
not be called.

13 years agoMention how to configure pam_hpsec on HP-UX to play nicely with sudo.
Todd C. Miller [Thu, 8 Dec 2011 14:10:07 +0000 (09:10 -0500)]
Mention how to configure pam_hpsec on HP-UX to play nicely with sudo.

13 years agoEscape values in the search expression as per RFC 4515.
Todd C. Miller [Wed, 7 Dec 2011 20:12:22 +0000 (15:12 -0500)]
Escape values in the search expression as per RFC 4515.

13 years agoNo need for install target to depend explicitly on install-dirs,
Todd C. Miller [Wed, 7 Dec 2011 19:33:25 +0000 (14:33 -0500)]
No need for install target to depend explicitly on install-dirs,
the install-foo targets all depend on it.

13 years agoignore src/sesh
Todd C. Miller [Mon, 5 Dec 2011 16:25:30 +0000 (11:25 -0500)]
ignore src/sesh

13 years agoAdd support for setenv entries in login.conf. We can't use LOGIN_SETENV
Todd C. Miller [Mon, 5 Dec 2011 15:43:44 +0000 (10:43 -0500)]
Add support for setenv entries in login.conf.  We can't use LOGIN_SETENV
since the plugin sets up the envp the command is executed with.
Also regen the Makefile.in files while here.  Fixes bug #527

13 years agoAdd getaddrinfo() for those without it, written by Russ Allbery
Todd C. Miller [Fri, 2 Dec 2011 22:28:50 +0000 (17:28 -0500)]
Add getaddrinfo() for those without it, written by Russ Allbery

13 years agoRestore PACKAGE_TARNAME, it is used in docdir
Todd C. Miller [Fri, 2 Dec 2011 21:11:50 +0000 (16:11 -0500)]
Restore PACKAGE_TARNAME, it is used in docdir

13 years agoSunPro C Compiler also has a _Bool builtin.
Todd C. Miller [Fri, 2 Dec 2011 20:34:01 +0000 (15:34 -0500)]
SunPro C Compiler also has a _Bool builtin.
Also add stdbool.h to the MANIFEST

13 years agoRemove duplicate return statements.
Todd C. Miller [Fri, 2 Dec 2011 20:23:42 +0000 (15:23 -0500)]
Remove duplicate return statements.

13 years agoRemove inaccurate comment
Todd C. Miller [Fri, 2 Dec 2011 19:41:32 +0000 (14:41 -0500)]
Remove inaccurate comment

13 years agoFetch the login class for the user we authenticate specifically when
Todd C. Miller [Fri, 2 Dec 2011 19:29:54 +0000 (14:29 -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.  Fixes bug 526

13 years agoReplace @DEV@ prefix with DEVEL variable so we can do "make DEVEL=1"
Todd C. Miller [Fri, 2 Dec 2011 18:43:02 +0000 (13:43 -0500)]
Replace @DEV@ prefix with DEVEL variable so we can do "make DEVEL=1"

13 years agoFix "make check" fallout from the sudo_conv changes in sudo_debug.
Todd C. Miller [Fri, 2 Dec 2011 16:35:22 +0000 (11:35 -0500)]
Fix "make check" fallout from the sudo_conv changes in sudo_debug.

13 years agoUse stdbool.h instead of rolling our own TRUE/FALSE macros.
Todd C. Miller [Fri, 2 Dec 2011 16:27:33 +0000 (11:27 -0500)]
Use stdbool.h instead of rolling our own TRUE/FALSE macros.

13 years agoAdd stdbool.h for systems without it.
Todd C. Miller [Thu, 1 Dec 2011 18:49:46 +0000 (13:49 -0500)]
Add stdbool.h for systems without it.

13 years agoNo longer need SUDO_CHECK_TYPE and SUDO_TYPE_* now that the default
Todd C. Miller [Thu, 1 Dec 2011 16:27:57 +0000 (11:27 -0500)]
No longer need SUDO_CHECK_TYPE and SUDO_TYPE_* now that the default
includes have unistd.h in them.  Add check for socklen_t for upcoming
getaddrinfo compat.