]> granicus.if.org Git - sudo/log
sudo
19 years agoZero old pw_passwd before replacing with version from shadow file.
Todd C. Miller [Sat, 19 Mar 2005 03:08:40 +0000 (03:08 +0000)]
Zero old pw_passwd before replacing with version from shadow file.

19 years agoOnly attempt shadow password detection if PAM is not being used
Todd C. Miller [Sat, 19 Mar 2005 03:07:27 +0000 (03:07 +0000)]
Only attempt shadow password detection if PAM is not being used
Add shadow_* variables to make shadow password detection more generic.

19 years agoUse OSDEFS for os-specific -D_FOO_BAR stuff rather than CPPFLAGS
Todd C. Miller [Sat, 19 Mar 2005 02:46:16 +0000 (02:46 +0000)]
Use OSDEFS for os-specific -D_FOO_BAR stuff rather than CPPFLAGS

19 years agouse a non-breaking space to avoid a double space after e.g.
Todd C. Miller [Sun, 13 Mar 2005 00:27:05 +0000 (00:27 +0000)]
use a non-breaking space to avoid a double space after e.g.

19 years agocommna, not colon after e.g.
Todd C. Miller [Sun, 13 Mar 2005 00:26:33 +0000 (00:26 +0000)]
commna, not colon after e.g.

19 years agoAdd __ variants of the exec functions. GNU libc at least uses __execve()
Todd C. Miller [Sat, 12 Mar 2005 23:43:40 +0000 (23:43 +0000)]
Add __ variants of the exec functions.  GNU libc at least uses __execve()
internally.

19 years agoMatch reality a bit more.
Todd C. Miller [Sat, 12 Mar 2005 17:29:00 +0000 (17:29 +0000)]
Match reality a bit more.

19 years agoMissed piece from rev. 1.6, fix sudo_getpwnam() too.
Todd C. Miller [Sat, 12 Mar 2005 17:27:27 +0000 (17:27 +0000)]
Missed piece from rev. 1.6, fix sudo_getpwnam() too.

19 years agoStore shadow password after making a local copy of struct passwd in
Todd C. Miller [Sat, 12 Mar 2005 04:42:30 +0000 (04:42 +0000)]
Store shadow password after making a local copy of struct passwd in
case normal and shadow routines use the same internal buffer in libc.

19 years agoMake varargs usage consistent with the rest of the code.
Todd C. Miller [Fri, 11 Mar 2005 01:57:44 +0000 (01:57 +0000)]
Make varargs usage consistent with the rest of the code.

19 years agoWrap more of the exec family since on Linux the others do not appear
Todd C. Miller [Thu, 10 Mar 2005 15:09:28 +0000 (15:09 +0000)]
Wrap more of the exec family since on Linux the others do not appear
to go through the normal execve() path.

19 years agomake print_unused static like proto says
Todd C. Miller [Thu, 10 Mar 2005 14:57:17 +0000 (14:57 +0000)]
make print_unused static like proto says

19 years agosilence a warning on K&R systems
Todd C. Miller [Thu, 10 Mar 2005 14:55:12 +0000 (14:55 +0000)]
silence a warning on K&R systems

19 years agomake this build in K&R land
Todd C. Miller [Thu, 10 Mar 2005 14:53:04 +0000 (14:53 +0000)]
make this build in K&R land

19 years agomake this build in K&R land
Todd C. Miller [Thu, 10 Mar 2005 14:51:48 +0000 (14:51 +0000)]
make this build in K&R land

19 years agoregen
Todd C. Miller [Tue, 8 Mar 2005 03:21:28 +0000 (03:21 +0000)]
regen

19 years agoreturn(foo) not return foo
Todd C. Miller [Sun, 6 Mar 2005 03:46:52 +0000 (03:46 +0000)]
return(foo) not return foo
optimize _atobool() slightly

19 years agoUse TRUE/FALSE
Todd C. Miller [Sun, 6 Mar 2005 03:40:18 +0000 (03:40 +0000)]
Use TRUE/FALSE

19 years agoReformat to match the rest of sudo's code.
Todd C. Miller [Sun, 6 Mar 2005 03:31:58 +0000 (03:31 +0000)]
Reformat to match the rest of sudo's code.

19 years agoI am the primary author
Todd C. Miller [Sun, 6 Mar 2005 00:33:18 +0000 (00:33 +0000)]
I am the primary author

19 years agoThe RUNSON file is toast--it confused too many people and really isn't
Todd C. Miller [Wed, 23 Feb 2005 03:29:40 +0000 (03:29 +0000)]
The RUNSON file is toast--it confused too many people and really isn't
needed in a configure-oriented world.

19 years agoalternate -> alternative
Todd C. Miller [Wed, 23 Feb 2005 03:28:13 +0000 (03:28 +0000)]
alternate -> alternative

19 years agoUse TCSADRAIN instead of TCSAFLUSH since some OSes have issues with TCSAFLUSH.
Todd C. Miller [Wed, 23 Feb 2005 03:26:50 +0000 (03:26 +0000)]
Use TCSADRAIN instead of TCSAFLUSH since some OSes have issues with TCSAFLUSH.

19 years agoAllow leading blanks before Defaults and Foo_Alias definitions
Todd C. Miller [Wed, 23 Feb 2005 03:16:06 +0000 (03:16 +0000)]
Allow leading blanks before Defaults and Foo_Alias definitions

19 years agofix rules to build toke.o and gram.o in devel mode
Todd C. Miller [Wed, 23 Feb 2005 03:14:03 +0000 (03:14 +0000)]
fix rules to build toke.o and gram.o in devel mode

19 years agoenv_keep overrides set_logname
Todd C. Miller [Sun, 20 Feb 2005 18:00:24 +0000 (18:00 +0000)]
env_keep overrides set_logname

19 years agoFix disabling set_logname and make env_keep override set_logname.
Todd C. Miller [Sun, 20 Feb 2005 17:57:48 +0000 (17:57 +0000)]
Fix disabling set_logname and make env_keep override set_logname.

19 years agoNo longer need memmove()
Todd C. Miller [Sun, 20 Feb 2005 17:28:25 +0000 (17:28 +0000)]
No longer need memmove()

19 years agoJust clean the environment once. This assumes that any further
Todd C. Miller [Sun, 20 Feb 2005 16:48:05 +0000 (16:48 +0000)]
Just clean the environment once.  This assumes that any further
setenv/putenv will be able to handle the fact that we replaced environ
with our own malloc'd copy but all the implementations I've checked do.

19 years agoIn -i mode, base the value of insert_env()'s dupcheck flag on DID_FOO flags.
Todd C. Miller [Wed, 16 Feb 2005 04:16:22 +0000 (04:16 +0000)]
In -i mode, base the value of insert_env()'s dupcheck flag on DID_FOO flags.
Move checks for $HOME resetting into rebuild_env()

19 years agoMove setting of user_path, user_shell, user_prompt and prev_user
Todd C. Miller [Sun, 13 Feb 2005 05:33:59 +0000 (05:33 +0000)]
Move setting of user_path, user_shell, user_prompt and prev_user
into init_vars() since user_shell at least is needed there.

19 years agofix devel builds
Todd C. Miller [Sat, 12 Feb 2005 23:51:43 +0000 (23:51 +0000)]
fix devel builds

19 years agoFix some printf format mismatches on error.
Todd C. Miller [Sat, 12 Feb 2005 23:48:46 +0000 (23:48 +0000)]
Fix some printf format mismatches on error.

19 years agoFix some printf format mismatches on error.
Todd C. Miller [Sat, 12 Feb 2005 23:46:13 +0000 (23:46 +0000)]
Fix some printf format mismatches on error.

19 years agoregen
Todd C. Miller [Sat, 12 Feb 2005 23:33:30 +0000 (23:33 +0000)]
regen

19 years agoUpdate copyright years.
Todd C. Miller [Sat, 12 Feb 2005 22:56:07 +0000 (22:56 +0000)]
Update copyright years.

19 years agoUpdate copyright years.
Todd C. Miller [Sat, 12 Feb 2005 22:56:06 +0000 (22:56 +0000)]
Update copyright years.

19 years agoUpdate copyright years.
Todd C. Miller [Sat, 12 Feb 2005 22:56:06 +0000 (22:56 +0000)]
Update copyright years.

19 years agoversion 1.7
Todd C. Miller [Sat, 12 Feb 2005 21:46:11 +0000 (21:46 +0000)]
version 1.7

19 years agoWhat's new in sudo 1.7, based on the 1.7 CHANGES entries.
Todd C. Miller [Sat, 12 Feb 2005 21:16:34 +0000 (21:16 +0000)]
What's new in sudo 1.7, based on the 1.7 CHANGES entries.

19 years agoAdd __printflike and use it with gcc to warn about printf-like format mismatches
Todd C. Miller [Fri, 11 Feb 2005 23:06:35 +0000 (23:06 +0000)]
Add __printflike and use it with gcc to warn about printf-like format mismatches

19 years agoReplaced CHANGES file with ChangeLog generated from cvs logs
Todd C. Miller [Thu, 10 Feb 2005 05:16:03 +0000 (05:16 +0000)]
Replaced CHANGES file with ChangeLog generated from cvs logs

19 years agoUse warning/error instead of perror/fatal.
Todd C. Miller [Thu, 10 Feb 2005 05:03:58 +0000 (05:03 +0000)]
Use warning/error instead of perror/fatal.

19 years agoUpdate OpenBSD section
Todd C. Miller [Thu, 10 Feb 2005 04:13:26 +0000 (04:13 +0000)]
Update OpenBSD section

19 years agoAdd upgrading noted for 1.7
Todd C. Miller [Thu, 10 Feb 2005 04:10:29 +0000 (04:10 +0000)]
Add upgrading noted for 1.7

19 years agoInstead of zeroing out the environment, just prune out entries
Todd C. Miller [Thu, 10 Feb 2005 04:00:04 +0000 (04:00 +0000)]
Instead of zeroing out the environment, just prune out entries
based on the env_delete and env_check lists.  Base building up
the new environment on the current environment and the variables
we removed initially.

19 years agoSet locale to "C" if locales are supported, just to be safe.
Todd C. Miller [Thu, 10 Feb 2005 03:24:00 +0000 (03:24 +0000)]
Set locale to "C" if locales are supported, just to be safe.

19 years agoCast argument to ctype functions to unsigned char.
Todd C. Miller [Thu, 10 Feb 2005 03:19:10 +0000 (03:19 +0000)]
Cast argument to ctype functions to unsigned char.

20 years agocorrect value for DID_USER
Todd C. Miller [Tue, 8 Feb 2005 03:56:51 +0000 (03:56 +0000)]
correct value for DID_USER

20 years ago#include <compat.h> not "compat.h"
Todd C. Miller [Tue, 8 Feb 2005 03:55:42 +0000 (03:55 +0000)]
#include <compat.h> not "compat.h"

20 years agoReset the environment by default.
Todd C. Miller [Tue, 8 Feb 2005 03:51:27 +0000 (03:51 +0000)]
Reset the environment by default.

20 years agoAlloc an extra slot in NewArgv. Removes the need to malloc an new
Todd C. Miller [Tue, 8 Feb 2005 03:50:42 +0000 (03:50 +0000)]
Alloc an extra slot in NewArgv.  Removes the need to malloc an new
vector if execve() fails.

20 years agoUse execve(2) and wrap the command in sh if we get ENOEXEC.
Todd C. Miller [Mon, 7 Feb 2005 04:16:28 +0000 (04:16 +0000)]
Use execve(2) and wrap the command in sh if we get ENOEXEC.

20 years agoOnly include time.h on systems that lack struct timespec which
Todd C. Miller [Sun, 6 Feb 2005 04:01:33 +0000 (04:01 +0000)]
Only include time.h on systems that lack struct timespec which
gets defind in compat.h (using time_t).

20 years agoInclude time.h for time_t in compat.h for systems w/o struct timespec.
Todd C. Miller [Sun, 6 Feb 2005 03:59:38 +0000 (03:59 +0000)]
Include time.h for time_t in compat.h for systems w/o struct timespec.

20 years agouse bcopy on systems w/o memmove
Todd C. Miller [Sun, 6 Feb 2005 03:56:38 +0000 (03:56 +0000)]
use bcopy on systems w/o memmove

20 years ago__attribute__((__unused__)) doesn't work in gcc 2.7.2.1 so limit its
Todd C. Miller [Sun, 6 Feb 2005 03:31:53 +0000 (03:31 +0000)]
__attribute__((__unused__)) doesn't work in gcc 2.7.2.1 so limit its
use to gcc >= 2.8.

20 years agoAdd explicit rule to build sudo_noexec.lo
Todd C. Miller [Sun, 6 Feb 2005 02:21:18 +0000 (02:21 +0000)]
Add explicit rule to build sudo_noexec.lo

20 years agoNo longer depend on VPATH; pointed out a bunch of missed dependencies.
Todd C. Miller [Sat, 5 Feb 2005 22:56:20 +0000 (22:56 +0000)]
No longer depend on VPATH; pointed out a bunch of missed dependencies.

20 years agoHelp for PAM when account section is missing
Todd C. Miller [Sat, 5 Feb 2005 18:18:20 +0000 (18:18 +0000)]
Help for PAM when account section is missing

20 years agoGive user a clue when there is a missing "account" section in the PAM config.
Todd C. Miller [Sat, 5 Feb 2005 18:01:55 +0000 (18:01 +0000)]
Give user a clue when there is a missing "account" section in the PAM config.

20 years agoBetter error handling.
Todd C. Miller [Sat, 5 Feb 2005 15:22:46 +0000 (15:22 +0000)]
Better error handling.

20 years agoMove _FOO_SOURCE to CPPFLAGS so it takes effect as early as possible.
Todd C. Miller [Sat, 5 Feb 2005 14:57:44 +0000 (14:57 +0000)]
Move _FOO_SOURCE to CPPFLAGS so it takes effect as early as possible.
Silences a warning about isblank() on linux.

20 years agoFix typo (missing comma) that caused an incorrect number of args
Todd C. Miller [Sat, 5 Feb 2005 02:49:53 +0000 (02:49 +0000)]
Fix typo (missing comma) that caused an incorrect number of args
to be passed to log_error().

20 years agoDon't try to destroy a tree we didn't create.
Todd C. Miller [Tue, 1 Feb 2005 04:03:29 +0000 (04:03 +0000)]
Don't try to destroy a tree we didn't create.

20 years agoAdd __unused to rcsids
Todd C. Miller [Thu, 27 Jan 2005 15:42:30 +0000 (15:42 +0000)]
Add __unused to rcsids

20 years agoFix error message when mixing invalid auth types
Todd C. Miller [Fri, 21 Jan 2005 15:34:07 +0000 (15:34 +0000)]
Fix error message when mixing invalid auth types

20 years agoPAM, AIX auth, BSD auth and login_cap are now on by default if the OS
Todd C. Miller [Fri, 21 Jan 2005 15:32:20 +0000 (15:32 +0000)]
PAM, AIX auth, BSD auth and login_cap are now on by default if the OS
supports them.

20 years agos/HAVE_AUTHENTICATE/HAVE_AIXAUTH/g
Todd C. Miller [Fri, 21 Jan 2005 15:29:55 +0000 (15:29 +0000)]
s/HAVE_AUTHENTICATE/HAVE_AIXAUTH/g

20 years agoBetter checking for conflicting authentication methods
Todd C. Miller [Fri, 21 Jan 2005 15:29:05 +0000 (15:29 +0000)]
Better checking for conflicting authentication methods
Display the authentication methods used at the end of configure
Rename --with-authenticate -> --with-aixauth
Use --with-aixauth, --with-bsdauth, --with-pam, --with-logincap by
default on systems that support them unless disabled.
Add OSMAJOR variable that replaces old OSREV; now OSREV has full version number

20 years agos/-O/-C/
Todd C. Miller [Tue, 18 Jan 2005 00:41:31 +0000 (00:41 +0000)]
s/-O/-C/

20 years agoReplace:
Todd C. Miller [Fri, 14 Jan 2005 18:35:06 +0000 (18:35 +0000)]
Replace:
    test -n "$FOO" || FOO="bar"

With:
    : ${FOO='bar'}

20 years agoUse function pointers to only call private passwd/group routines when
Todd C. Miller [Sun, 9 Jan 2005 23:58:21 +0000 (23:58 +0000)]
Use function pointers to only call private passwd/group routines when
using a nonstandard passwd/group file.

20 years agosync
Todd C. Miller [Thu, 6 Jan 2005 15:34:20 +0000 (15:34 +0000)]
sync

20 years agoCan't use strtok() since it doesn't handle empty fields so add
Todd C. Miller [Thu, 6 Jan 2005 03:16:11 +0000 (03:16 +0000)]
Can't use strtok() since it doesn't handle empty fields so add
getpwent()/getgrent() functions and call those.

20 years agoFix dummied out toke.c and gram.c dependencies.
Todd C. Miller [Wed, 5 Jan 2005 22:29:06 +0000 (22:29 +0000)]
Fix dummied out toke.c and gram.c dependencies.

20 years agoRename PARSESRCS -> GENERATED since it is only used in the clean target
Todd C. Miller [Wed, 5 Jan 2005 22:18:42 +0000 (22:18 +0000)]
Rename PARSESRCS -> GENERATED since it is only used in the clean target
Add devdir variable and use it to specify the path to parser sources

20 years agoregen
Todd C. Miller [Wed, 5 Jan 2005 22:17:52 +0000 (22:17 +0000)]
regen

20 years agoAdd a devdir variables that defaults to $(srcdir) and is set to . if
Todd C. Miller [Wed, 5 Jan 2005 22:17:33 +0000 (22:17 +0000)]
Add a devdir variables that defaults to $(srcdir) and is set to . if
--devel was specified.  Allows for proper dependecies building the parser.

20 years agoAdd support for custom passwd/group files.
Todd C. Miller [Wed, 5 Jan 2005 19:50:49 +0000 (19:50 +0000)]
Add support for custom passwd/group files.

20 years agoBuild private copy of pwutil.o for testsudoers with MYPW defined so
Todd C. Miller [Wed, 5 Jan 2005 19:47:20 +0000 (19:47 +0000)]
Build private copy of pwutil.o for testsudoers with MYPW defined so
it uses our own passwd/group routines.

20 years agoRemove sudo_*{pw,gr}* stubs and add sudo_setspent/sudo_endspent stubs instead.
Todd C. Miller [Wed, 5 Jan 2005 19:46:39 +0000 (19:46 +0000)]
Remove sudo_*{pw,gr}* stubs and add sudo_setspent/sudo_endspent stubs instead.
We can now just use the caching sudo_*{pw,gr}* functions in pwutil.c
Add comment about wanting to call sudo_endpwent/sudo_endgrent in cleanup()

20 years agoRemove caching; we will just use what is in pwutil.c
Todd C. Miller [Wed, 5 Jan 2005 19:44:58 +0000 (19:44 +0000)]
Remove caching; we will just use what is in pwutil.c
Use global buffers for passwd/group structs
Rename functions from sudo_* to my_*

20 years agog/c pwcache_init/pwcache_destroy
Todd C. Miller [Wed, 5 Jan 2005 19:43:36 +0000 (19:43 +0000)]
g/c pwcache_init/pwcache_destroy

20 years agoUndo last commit and add sudo_setspent and sudo_endspent instead.
Todd C. Miller [Wed, 5 Jan 2005 19:42:06 +0000 (19:42 +0000)]
Undo last commit and add sudo_setspent and sudo_endspent instead.

20 years agoMove all but the shadow stuff from getspwuid.c to pwutil.c and pwcache_get
Todd C. Miller [Wed, 5 Jan 2005 19:41:31 +0000 (19:41 +0000)]
Move all but the shadow stuff from getspwuid.c to pwutil.c and pwcache_get
and pwcache_put as they are no longer needed.  Also add preprocessor
magic to use private versions of the passwd and group routines if MYPW
is defined (for use by testsudoers).

20 years agozero out struct passwd/group before filling it in so if there are
Todd C. Miller [Wed, 5 Jan 2005 03:40:01 +0000 (03:40 +0000)]
zero out struct passwd/group before filling it in so if there are
fields we don't handle they end up as 0.

20 years agoAdapt to pwutil.c
Todd C. Miller [Wed, 5 Jan 2005 01:10:16 +0000 (01:10 +0000)]
Adapt to pwutil.c

20 years agoAdd tsgetgrpw.c and pwutil.c
Todd C. Miller [Wed, 5 Jan 2005 01:09:03 +0000 (01:09 +0000)]
Add tsgetgrpw.c and pwutil.c
Rename the *OBJ variables for better readability.

20 years agoPasswd and group lookup routines for testsudoers that support alternate
Todd C. Miller [Wed, 5 Jan 2005 01:08:30 +0000 (01:08 +0000)]
Passwd and group lookup routines for testsudoers that support alternate
passwd and group files.

20 years agoSplit off pw/gr cache and dup code into its own file.
Todd C. Miller [Wed, 5 Jan 2005 01:07:33 +0000 (01:07 +0000)]
Split off pw/gr cache and dup code into its own file.
This allows visudo and testsudoers to use the pw/gr cache too.

20 years agoPrint Defaults info in "sudo -l" output and wrap lines based on the
Todd C. Miller [Sun, 2 Jan 2005 00:31:08 +0000 (00:31 +0000)]
Print Defaults info in "sudo -l" output and wrap lines based on the
terminal width.

20 years agoOnly check group vector in usergr_matches() if we are matching the
Todd C. Miller [Sat, 1 Jan 2005 17:41:21 +0000 (17:41 +0000)]
Only check group vector in usergr_matches() if we are matching the
invoking or list user.  Always check the group members, even if
there was a group vector.

20 years agoNo longer bundle fnmatch.3
Todd C. Miller [Fri, 17 Dec 2004 22:24:16 +0000 (22:24 +0000)]
No longer bundle fnmatch.3

20 years agocheckpoint
Todd C. Miller [Fri, 17 Dec 2004 18:12:20 +0000 (18:12 +0000)]
checkpoint

20 years agosort usage
Todd C. Miller [Thu, 16 Dec 2004 19:20:25 +0000 (19:20 +0000)]
sort usage

20 years agoSort command line options
Todd C. Miller [Thu, 16 Dec 2004 19:20:12 +0000 (19:20 +0000)]
Sort command line options

20 years agoAdd closefrom sudoers option to start closing at a point other than 3.
Todd C. Miller [Thu, 16 Dec 2004 18:33:49 +0000 (18:33 +0000)]
Add closefrom sudoers option to start closing at a point other than 3.
Add closefrom_override sudoers option and -C sudo flag to allow the
user to specify a different closefrom starting point.

20 years agoAdd _PATH_DEVNULL for those without it.
Todd C. Miller [Thu, 16 Dec 2004 18:25:54 +0000 (18:25 +0000)]
Add _PATH_DEVNULL for those without it.

20 years agono more UCB strcasecmp
Todd C. Miller [Thu, 16 Dec 2004 03:55:46 +0000 (03:55 +0000)]
no more UCB strcasecmp