]>
granicus.if.org Git - sudo/log
Todd C. Miller [Sat, 9 Apr 2011 14:47:26 +0000 (10:47 -0400)]
Regen man pages for 1.8.1
--HG--
branch : 1.8
Todd C. Miller [Thu, 7 Apr 2011 11:06:51 +0000 (07:06 -0400)]
Add HAVE_RFC1938_SKEYCHALLENGE
--HG--
branch : 1.8
Todd C. Miller [Thu, 7 Apr 2011 11:04:26 +0000 (07:04 -0400)]
Add HAVE_RFC1938_SKEYCHALLENGE
Todd C. Miller [Wed, 6 Apr 2011 21:57:49 +0000 (17:57 -0400)]
Mention plugin loading and libgcc changes
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 21:57:10 +0000 (17:57 -0400)]
Mention plugin loading and libgcc changes
Todd C. Miller [Wed, 6 Apr 2011 21:52:27 +0000 (17:52 -0400)]
Load plugins after parsing arguments and potentially printing the
version. That way, an error loading or initializing a plugin doesn't
break "sudo -h" or "sudo -V".
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 21:51:36 +0000 (17:51 -0400)]
Load plugins after parsing arguments and potentially printing the
version. That way, an error loading or initializing a plugin doesn't
break "sudo -h" or "sudo -V".
Todd C. Miller [Wed, 6 Apr 2011 19:32:51 +0000 (15:32 -0400)]
When using a sub-shell to invoke the sub-make, exec make instead of
running it inside the shell to avoid an extra process.
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 19:32:04 +0000 (15:32 -0400)]
When using a sub-shell to invoke the sub-make, exec make instead of
running it inside the shell to avoid an extra process.
Todd C. Miller [Wed, 6 Apr 2011 19:14:36 +0000 (15:14 -0400)]
Stop testing unspecified behavior in fnmatch
Make glob test more portable
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 19:14:13 +0000 (15:14 -0400)]
No need to add current dir to include path and having it breaks the
test programs that expect to get the system glob.h and fnmatch.h
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 19:13:23 +0000 (15:13 -0400)]
Stop testing unspecified behavior in fnmatch
Make glob test more portable
Todd C. Miller [Wed, 6 Apr 2011 19:12:34 +0000 (15:12 -0400)]
No need to add current dir to include path and having it breaks the
test programs that expect to get the system glob.h and fnmatch.h
Todd C. Miller [Wed, 6 Apr 2011 16:03:29 +0000 (12:03 -0400)]
Fix and document --with-plugindir; partially from Diego Elio Petteno
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 16:02:49 +0000 (12:02 -0400)]
Fix and document --with-plugindir; partially from Diego Elio Petteno
Todd C. Miller [Wed, 6 Apr 2011 15:00:25 +0000 (11:00 -0400)]
Fix fnmatch and glob tests to not use hard-coded flag values in the
input file. Link test programs with libreplace so we get our
replacement verions as needed.
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 15:00:06 +0000 (11:00 -0400)]
If make in a subdir fails, fail the target in the upper level Makefile too.
Adapted from a patch from Diego Elio Petteno
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 14:59:51 +0000 (10:59 -0400)]
Add check for NetBSD-style 4-argument skeychallenge() as Gentoo also
has this. Adapted from a patch from Diego Elio Petteno
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 14:59:37 +0000 (10:59 -0400)]
Make SUDOERS_LDFLAGS reference $(LDFLAGS) instead of using @LDFLAGS@
directly.
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 14:57:39 +0000 (10:57 -0400)]
Fix fnmatch and glob tests to not use hard-coded flag values in the
input file. Link test programs with libreplace so we get our
replacement verions as needed.
Todd C. Miller [Wed, 6 Apr 2011 14:15:54 +0000 (10:15 -0400)]
If make in a subdir fails, fail the target in the upper level Makefile too.
Adapted from a patch from Diego Elio Petteno
Todd C. Miller [Wed, 6 Apr 2011 14:08:57 +0000 (10:08 -0400)]
Add check for NetBSD-style 4-argument skeychallenge() as Gentoo also
has this. Adapted from a patch from Diego Elio Petteno
Todd C. Miller [Wed, 6 Apr 2011 14:06:51 +0000 (10:06 -0400)]
Make SUDOERS_LDFLAGS reference $(LDFLAGS) instead of using @LDFLAGS@
directly.
Todd C. Miller [Wed, 6 Apr 2011 13:34:16 +0000 (09:34 -0400)]
Fix warnings when -without-skey, --without-opie, --without-kerb4,
--without-kerb5 or --without-SecurID were specified.
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 13:33:07 +0000 (09:33 -0400)]
Fix warnings when -without-skey, --without-opie, --without-kerb4,
--without-kerb5 or --without-SecurID were specified.
Todd C. Miller [Wed, 6 Apr 2011 12:35:18 +0000 (08:35 -0400)]
Add plugins/sudoers/sudoers_version.h
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 12:34:39 +0000 (08:34 -0400)]
Add plugins/sudoers/sudoers_version.h
Todd C. Miller [Wed, 6 Apr 2011 11:01:58 +0000 (07:01 -0400)]
Back out the --with-libpath addition to SUDOERS_LDFLAGS since that
now include LDFLAGS in the sudoers Makefile.in.
Add missing settng of @LDFLAGS@ in plugin Makefile.in files.
--HG--
branch : 1.8
Todd C. Miller [Wed, 6 Apr 2011 11:01:17 +0000 (07:01 -0400)]
Back out the --with-libpath addition to SUDOERS_LDFLAGS since that
now include LDFLAGS in the sudoers Makefile.in.
Add missing settng of @LDFLAGS@ in plugin Makefile.in files.
Todd C. Miller [Tue, 5 Apr 2011 22:15:41 +0000 (18:15 -0400)]
Mention %#gid support in User_List and Runas_List
--HG--
branch : 1.8
Todd C. Miller [Tue, 5 Apr 2011 22:15:05 +0000 (18:15 -0400)]
Mention %#gid support in User_List and Runas_List
Todd C. Miller [Tue, 5 Apr 2011 21:24:42 +0000 (17:24 -0400)]
Keep track of sudoers grammar version and report it in the -V output.
--HG--
branch : 1.8
Todd C. Miller [Tue, 5 Apr 2011 21:24:34 +0000 (17:24 -0400)]
Add multiple inclusion guard
--HG--
branch : 1.8
Todd C. Miller [Tue, 5 Apr 2011 15:47:31 +0000 (11:47 -0400)]
Keep track of sudoers grammar version and report it in the -V output.
Todd C. Miller [Tue, 5 Apr 2011 15:42:53 +0000 (11:42 -0400)]
Add multiple inclusion guard
Todd C. Miller [Tue, 5 Apr 2011 13:43:35 +0000 (09:43 -0400)]
The --with-libpath option now adds to SUDOERS_LDFLAGS as well as LDFLAGS.
Remove old -static hack for HP-UX < 9.
Add LTLDFLAGS and set it to -Wc,-static-libgcc if not using GNU ld so we
don't have a dependency on the shared libgcc in sudoers.so.
--HG--
branch : 1.8
Todd C. Miller [Tue, 5 Apr 2011 13:42:59 +0000 (09:42 -0400)]
The --with-libpath option now adds to SUDOERS_LDFLAGS as well as LDFLAGS.
Remove old -static hack for HP-UX < 9.
Add LTLDFLAGS and set it to -Wc,-static-libgcc if not using GNU ld so we
don't have a dependency on the shared libgcc in sudoers.so.
Todd C. Miller [Tue, 5 Apr 2011 13:13:49 +0000 (09:13 -0400)]
Fix typo; from Petr Uzel
--HG--
branch : 1.8
Todd C. Miller [Tue, 5 Apr 2011 13:13:18 +0000 (09:13 -0400)]
Fix typo; from Petr Uzel
Todd C. Miller [Fri, 1 Apr 2011 17:55:05 +0000 (13:55 -0400)]
In dump-only mode, use "root" as the default username instead of
"nobody" as the latter may not be available on all systems.
--HG--
branch : 1.8
Todd C. Miller [Fri, 1 Apr 2011 17:54:30 +0000 (13:54 -0400)]
In dump-only mode, use "root" as the default username instead of
"nobody" as the latter may not be available on all systems.
Todd C. Miller [Thu, 31 Mar 2011 18:06:34 +0000 (14:06 -0400)]
Remove NewArgv/NewArgc, they are no longer needed.
--HG--
branch : 1.8
Todd C. Miller [Thu, 31 Mar 2011 18:06:11 +0000 (14:06 -0400)]
Remove NewArgv/NewArgc, they are no longer needed.
Todd C. Miller [Thu, 31 Mar 2011 17:58:22 +0000 (13:58 -0400)]
Fix setting of user_args
--HG--
branch : 1.8
Todd C. Miller [Thu, 31 Mar 2011 17:58:10 +0000 (13:58 -0400)]
Add '!' token to lex tracing
--HG--
branch : 1.8
Todd C. Miller [Thu, 31 Mar 2011 17:57:05 +0000 (13:57 -0400)]
Fix setting of user_args
Todd C. Miller [Thu, 31 Mar 2011 17:42:05 +0000 (13:42 -0400)]
Add '!' token to lex tracing
Todd C. Miller [Thu, 31 Mar 2011 16:54:43 +0000 (12:54 -0400)]
Use group bin in test, not wheel as most systems have the bin group
but the same is no longer true of wheel.
--HG--
branch : 1.8
Todd C. Miller [Thu, 31 Mar 2011 16:54:17 +0000 (12:54 -0400)]
Use group bin in test, not wheel as most systems have the bin group
but the same is no longer true of wheel.
Todd C. Miller [Thu, 31 Mar 2011 16:48:32 +0000 (12:48 -0400)]
Avoid using pre or post increment in a parameter to a ctype(3)
function as it might be a macro that causes the increment to happen
more than once.
--HG--
branch : 1.8
Todd C. Miller [Thu, 31 Mar 2011 16:48:01 +0000 (12:48 -0400)]
Avoid using pre or post increment in a parameter to a ctype(3)
function as it might be a macro that causes the increment to happen
more than once.
Todd C. Miller [Wed, 30 Mar 2011 16:26:14 +0000 (12:26 -0400)]
Strip off the beta or release candidate version when building AIX
packages.
--HG--
branch : 1.8
Todd C. Miller [Wed, 30 Mar 2011 16:25:41 +0000 (12:25 -0400)]
Strip off the beta or release candidate version when building AIX
packages.
Todd C. Miller [Wed, 30 Mar 2011 14:15:30 +0000 (10:15 -0400)]
We need to include OSDEFS in CFLAGS when doing the utmp/utmpx
structure checks for glibc which only has __e_termination visible
when _GNU_SOURCE is *not* defined.
--HG--
branch : 1.8
Todd C. Miller [Wed, 30 Mar 2011 14:14:25 +0000 (10:14 -0400)]
We need to include OSDEFS in CFLAGS when doing the utmp/utmpx
structure checks for glibc which only has __e_termination visible
when _GNU_SOURCE is *not* defined.
Todd C. Miller [Wed, 30 Mar 2011 12:59:31 +0000 (08:59 -0400)]
getuserattr(user, ...) will fall back to the "default" entry
automatically, there's no need to check "default" manually.
--HG--
branch : 1.8
Todd C. Miller [Wed, 30 Mar 2011 12:59:22 +0000 (08:59 -0400)]
Document parser changes.
--HG--
branch : 1.8
Todd C. Miller [Wed, 30 Mar 2011 12:54:38 +0000 (08:54 -0400)]
getuserattr(user, ...) will fall back to the "default" entry
automatically, there's no need to check "default" manually.
Todd C. Miller [Tue, 29 Mar 2011 21:57:46 +0000 (17:57 -0400)]
Document parser changes.
Todd C. Miller [Tue, 29 Mar 2011 19:20:58 +0000 (15:20 -0400)]
If there is an existing sudoers file, only install if it passes a
syntax check.
--HG--
branch : 1.8
Todd C. Miller [Tue, 29 Mar 2011 19:20:32 +0000 (15:20 -0400)]
If there is an existing sudoers file, only install if it passes a
syntax check.
Todd C. Miller [Tue, 29 Mar 2011 18:41:57 +0000 (14:41 -0400)]
Add runasgroup support to testsudoers
--HG--
branch : 1.8
Todd C. Miller [Tue, 29 Mar 2011 18:41:45 +0000 (14:41 -0400)]
For "make check", keep going even if a test fails.
--HG--
branch : 1.8
Todd C. Miller [Tue, 29 Mar 2011 18:40:07 +0000 (14:40 -0400)]
Add runasgroup support to testsudoers
Todd C. Miller [Tue, 29 Mar 2011 18:39:02 +0000 (14:39 -0400)]
For "make check", keep going even if a test fails.
Todd C. Miller [Tue, 29 Mar 2011 17:10:33 +0000 (13:10 -0400)]
More useful exit codes:
* 0 - parsed OK and command matched.
* 1 - parse error
* 2 - command not matched
* 3 - command denied
--HG--
branch : 1.8
Todd C. Miller [Tue, 29 Mar 2011 17:09:58 +0000 (13:09 -0400)]
More useful exit codes:
* 0 - parsed OK and command matched.
* 1 - parse error
* 2 - command not matched
* 3 - command denied
Todd C. Miller [Tue, 29 Mar 2011 16:54:27 +0000 (12:54 -0400)]
Document %#gid, and %:#nonunix_gid syntax.
--HG--
branch : 1.8
Todd C. Miller [Tue, 29 Mar 2011 16:53:37 +0000 (12:53 -0400)]
Document %#gid, and %:#nonunix_gid syntax.
Todd C. Miller [Tue, 29 Mar 2011 15:31:09 +0000 (11:31 -0400)]
Add support to user_in_group() for treating group names that begin with
a '#' as gids.
--HG--
branch : 1.8
Todd C. Miller [Tue, 29 Mar 2011 15:29:43 +0000 (11:29 -0400)]
Add support to user_in_group() for treating group names that begin with
a '#' as gids.
Todd C. Miller [Tue, 29 Mar 2011 13:11:46 +0000 (09:11 -0400)]
Add explicit check for struct utmpx.ut_exit.e_termination
and struct utmpx.ut_exit.__e_termination. HP-UX uses the latter.
Only update ut_exit if we detect one or the other.
--HG--
branch : 1.8
Todd C. Miller [Tue, 29 Mar 2011 13:10:40 +0000 (09:10 -0400)]
Add explicit check for struct utmpx.ut_exit.e_termination
and struct utmpx.ut_exit.__e_termination. HP-UX uses the latter.
Only update ut_exit if we detect one or the other.
Todd C. Miller [Mon, 28 Mar 2011 18:51:30 +0000 (14:51 -0400)]
Add back missing #include of config.h
--HG--
branch : 1.8
Todd C. Miller [Mon, 28 Mar 2011 18:50:55 +0000 (14:50 -0400)]
Add back missing #include of config.h
Todd C. Miller [Mon, 28 Mar 2011 16:55:19 +0000 (12:55 -0400)]
Avoid a NULL deref on unrecognized escapes.
Collapse %% -> % like strftime() does.
--HG--
branch : 1.8
Todd C. Miller [Mon, 28 Mar 2011 16:54:41 +0000 (12:54 -0400)]
Avoid a NULL deref on unrecognized escapes.
Collapse %% -> % like strftime() does.
Todd C. Miller [Mon, 28 Mar 2011 13:36:49 +0000 (09:36 -0400)]
Quote first argument to AC_DEFUN(); from Elan Ruusamae
--HG--
branch : 1.8
Todd C. Miller [Mon, 28 Mar 2011 13:36:01 +0000 (09:36 -0400)]
Quote first argument to AC_DEFUN(); from Elan Ruusamae
Todd C. Miller [Sun, 27 Mar 2011 22:31:30 +0000 (18:31 -0400)]
add new sudoers tests
--HG--
branch : 1.8
Todd C. Miller [Sun, 27 Mar 2011 22:31:20 +0000 (18:31 -0400)]
Add test for a newline in the middle of a string when no line continuation
character is used.
--HG--
branch : 1.8
Todd C. Miller [Sun, 27 Mar 2011 22:29:55 +0000 (18:29 -0400)]
add new sudoers tests
Todd C. Miller [Sun, 27 Mar 2011 21:22:02 +0000 (17:22 -0400)]
Add test for a newline in the middle of a string when no line continuation
character is used.
Todd C. Miller [Sun, 27 Mar 2011 21:13:35 +0000 (17:13 -0400)]
Use bitwise AND instead of modulus to check for length being odd.
A newline in the middle of a string is an error unless a line
continuation character is used.
--HG--
branch : 1.8
Todd C. Miller [Sun, 27 Mar 2011 21:12:45 +0000 (17:12 -0400)]
Use bitwise AND instead of modulus to check for length being odd.
A newline in the middle of a string is an error unless a line
continuation character is used.
Todd C. Miller [Sun, 27 Mar 2011 13:49:27 +0000 (09:49 -0400)]
Move lexer globals initialization into init_lexer.
--HG--
branch : 1.8
Todd C. Miller [Sun, 27 Mar 2011 13:49:06 +0000 (09:49 -0400)]
Fix a potential crash when a non-regular file is present in an
includedir. Fixes bz #452
--HG--
branch : 1.8
Todd C. Miller [Sun, 27 Mar 2011 13:45:42 +0000 (09:45 -0400)]
Move lexer globals initialization into init_lexer.
Todd C. Miller [Sun, 27 Mar 2011 13:27:43 +0000 (09:27 -0400)]
Fix a potential crash when a non-regular file is present in an
includedir. Fixes bz #452
Todd C. Miller [Sun, 27 Mar 2011 13:25:40 +0000 (09:25 -0400)]
On some Linux systems, "uname -p" contains detailed processor info
so check "uname -m" first and then "uname -p" if needed.
Recognize PLD Linux.
--HG--
branch : 1.8
Todd C. Miller [Sun, 27 Mar 2011 13:24:52 +0000 (09:24 -0400)]
On some Linux systems, "uname -p" contains detailed processor info
so check "uname -m" first and then "uname -p" if needed.
Recognize PLD Linux.
Todd C. Miller [Fri, 25 Mar 2011 15:20:39 +0000 (11:20 -0400)]
Don't need all sudoers.h here.
--HG--
branch : 1.8
Todd C. Miller [Fri, 25 Mar 2011 15:20:28 +0000 (11:20 -0400)]
Print sudo version early, in case policy plugin init fails.
--HG--
branch : 1.8
Todd C. Miller [Fri, 25 Mar 2011 14:22:19 +0000 (10:22 -0400)]
Don't need all sudoers.h here.
Todd C. Miller [Fri, 25 Mar 2011 13:58:08 +0000 (09:58 -0400)]
Print sudo version early, in case policy plugin init fails.
Todd C. Miller [Thu, 24 Mar 2011 15:15:40 +0000 (11:15 -0400)]
Update to match change in input.
--HG--
branch : 1.8
Todd C. Miller [Thu, 24 Mar 2011 15:15:11 +0000 (11:15 -0400)]
Update to match change in input.
Todd C. Miller [Thu, 24 Mar 2011 15:13:45 +0000 (11:13 -0400)]
Make an empty group or netgroup a syntax error.
--HG--
branch : 1.8
Todd C. Miller [Thu, 24 Mar 2011 15:13:35 +0000 (11:13 -0400)]
An empty group or netgroup should be a syntax error.
--HG--
branch : 1.8
Todd C. Miller [Thu, 24 Mar 2011 15:13:22 +0000 (11:13 -0400)]
Check that uids work in per-user and per-runas Defaults
Check that uids and gids work in a Command_Spec
--HG--
branch : 1.8