]> granicus.if.org Git - sudo/log
sudo
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 agoRemove the old Kerberos IV support
Todd C. Miller [Sun, 13 Nov 2011 14:12:43 +0000 (09:12 -0500)]
Remove the old Kerberos IV support

13 years agoDon't print garbage at the end of the custom lecture.
Todd C. Miller [Sat, 12 Nov 2011 18:08:13 +0000 (13:08 -0500)]
Don't print garbage at the end of the custom lecture.

13 years agoAdd lexer tracing as debug@parser
Todd C. Miller [Sat, 12 Nov 2011 17:41:44 +0000 (12:41 -0500)]
Add lexer tracing as debug@parser

13 years agoRevert 003bdb078a15. We need to #include <gram.h> not "gram.h" and
Todd C. Miller [Sat, 12 Nov 2011 17:18:44 +0000 (12:18 -0500)]
Revert 003bdb078a15.  We 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.

13 years agoBetter devdir support in mkdep.pl
Todd C. Miller [Tue, 8 Nov 2011 20:05:10 +0000 (15:05 -0500)]
Better devdir support in mkdep.pl

13 years agoAdd devdir before srcdir in include path and fix up dependecies
Todd C. Miller [Tue, 8 Nov 2011 19:10:34 +0000 (14:10 -0500)]
Add devdir before srcdir in include path and fix up dependecies
accordingly.

13 years ago#include "gram.h" not <gram.h> and "def_data.h" and not <def_data.h>.
Todd C. Miller [Tue, 8 Nov 2011 19:09:48 +0000 (14:09 -0500)]
#include "gram.h" not <gram.h> and "def_data.h" and not <def_data.h>.

13 years agoMark libexec files as optional. If we build without shared object
Todd C. Miller [Tue, 8 Nov 2011 13:38:21 +0000 (08:38 -0500)]
Mark libexec files as optional.  If we build without shared object
support, libexec is not used.

13 years agoChange Debug sudo.conf setting to take a program name as the first
Todd C. Miller [Tue, 8 Nov 2011 13:24:45 +0000 (08:24 -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.

13 years agofix sudo_debug_printf priority
Todd C. Miller [Tue, 8 Nov 2011 13:22:48 +0000 (08:22 -0500)]
fix sudo_debug_printf priority

13 years agoadd missing debug_return_int
Todd C. Miller [Tue, 8 Nov 2011 13:22:07 +0000 (08:22 -0500)]
add missing debug_return_int

13 years agoFold SUDO_DEBUG_PROGERR and SUDO_DEBUG_SYSERR into SUDO_DEBUG_ERROR
Todd C. Miller [Mon, 7 Nov 2011 21:33:49 +0000 (16:33 -0500)]
Fold SUDO_DEBUG_PROGERR and SUDO_DEBUG_SYSERR into SUDO_DEBUG_ERROR

13 years agoAdd missing word in HOME security note.
Todd C. Miller [Mon, 7 Nov 2011 20:52:29 +0000 (15:52 -0500)]
Add missing word in HOME security note.

13 years agoPrevent "testsudoers -d username" from trying to malloc(0).
Todd C. Miller [Mon, 7 Nov 2011 13:44:05 +0000 (08:44 -0500)]
Prevent "testsudoers -d username" from trying to malloc(0).

13 years agoTests for empty sudoers (should parse OK) and syntax errors within
Todd C. Miller [Sun, 6 Nov 2011 22:04:55 +0000 (17:04 -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.

13 years agoPrint line number when there is a parser error.
Todd C. Miller [Sun, 6 Nov 2011 22:00:40 +0000 (17:00 -0500)]
Print line number when there is a parser error.

13 years agoKeep track of the last token returned. On error, if the last token was
Todd C. Miller [Sat, 5 Nov 2011 11:37:14 +0000 (07:37 -0400)]
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.

13 years agoupdate with sudo 1.8.3p1 info
Todd C. Miller [Thu, 3 Nov 2011 13:31:44 +0000 (09:31 -0400)]
update with sudo 1.8.3p1 info

13 years agoFix crash when "sudo -g group -i" is run. Fixes bug 521
Todd C. Miller [Thu, 3 Nov 2011 13:31:20 +0000 (09:31 -0400)]
Fix crash when "sudo -g group -i" is run.  Fixes bug 521

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

13 years agoAdd regress test for bugzilla 519
Todd C. Miller [Wed, 26 Oct 2011 14:20:32 +0000 (10:20 -0400)]
Add regress test for bugzilla 519

13 years agoDisable warning/error wrapping in regress tests.
Todd C. Miller [Wed, 26 Oct 2011 14:19:48 +0000 (10:19 -0400)]
Disable warning/error wrapping in regress tests.

13 years agoDo compile-po as part of sync-po so that the .mo files get rebuild
Todd C. Miller [Tue, 25 Oct 2011 18:54:38 +0000 (14:54 -0400)]
Do compile-po as part of sync-po so that the .mo files get rebuild
automatically when we sync with translationproject.org

13 years agocheck_addr needs to link with the network libraries on Solaris
Todd C. Miller [Tue, 25 Oct 2011 18:50:54 +0000 (14:50 -0400)]
check_addr needs to link with the network libraries on Solaris

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

13 years agoWe need to init the auth system regardless of whether we need a
Todd C. Miller [Tue, 25 Oct 2011 14:08:26 +0000 (10:08 -0400)]
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

13 years agoGet rid of done: label. If the child exits we still need to close
Todd C. Miller [Mon, 24 Oct 2011 15:14:20 +0000 (11:14 -0400)]
Get rid of done: label.  If the child exits we still need to close
the pty, update utmp and restore the SELinux tty context.

13 years agoAdd debug_decl/debug_return (almost) everywhere.
Todd C. Miller [Sat, 22 Oct 2011 18:40:21 +0000 (14:40 -0400)]
Add debug_decl/debug_return (almost) everywhere.
Remove old sudo_debug() and convert users to sudo_debug_printf().

13 years agoWrap error/errorx and warning/warningx functions with debug statements.
Todd C. Miller [Sat, 22 Oct 2011 18:28:33 +0000 (14:28 -0400)]
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).

13 years agoAdd checks for __func__ and __FUNCTION__ and mention that we now
Todd C. Miller [Sat, 22 Oct 2011 18:20:52 +0000 (14:20 -0400)]
Add checks for __func__ and __FUNCTION__ and mention that we now
require a cpp that supports variadic macros.

13 years agoNew debug framework for sudo and plugins using /etc/sudo.conf that
Todd C. Miller [Sat, 22 Oct 2011 18:00:52 +0000 (14:00 -0400)]
New debug framework for sudo and plugins using /etc/sudo.conf that
also supports function call tracing.

13 years agoAdded tag SUDO_1_8_3 for changeset 82bec4d3a203
Todd C. Miller [Fri, 21 Oct 2011 13:02:54 +0000 (09:02 -0400)]
Added tag SUDO_1_8_3 for changeset 82bec4d3a203

--HG--
branch : 1.8

13 years agoUpdate Japanese sudoers translation from translationproject.org SUDO_1_8_3
Todd C. Miller [Fri, 21 Oct 2011 13:02:12 +0000 (09:02 -0400)]
Update Japanese sudoers translation from translationproject.org

--HG--
branch : 1.8

13 years agoUpdate Japanese sudoers translation from translationproject.org
Todd C. Miller [Fri, 21 Oct 2011 13:00:42 +0000 (09:00 -0400)]
Update Japanese sudoers translation from translationproject.org

13 years agoOverride and ignore the --disable-static option. Sudo already runs
Todd C. Miller [Wed, 12 Oct 2011 12:30:23 +0000 (08:30 -0400)]
Override and ignore the --disable-static option.  Sudo already runs
libtool with -tag=disable-static where applicable and we need non-PIC
objects to build the executables.

--HG--
branch : 1.8

13 years agoOverride and ignore the --disable-static option. Sudo already runs
Todd C. Miller [Wed, 12 Oct 2011 12:24:13 +0000 (08:24 -0400)]
Override and ignore the --disable-static option.  Sudo already runs
libtool with -tag=disable-static where applicable and we need non-PIC
objects to build the executables.

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

--HG--
branch : 1.8

13 years agoregen pot files
Todd C. Miller [Mon, 10 Oct 2011 19:53:08 +0000 (15:53 -0400)]
regen pot files

--HG--
branch : 1.8

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

13 years agoregen pot files
Todd C. Miller [Mon, 10 Oct 2011 19:50:41 +0000 (15:50 -0400)]
regen pot files

13 years agoIgnore set_logname (which is now the default) for sudoedit since
Todd C. Miller [Mon, 10 Oct 2011 17:13:04 +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.8

13 years agoIgnore set_logname (which is now the default) for sudoedit since
Todd C. Miller [Mon, 10 Oct 2011 17:10:24 +0000 (13:10 -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

13 years agoInstead of trying to grow the buffer in make_grlist_item(), simply
Todd C. Miller [Mon, 10 Oct 2011 16:43:45 +0000 (12:43 -0400)]
Instead of trying to grow the buffer in make_grlist_item(), simply
increase the total length, free the old buffer and allocate a new
one.  This is less error prone and saves us from having to adjust
all the pointers in the buffer.  This code path is only taken when
there are groups longer than the length of the user field in struct
utmp or utmpx, which should be quite rare.

--HG--
branch : 1.8

13 years agoAdd Italian translation for sudo from translationproject.org
Todd C. Miller [Mon, 10 Oct 2011 16:43:36 +0000 (12:43 -0400)]
Add Italian translation for sudo from translationproject.org

--HG--
branch : 1.8

13 years agoInstead of trying to grow the buffer in make_grlist_item(), simply
Todd C. Miller [Mon, 10 Oct 2011 15:10:59 +0000 (11:10 -0400)]
Instead of trying to grow the buffer in make_grlist_item(), simply
increase the total length, free the old buffer and allocate a new
one.  This is less error prone and saves us from having to adjust
all the pointers in the buffer.  This code path is only taken when
there are groups longer than the length of the user field in struct
utmp or utmpx, which should be quite rare.

13 years agoAdd Italian translation for sudo from translationproject.org
Todd C. Miller [Mon, 10 Oct 2011 15:00:09 +0000 (11:00 -0400)]
Add Italian translation for sudo from translationproject.org

13 years agoJapanese translation for sudo and sudoers from translationproject.org
Todd C. Miller [Mon, 10 Oct 2011 10:46:46 +0000 (06:46 -0400)]
Japanese translation for sudo and sudoers from translationproject.org

--HG--
branch : 1.8

13 years agoJapanese translation for sudo and sudoers from translationproject.org
Todd C. Miller [Mon, 10 Oct 2011 10:45:28 +0000 (06:45 -0400)]
Japanese translation for sudo and sudoers from translationproject.org

13 years agosudoreplay depends on timestr.lo too; from Mike Frysinger
Todd C. Miller [Fri, 7 Oct 2011 20:14:49 +0000 (16:14 -0400)]
sudoreplay depends on timestr.lo too; from Mike Frysinger

--HG--
branch : 1.8

13 years agosudoreplay depends on timestr.lo too; from Mike Frysinger
Todd C. Miller [Fri, 7 Oct 2011 20:09:48 +0000 (16:09 -0400)]
sudoreplay depends on timestr.lo too; from Mike Frysinger

13 years agoRegen sudoers pot file.
Todd C. Miller [Tue, 4 Oct 2011 16:32:33 +0000 (12:32 -0400)]
Regen sudoers pot file.

--HG--
branch : 1.8

13 years agoRegen sudoers pot file.
Todd C. Miller [Tue, 4 Oct 2011 16:32:05 +0000 (12:32 -0400)]
Regen sudoers pot file.

13 years agoUpdate with latest sudo 1.8.3 news
Todd C. Miller [Tue, 4 Oct 2011 16:22:49 +0000 (12:22 -0400)]
Update with latest sudo 1.8.3 news

--HG--
branch : 1.8

13 years agoUpdate with latest sudo 1.8.3 news
Todd C. Miller [Tue, 4 Oct 2011 16:22:08 +0000 (12:22 -0400)]
Update with latest sudo 1.8.3 news

13 years agoldap_start_tls_s() on Debian (at least) sets the effective and saved
Todd C. Miller [Tue, 4 Oct 2011 16:09:00 +0000 (12:09 -0400)]
ldap_start_tls_s() on Debian (at least) sets the effective and saved
uids to the same value as the real uid.  This prevents sudo from
setting the uid or gid later on.  As a workaround, we now set perms
to root during sudoers_policy_open().

--HG--
branch : 1.8

13 years agoBetter warning message on setuid() failure for the setreuid()
Todd C. Miller [Tue, 4 Oct 2011 15:54:51 +0000 (11:54 -0400)]
Better warning message on setuid() failure for the setreuid()
version of set_perms().

--HG--
branch : 1.8

13 years agoIt appears that LDAP or NSS may modify the euid so we need to be
Todd C. Miller [Tue, 4 Oct 2011 15:15:06 +0000 (11:15 -0400)]
It appears that LDAP or NSS may modify the euid so we need to be
root for the open().  We restore the old perms at the end of
sudoers_policy_open().

13 years agoBetter warning message on setuid() failure for the setreuid()
Todd C. Miller [Tue, 4 Oct 2011 15:13:28 +0000 (11:13 -0400)]
Better warning message on setuid() failure for the setreuid()
version of set_perms().

13 years agoCombine new translations in NEWS item
Todd C. Miller [Sun, 2 Oct 2011 18:38:26 +0000 (14:38 -0400)]
Combine new translations in NEWS item

--HG--
branch : 1.8

13 years agoDelref auth_pw at the end of check_user() instead of getting a ref
Todd C. Miller [Tue, 27 Sep 2011 21:52:30 +0000 (17:52 -0400)]
Delref auth_pw at the end of check_user() instead of getting a ref
twice.

--HG--
branch : 1.8

13 years agoMake sudo_auth_{init,cleanup} return TRUE on success and check for
Todd C. Miller [Tue, 27 Sep 2011 21:52:16 +0000 (17:52 -0400)]
Make sudo_auth_{init,cleanup} return TRUE on success and check for
sudo_auth_init() return value in check_user().

--HG--
branch : 1.8

13 years agoDo not return without restoring permissions.
Todd C. Miller [Tue, 27 Sep 2011 21:51:46 +0000 (17:51 -0400)]
Do not return without restoring permissions.

--HG--
branch : 1.8

13 years agoregen pot files
Todd C. Miller [Tue, 27 Sep 2011 21:51:33 +0000 (17:51 -0400)]
regen pot files

--HG--
branch : 1.8

13 years agoDelref auth_pw at the end of check_user() instead of getting a ref
Todd C. Miller [Tue, 27 Sep 2011 20:21:21 +0000 (16:21 -0400)]
Delref auth_pw at the end of check_user() instead of getting a ref
twice.

13 years agoMake sudo_auth_{init,cleanup} return TRUE on success and check for
Todd C. Miller [Tue, 27 Sep 2011 19:41:22 +0000 (15:41 -0400)]
Make sudo_auth_{init,cleanup} return TRUE on success and check for
sudo_auth_init() return value in check_user().

13 years agoDo not return without restoring permissions.
Todd C. Miller [Tue, 27 Sep 2011 19:22:08 +0000 (15:22 -0400)]
Do not return without restoring permissions.

13 years agoUpdate for latest release candidate
Todd C. Miller [Tue, 27 Sep 2011 18:22:48 +0000 (14:22 -0400)]
Update for latest release candidate

--HG--
branch : 1.8

13 years agoregen pot files
Todd C. Miller [Tue, 27 Sep 2011 18:07:51 +0000 (14:07 -0400)]
regen pot files

--HG--
branch : 1.8

13 years agoregen pot files
Todd C. Miller [Tue, 27 Sep 2011 18:07:18 +0000 (14:07 -0400)]
regen pot files

13 years agoModify the authentication API such that the init and cleanup functions
Todd C. Miller [Tue, 27 Sep 2011 17:59:12 +0000 (13:59 -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.8

13 years agoAdd missing dependency for getspwgen other depends.
Todd C. Miller [Tue, 27 Sep 2011 17:58:50 +0000 (13:58 -0400)]
Add missing dependency for getspwgen other depends.

--HG--
branch : 1.8

13 years agoFix a PAM_USER mismatch in session open/close. We update PAM_USER
Todd C. Miller [Tue, 27 Sep 2011 17:58:17 +0000 (13:58 -0400)]
Fix a PAM_USER mismatch in session open/close.  We update PAM_USER
to the target user immediately before setting resource limits, which
is after the monitor process has forked (so it has the old value).
Also, if the user did not authenticate, there is no pamh in the
monitor so we need to init pam here too.  This means we end up
calling pam_start() twice, which should be fixed, but at least the
session is always properly closed now.

--HG--
branch : 1.8