]> granicus.if.org Git - sudo/log
sudo
14 years agoAdd timed entry support from Andreas Mueller.
Todd C. Miller [Thu, 11 Nov 2010 21:54:45 +0000 (16:54 -0500)]
Add timed entry support from Andreas Mueller.

--HG--
branch : 1.7

14 years agoUse efree() not free() and remove malloc.h include since we never
Todd C. Miller [Thu, 11 Nov 2010 21:09:34 +0000 (16:09 -0500)]
Use efree() not free() and remove malloc.h include since we never
directly call malloc() or free().

--HG--
branch : 1.7

14 years agoInclude config.h before any other includes to make sure we get the
Todd C. Miller [Wed, 10 Nov 2010 14:10:16 +0000 (09:10 -0500)]
Include config.h before any other includes to make sure we get the
right value for _FILE_OFFSET_BITS.

--HG--
branch : 1.7

14 years agoset PSTAMP for Solaris and move the backend-specific bits to their
Todd C. Miller [Tue, 9 Nov 2010 16:13:24 +0000 (11:13 -0500)]
set PSTAMP for Solaris and move the backend-specific bits to their
own %if [xxx] %endif blocks in %set.

--HG--
branch : 1.7

14 years agosync with git repo
Todd C. Miller [Tue, 9 Nov 2010 15:56:11 +0000 (10:56 -0500)]
sync with git repo

--HG--
branch : 1.7

14 years agoremove zlib/zconf.h for distclean
Todd C. Miller [Wed, 3 Nov 2010 17:17:29 +0000 (13:17 -0400)]
remove zlib/zconf.h for distclean

--HG--
branch : 1.7

14 years agoregen man pages for 1.7.5
Todd C. Miller [Wed, 3 Nov 2010 15:13:31 +0000 (11:13 -0400)]
regen man pages for 1.7.5

--HG--
branch : 1.7

14 years agoregen
Todd C. Miller [Wed, 3 Nov 2010 15:13:00 +0000 (11:13 -0400)]
regen

--HG--
branch : 1.7

14 years agoUpdate 1.7.5 entries.
Todd C. Miller [Wed, 3 Nov 2010 14:03:02 +0000 (10:03 -0400)]
Update 1.7.5 entries.

--HG--
branch : 1.7

14 years agoInclude zlib in the tar file.
Todd C. Miller [Tue, 2 Nov 2010 21:11:09 +0000 (17:11 -0400)]
Include zlib in the tar file.

--HG--
branch : 1.7

14 years agoBetter --enable-zlib description
Todd C. Miller [Thu, 28 Oct 2010 18:29:42 +0000 (14:29 -0400)]
Better --enable-zlib description

--HG--
branch : 1.7

14 years agoUse system zlib on Linux
Todd C. Miller [Thu, 28 Oct 2010 16:24:51 +0000 (12:24 -0400)]
Use system zlib on Linux
Let configure decide on Solaris
For all others, use builtin zlib

--HG--
branch : 1.7

14 years agoAdd local copy of zlib for systems that lack it.
Todd C. Miller [Thu, 28 Oct 2010 16:21:24 +0000 (12:21 -0400)]
Add local copy of zlib for systems that lack it.

--HG--
branch : 1.7

14 years agoDon't overwrite ChangeLog if we can't run hg
Todd C. Miller [Tue, 12 Oct 2010 13:36:19 +0000 (09:36 -0400)]
Don't overwrite ChangeLog if we can't run hg

--HG--
branch : 1.7

14 years agoHP-UX 10.20 libc has an incompatible getline()
Todd C. Miller [Tue, 12 Oct 2010 13:24:03 +0000 (09:24 -0400)]
HP-UX 10.20 libc has an incompatible getline()

--HG--
branch : 1.7

14 years agoQuiet an HP-UX compiler warning.
Todd C. Miller [Tue, 12 Oct 2010 13:23:29 +0000 (09:23 -0400)]
Quiet an HP-UX compiler warning.

--HG--
branch : 1.7

14 years agoDon't use run_as_superuser=false on HP-UX
Todd C. Miller [Mon, 11 Oct 2010 20:14:52 +0000 (16:14 -0400)]
Don't use run_as_superuser=false on HP-UX

--HG--
branch : 1.7

14 years agoUpdate from git repo.
Todd C. Miller [Mon, 11 Oct 2010 18:23:58 +0000 (14:23 -0400)]
Update from git repo.
Debian: version numbers now compliant with policy section 5.6.12
HP-UX: minimal changes needed to work on HP-UX 10.20

--HG--
branch : 1.7

14 years agoGo back to checking whether the compiler is ANSI C when detecting
Todd C. Miller [Mon, 11 Oct 2010 16:11:23 +0000 (12:11 -0400)]
Go back to checking whether the compiler is ANSI C when detecting
the HP-UX bundled C compiler.

--HG--
branch : 1.7

14 years agoFix syntax error
Todd C. Miller [Mon, 11 Oct 2010 15:51:20 +0000 (11:51 -0400)]
Fix syntax error

--HG--
branch : 1.7

14 years agoIf pam_acct_mgmt() returns PAM_AUTH_ERR print a (hopefully) more useful
Todd C. Miller [Mon, 11 Oct 2010 12:55:31 +0000 (08:55 -0400)]
If pam_acct_mgmt() returns PAM_AUTH_ERR print a (hopefully) more useful
message and return AUTH_FATAL so sudo does not keep trying to validate
the user.

--HG--
branch : 1.7

14 years agodon't need ws_col here
Todd C. Miller [Thu, 7 Oct 2010 18:08:44 +0000 (14:08 -0400)]
don't need ws_col here

--HG--
branch : 1.7

14 years agoHaving a timestamp file defined is no longer indicative of tty tickets
Todd C. Miller [Thu, 7 Oct 2010 18:08:16 +0000 (14:08 -0400)]
Having a timestamp file defined is no longer indicative of tty tickets
being enabled.  Check def_tty_tickets directly.

--HG--
branch : 1.7

14 years agoFix TCGETWINSZ compat.
Todd C. Miller [Thu, 7 Oct 2010 17:59:39 +0000 (13:59 -0400)]
Fix TCGETWINSZ compat.

--HG--
branch : 1.7

14 years agoPrefer newer TIOCGWINSZ ioctl to old TIOCGSIZE
Todd C. Miller [Sat, 2 Oct 2010 21:07:27 +0000 (17:07 -0400)]
Prefer newer TIOCGWINSZ ioctl to old TIOCGSIZE

--HG--
branch : 1.7

14 years agoSync set_project() with trunk.
Todd C. Miller [Fri, 1 Oct 2010 17:52:59 +0000 (13:52 -0400)]
Sync set_project() with trunk.

--HG--
branch : 1.7

14 years agoWhen iterating over returned LDAP entries, keep looking at remaining
Todd C. Miller [Fri, 1 Oct 2010 16:12:54 +0000 (12:12 -0400)]
When iterating over returned LDAP entries, keep looking at remaining
matches even if we have a positive match.  This catches negative
matches that may exist in other entries and more closely match the
sudoers file behavior.

--HG--
branch : 1.7

14 years agoAdd support for multiple package instances on Solaris.
Todd C. Miller [Fri, 1 Oct 2010 16:07:45 +0000 (12:07 -0400)]
Add support for multiple package instances on Solaris.

--HG--
branch : 1.7

14 years agoMove set_project() into runas_setup(). Fixes a NULL deref when
Todd C. Miller [Fri, 1 Oct 2010 16:05:14 +0000 (12:05 -0400)]
Move set_project() into runas_setup().  Fixes a NULL deref when
project support is enabled and sudo's -g flag is used without the
-u flag.

--HG--
branch : 1.7

14 years agoAdd missing signal_pipe[0] to fdsr for the non-pty case.
Todd C. Miller [Fri, 1 Oct 2010 16:03:55 +0000 (12:03 -0400)]
Add missing signal_pipe[0] to fdsr for the non-pty case.

--HG--
branch : 1.7

14 years agoAdd --with-project for Solaris
Todd C. Miller [Fri, 1 Oct 2010 15:35:51 +0000 (11:35 -0400)]
Add --with-project for Solaris

--HG--
branch : 1.7

14 years agoNeed ar and ranlib too
Todd C. Miller [Fri, 1 Oct 2010 13:38:33 +0000 (09:38 -0400)]
Need ar and ranlib too

--HG--
branch : 1.7

14 years agoPreserve ODMDIR environment variable by default on AIX.
Todd C. Miller [Mon, 27 Sep 2010 18:09:34 +0000 (14:09 -0400)]
Preserve ODMDIR environment variable by default on AIX.

--HG--
branch : 1.7

14 years agoIgnore ECONNREFUSED from audit_log_user_command() which will
Todd C. Miller [Tue, 21 Sep 2010 11:56:36 +0000 (07:56 -0400)]
Ignore ECONNREFUSED from audit_log_user_command() which will
occur if auditd is not running.

--HG--
branch : 1.7

14 years agoSync with git version
Todd C. Miller [Fri, 17 Sep 2010 16:13:17 +0000 (12:13 -0400)]
Sync with git version

--HG--
branch : 1.7

14 years agoCast isblank argument to unsigned char.
Todd C. Miller [Thu, 16 Sep 2010 14:40:34 +0000 (10:40 -0400)]
Cast isblank argument to unsigned char.

--HG--
branch : 1.7

14 years agoImplement --with-umask-override configure flag.
Todd C. Miller [Tue, 14 Sep 2010 21:12:33 +0000 (17:12 -0400)]
Implement --with-umask-override configure flag.

--HG--
branch : 1.7

14 years agoTake MODE_LOGIN_SHELL into account when initially setting reset_home
Todd C. Miller [Tue, 14 Sep 2010 15:44:39 +0000 (11:44 -0400)]
Take MODE_LOGIN_SHELL into account when initially setting reset_home
instead of special-casing it later.

--HG--
branch : 1.7

14 years agoIn login mode, make a copy of the runas user's pw_shell for NewArgv[0]
Todd C. Miller [Tue, 14 Sep 2010 15:30:20 +0000 (11:30 -0400)]
In login mode, make a copy of the runas user's pw_shell for NewArgv[0]
because 1) we modify it and 2) it will runas_pw gets freed before exec.

--HG--
branch : 1.7

14 years agoReset HOME for "sudo -i" even if HOME was listed in env_keep.
Todd C. Miller [Tue, 14 Sep 2010 15:28:41 +0000 (11:28 -0400)]
Reset HOME for "sudo -i" even if HOME was listed in env_keep.

--HG--
branch : 1.7

14 years agoUse SIG_SETMASK when resetting signal mask instead of SIG_UNBLOCK.
Todd C. Miller [Tue, 14 Sep 2010 13:25:58 +0000 (09:25 -0400)]
Use SIG_SETMASK when resetting signal mask instead of SIG_UNBLOCK.

--HG--
branch : 1.7

14 years agoReset signal mask at sudo startup time; we need to be able to rely on
Todd C. Miller [Tue, 14 Sep 2010 13:23:28 +0000 (09:23 -0400)]
Reset signal mask at sudo startup time; we need to be able to rely on
normal signal delivery to control the child process.

--HG--
branch : 1.7

14 years agoFix SIG_UNBLOCK emulation
Todd C. Miller [Tue, 14 Sep 2010 13:21:59 +0000 (09:21 -0400)]
Fix SIG_UNBLOCK emulation

--HG--
branch : 1.7

14 years agoUse sed instead of expr to split a flag from its argument.
Todd C. Miller [Mon, 13 Sep 2010 20:34:16 +0000 (16:34 -0400)]
Use sed instead of expr to split a flag from its argument.
Fixes a problem with expr interpreting its arguments as a flag
when they start with a dash.

--HG--
branch : 1.7

14 years agoBack out rev e165f67d3127
Todd C. Miller [Mon, 13 Sep 2010 17:20:20 +0000 (13:20 -0400)]
Back out rev e165f67d3127

--HG--
branch : 1.7

14 years agoInclude sys/time.h for utimes() and struct timeval.
Todd C. Miller [Mon, 13 Sep 2010 17:16:59 +0000 (13:16 -0400)]
Include sys/time.h for utimes() and struct timeval.

--HG--
branch : 1.7

14 years agoQuiet bogus compiler warnings.
Todd C. Miller [Mon, 13 Sep 2010 16:19:03 +0000 (12:19 -0400)]
Quiet bogus compiler warnings.

--HG--
branch : 1.7

14 years agoDeclare innetgr() for HP-UX which is missing a declaration.
Todd C. Miller [Mon, 13 Sep 2010 15:53:01 +0000 (11:53 -0400)]
Declare innetgr() for HP-UX which is missing a declaration.
Declare domainname() for HP-UX and Solaris which are missing a declaration.

--HG--
branch : 1.7

14 years agoUse __sun for consistency with the rest of the sources.
Todd C. Miller [Mon, 13 Sep 2010 15:48:51 +0000 (11:48 -0400)]
Use __sun for consistency with the rest of the sources.

--HG--
branch : 1.7

14 years agoDon't try to delref a NULL group.
Todd C. Miller [Mon, 13 Sep 2010 15:08:27 +0000 (11:08 -0400)]
Don't try to delref a NULL group.

--HG--
branch : 1.7

14 years agoInclude memory.h on systems that need it.
Todd C. Miller [Mon, 13 Sep 2010 14:40:37 +0000 (10:40 -0400)]
Include memory.h on systems that need it.

--HG--
branch : 1.7

14 years agoQuiet gcc warnings on glibc systems that use warn_unused_result for
Todd C. Miller [Sat, 11 Sep 2010 13:26:20 +0000 (09:26 -0400)]
Quiet gcc warnings on glibc systems that use warn_unused_result for
write(2).

--HG--
branch : 1.7

14 years agoUpdate for sudo 1.7.5
Todd C. Miller [Fri, 10 Sep 2010 17:56:20 +0000 (13:56 -0400)]
Update for sudo 1.7.5

--HG--
branch : 1.7

14 years agoInstead of using a array to store received signals, open a pipe and
Todd C. Miller [Fri, 10 Sep 2010 17:19:26 +0000 (13:19 -0400)]
Instead of using a array to store received signals, open a pipe and
have the signal handler write the signal number to one end and
select() on the other end.  This makes it possible to handle signals
similar to I/O without race conditions.

--HG--
branch : 1.7

14 years ago--with-iologdir not --enable-iologdir
Todd C. Miller [Fri, 10 Sep 2010 17:16:52 +0000 (13:16 -0400)]
--with-iologdir not --enable-iologdir

--HG--
branch : 1.7

14 years agoMake "visudo -c -f -" check the standard input.
Todd C. Miller [Thu, 9 Sep 2010 21:09:54 +0000 (17:09 -0400)]
Make "visudo -c -f -" check the standard input.

--HG--
branch : 1.7

14 years agoset_home and always_set_home have an effect if HOME is present in
Todd C. Miller [Thu, 9 Sep 2010 20:22:08 +0000 (16:22 -0400)]
set_home and always_set_home have an effect if HOME is present in
the env_keep list.

--HG--
branch : 1.7

14 years agoMake -H flag work when HOME is listed in env_keep. Also makes
Todd C. Miller [Thu, 9 Sep 2010 20:16:19 +0000 (16:16 -0400)]
Make -H flag work when HOME is listed in env_keep.  Also makes
"set_home" and "always_set_home" override override HOME in env_keep.

--HG--
branch : 1.7

14 years agoSolaris BSM audit return EINVAL when auditing is not enabled, whereas
Todd C. Miller [Wed, 8 Sep 2010 13:46:49 +0000 (09:46 -0400)]
Solaris BSM audit return EINVAL when auditing is not enabled, whereas
OpenBSM returns ENOSYS.

--HG--
branch : 1.7

14 years agoAdd missing LOG_INPUT/LOG_OUTPUT support in the lexer.
Todd C. Miller [Tue, 7 Sep 2010 21:15:43 +0000 (17:15 -0400)]
Add missing LOG_INPUT/LOG_OUTPUT support in the lexer.

--HG--
branch : 1.7

14 years agoSet NewArgv[0] to the name of the pseudo-command we are running.
Todd C. Miller [Tue, 7 Sep 2010 21:00:32 +0000 (17:00 -0400)]
Set NewArgv[0] to the name of the pseudo-command we are running.
Fixes a problem with "sudo -l" when auditing is enabled and the
user is not allowed to run any commands on the host.
Adapted from a patch from Daniel Kopecek.

--HG--
branch : 1.7

14 years agoUpdate comment to reality.
Todd C. Miller [Tue, 7 Sep 2010 14:27:45 +0000 (10:27 -0400)]
Update comment to reality.

--HG--
branch : 1.7

14 years agoNeed stdio.h for FILE *, not just NULL.
Todd C. Miller [Tue, 7 Sep 2010 14:24:51 +0000 (10:24 -0400)]
Need stdio.h for FILE *, not just NULL.

--HG--
branch : 1.7

14 years agoWhen matching the runas user and runas group (-u and -g command
Todd C. Miller [Mon, 6 Sep 2010 11:56:25 +0000 (07:56 -0400)]
When matching the runas user and runas group (-u and -g command
line options), keep track of runas group and runas user matches
separately.  Only return a positive match if we have a match for
both runas user and runas group (if specified).

--HG--
branch : 1.7

14 years agoDo not return -1 on error from the display functions; the call expects
Todd C. Miller [Sat, 4 Sep 2010 12:33:45 +0000 (08:33 -0400)]
Do not return -1 on error from the display functions; the call expects
a return value >= 0.

--HG--
branch : 1.7

14 years agodisplay_bound_defaults now returns a count so make the stub
Todd C. Miller [Sat, 4 Sep 2010 11:47:27 +0000 (07:47 -0400)]
display_bound_defaults now returns a count so make the stub
return 0, not 1.

--HG--
branch : 1.7

14 years agoAdd #include of sys/types.h for .c files that include missing.h to
Todd C. Miller [Sat, 4 Sep 2010 11:22:31 +0000 (07:22 -0400)]
Add #include of sys/types.h for .c files that include missing.h to
be sure that size_t and ssize_t are defined.

--HG--
branch : 1.7

14 years agoIt looks like AIX doesn't need to push STREAMS modules for ptys.
Todd C. Miller [Fri, 3 Sep 2010 21:30:28 +0000 (17:30 -0400)]
It looks like AIX doesn't need to push STREAMS modules for ptys.

--HG--
branch : 1.7

14 years agoAdd #include of sys/types.h for .c files that include missing.h to
Todd C. Miller [Mon, 30 Aug 2010 13:08:16 +0000 (09:08 -0400)]
Add #include of sys/types.h for .c files that include missing.h to
be sure that size_t and ssize_t are defined.

--HG--
branch : 1.7

14 years agoInstall sudoers file from the build dir not hte src dir.
Todd C. Miller [Mon, 30 Aug 2010 13:06:04 +0000 (09:06 -0400)]
Install sudoers file from the build dir not hte src dir.

--HG--
branch : 1.7

14 years agoIf runas_pw changes, reset the stashed runas aux group vector.
Todd C. Miller [Thu, 26 Aug 2010 15:36:47 +0000 (11:36 -0400)]
If runas_pw changes, reset the stashed runas aux group vector.
Otherwise, if runas_default is set in a per-command Defaults statement,
the command runs with root's aux group vector (i.e. the one that
was used when locating the command).

--HG--
branch : 1.7

14 years agoAdd target to generate sudoers file
Todd C. Miller [Thu, 26 Aug 2010 15:10:00 +0000 (11:10 -0400)]
Add target to generate sudoers file
Remove generated sudoers file as part of distclean

--HG--
branch : 1.7

14 years agoWhen not logging I/O install a handler for SIGCONT and deliver it
millert@rh4-x86.home.courtesan.com [Tue, 24 Aug 2010 01:01:00 +0000 (21:01 -0400)]
When not logging I/O install a handler for SIGCONT and deliver it
to the command upon resume.  Fixes bugzilla #431

--HG--
branch : 1.7

14 years agog/c unused auth_pw global
Todd C. Miller [Sat, 21 Aug 2010 14:02:29 +0000 (10:02 -0400)]
g/c unused auth_pw global

--HG--
branch : 1.7

14 years agoMove get_auth() into check.c where it is actually used.
Todd C. Miller [Sat, 21 Aug 2010 12:48:13 +0000 (08:48 -0400)]
Move get_auth() into check.c where it is actually used.

--HG--
branch : 1.7

14 years agoDon't need to fork and wait when compiled with --disable-pam-session
Todd C. Miller [Sat, 21 Aug 2010 12:31:21 +0000 (08:31 -0400)]
Don't need to fork and wait when compiled with --disable-pam-session

--HG--
branch : 1.7

14 years agoConvert a remaining puts() and putchar() to use the output function.
Todd C. Miller [Fri, 20 Aug 2010 20:54:57 +0000 (16:54 -0400)]
Convert a remaining puts() and putchar() to use the output function.

--HG--
branch : 1.7

14 years agoReplace sudoers with sudoers.in in DISTFILES
Todd C. Miller [Wed, 18 Aug 2010 19:32:30 +0000 (15:32 -0400)]
Replace sudoers with sudoers.in in DISTFILES

--HG--
branch : 1.7

14 years agoSet dupcheck to TRUE when setting new HOME value if !env_reset but
Todd C. Miller [Wed, 18 Aug 2010 19:25:19 +0000 (15:25 -0400)]
Set dupcheck to TRUE when setting new HOME value if !env_reset but
always_set_home is true.  Prevents a duplicate HOME in the environment
(old value plus the new one) introduced in 9f97e4b43a4b.

--HG--
branch : 1.7

14 years agoSubstitute sysconfdir in the installed sudoers file to get the
Todd C. Miller [Wed, 18 Aug 2010 11:42:47 +0000 (07:42 -0400)]
Substitute sysconfdir in the installed sudoers file to get the
correct path for sudoers.d.

--HG--
branch : 1.7

14 years agoFix typos that prevented compilation on Irix; Friedrich Haubensak
Todd C. Miller [Tue, 17 Aug 2010 13:49:59 +0000 (09:49 -0400)]
Fix typos that prevented compilation on Irix; Friedrich Haubensak

--HG--
branch : 1.7

14 years agoMerge compat.h and missing.h into missing.h
Todd C. Miller [Mon, 16 Aug 2010 18:22:14 +0000 (14:22 -0400)]
Merge compat.h and missing.h into missing.h

--HG--
branch : 1.7

14 years agoIf the user hits ^C while a password is being read, error out before
Todd C. Miller [Sat, 14 Aug 2010 14:18:27 +0000 (10:18 -0400)]
If the user hits ^C while a password is being read, error out before
reading any further passwords in the pam conversation function.
Otherwise, if multiple PAM auth methods are required, the user will
have to hit ^C for each one.

--HG--
branch : 1.7

14 years agoFix waitpid() loop termination condition.
Todd C. Miller [Mon, 9 Aug 2010 10:34:55 +0000 (06:34 -0400)]
Fix waitpid() loop termination condition.

--HG--
branch : 1.7

14 years agoUse sudo_waitpid() instead of bare waitpid()
Todd C. Miller [Mon, 9 Aug 2010 10:31:14 +0000 (06:31 -0400)]
Use sudo_waitpid() instead of bare waitpid()

--HG--
branch : 1.7

14 years agoSet pp_kit_version and strip off patchlevel
Todd C. Miller [Sat, 7 Aug 2010 18:28:46 +0000 (14:28 -0400)]
Set pp_kit_version and strip off patchlevel

--HG--
branch : 1.7

14 years agoBetter handling of versions with a patchlevel. For rpm and deb, use
Todd C. Miller [Sat, 7 Aug 2010 15:08:16 +0000 (11:08 -0400)]
Better handling of versions with a patchlevel.  For rpm and deb, use
the patchlevel+1 as the release.  For AIX, use the patchlevel as the
4th version number.  For the rest, just leave the patchlevel in the
version string.

--HG--
branch : 1.7

14 years agoFor non-standalone auth methods, stop reading the password if the
Todd C. Miller [Fri, 6 Aug 2010 21:09:03 +0000 (17:09 -0400)]
For non-standalone auth methods, stop reading the password if the
user enters ^C at the prompt.

--HG--
branch : 1.7

14 years agoDon't print getspwuid as an auth method.
Todd C. Miller [Fri, 6 Aug 2010 16:19:54 +0000 (12:19 -0400)]
Don't print getspwuid as an auth method.

--HG--
branch : 1.7

14 years agoNo need to look up shadow password unless we are doing password-style
Todd C. Miller [Fri, 6 Aug 2010 14:02:02 +0000 (10:02 -0400)]
No need to look up shadow password unless we are doing password-style
authentication.  This moves the shadow password lookup to the auth
functions that need it.

--HG--
branch : 1.7

14 years agoWhen removing/resetting the timestamp file ignore the tty ticket contents.
Todd C. Miller [Fri, 6 Aug 2010 13:39:01 +0000 (09:39 -0400)]
When removing/resetting the timestamp file ignore the tty ticket contents.

--HG--
branch : 1.7

14 years agodelref sudo_user.pw, runas_pw and runas_gr immediately before we exec.
Todd C. Miller [Thu, 5 Aug 2010 14:17:21 +0000 (10:17 -0400)]
delref sudo_user.pw, runas_pw and runas_gr immediately before we exec.

--HG--
branch : 1.7

14 years agoMove calls to sudo_endgrent() and sudo_endpwent() to be after
Todd C. Miller [Thu, 5 Aug 2010 13:45:21 +0000 (09:45 -0400)]
Move calls to sudo_endgrent() and sudo_endpwent() to be after
set_perms(), which may do passwd or group lookups.

--HG--
branch : 1.7

14 years agoMake sure we don't try to delref NULL.
Todd C. Miller [Wed, 4 Aug 2010 13:58:34 +0000 (09:58 -0400)]
Make sure we don't try to delref NULL.

--HG--
branch : 1.7

14 years agoAdd missing delref in user_in_group()
Todd C. Miller [Wed, 4 Aug 2010 13:48:51 +0000 (09:48 -0400)]
Add missing delref in user_in_group()

--HG--
branch : 1.7

14 years agodelref the old runas group in set_runasgr()
Todd C. Miller [Wed, 4 Aug 2010 13:43:29 +0000 (09:43 -0400)]
delref the old runas group in set_runasgr()

--HG--
branch : 1.7

14 years agoRepair usergr_matches() return value broken in last checkin.
Todd C. Miller [Wed, 4 Aug 2010 13:32:52 +0000 (09:32 -0400)]
Repair usergr_matches() return value broken in last checkin.

--HG--
branch : 1.7

14 years agoReference count cached passwd and group structs. The cache holds
Todd C. Miller [Wed, 4 Aug 2010 13:13:17 +0000 (09:13 -0400)]
Reference count cached passwd and group structs.  The cache holds
one reference itself and another is added by sudo_getgr{gid,nam}
and sudo_getpw{uid,nam}.  The final ref on the runas and user passwd
and group structs are persistent for now.

--HG--
branch : 1.7

14 years agoFix typo
Todd C. Miller [Wed, 4 Aug 2010 12:41:49 +0000 (08:41 -0400)]
Fix typo

--HG--
branch : 1.7

14 years agoDo not produce a warning for "sudo -k" if the ticket file does not
Todd C. Miller [Tue, 3 Aug 2010 19:14:55 +0000 (15:14 -0400)]
Do not produce a warning for "sudo -k" if the ticket file does not
exist.

--HG--
branch : 1.7