Todd C. Miller
b6d0a28efb
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".
2011-04-06 17:51:36 -04:00
Todd C. Miller
4b4f5bf32c
When using a sub-shell to invoke the sub-make, exec make instead of
...
running it inside the shell to avoid an extra process.
2011-04-06 15:32:04 -04:00
Todd C. Miller
60e9e4dd83
Stop testing unspecified behavior in fnmatch
...
Make glob test more portable
2011-04-06 15:13:23 -04:00
Todd C. Miller
8720363f33
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
2011-04-06 15:12:34 -04:00
Todd C. Miller
f52a6ccae4
Fix and document --with-plugindir; partially from Diego Elio Petteno
2011-04-06 12:02:49 -04:00
Todd C. Miller
f949dbcc58
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.
2011-04-06 10:57:39 -04:00
Todd C. Miller
698c5002d1
If make in a subdir fails, fail the target in the upper level Makefile too.
...
Adapted from a patch from Diego Elio Petteno
2011-04-06 10:15:54 -04:00
Todd C. Miller
233d90f2c3
Add check for NetBSD-style 4-argument skeychallenge() as Gentoo also
...
has this. Adapted from a patch from Diego Elio Petteno
2011-04-06 10:08:57 -04:00
Todd C. Miller
f6ffc8adf3
Make SUDOERS_LDFLAGS reference $(LDFLAGS) instead of using @LDFLAGS@
...
directly.
2011-04-06 10:06:51 -04:00
Todd C. Miller
dcc4ec8436
Fix warnings when -without-skey, --without-opie, --without-kerb4,
...
--without-kerb5 or --without-SecurID were specified.
2011-04-06 09:33:07 -04:00
Todd C. Miller
3a54719a69
Add plugins/sudoers/sudoers_version.h
2011-04-06 08:34:39 -04:00
Todd C. Miller
89cd8c2ff1
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.
2011-04-06 07:01:17 -04:00
Todd C. Miller
dc19e4dff1
Mention %#gid support in User_List and Runas_List
2011-04-05 18:15:05 -04:00
Todd C. Miller
f1078bd28e
Keep track of sudoers grammar version and report it in the -V output.
2011-04-05 11:47:31 -04:00
Todd C. Miller
b9d15e8256
Add multiple inclusion guard
2011-04-05 11:42:53 -04:00
Todd C. Miller
021e2a94b9
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.
2011-04-05 09:42:59 -04:00
Todd C. Miller
e55bbb1833
Fix typo; from Petr Uzel
2011-04-05 09:13:18 -04:00
Todd C. Miller
3ffb649863
In dump-only mode, use "root" as the default username instead of
...
"nobody" as the latter may not be available on all systems.
2011-04-01 13:54:30 -04:00
Todd C. Miller
129ccecd3d
Remove NewArgv/NewArgc, they are no longer needed.
2011-03-31 14:06:11 -04:00
Todd C. Miller
987e1dbe62
Fix setting of user_args
2011-03-31 13:57:05 -04:00
Todd C. Miller
c82e29f274
Add '!' token to lex tracing
2011-03-31 13:42:05 -04:00
Todd C. Miller
0e2d58863a
Use group bin in test, not wheel as most systems have the bin group
...
but the same is no longer true of wheel.
2011-03-31 12:54:17 -04:00
Todd C. Miller
ca32055fd8
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.
2011-03-31 12:48:01 -04:00
Todd C. Miller
02f0775feb
Strip off the beta or release candidate version when building AIX
...
packages.
2011-03-30 12:25:41 -04:00
Todd C. Miller
2534672f62
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.
2011-03-30 10:14:25 -04:00
Todd C. Miller
e42331fd5a
getuserattr(user, ...) will fall back to the "default" entry
...
automatically, there's no need to check "default" manually.
2011-03-30 08:54:38 -04:00
Todd C. Miller
51c8123868
Document parser changes.
2011-03-29 17:57:46 -04:00
Todd C. Miller
44c763c728
If there is an existing sudoers file, only install if it passes a
...
syntax check.
2011-03-29 15:20:32 -04:00
Todd C. Miller
8b9d773bae
Add runasgroup support to testsudoers
2011-03-29 14:40:07 -04:00
Todd C. Miller
5e067b2734
For "make check", keep going even if a test fails.
2011-03-29 14:39:02 -04:00
Todd C. Miller
b87465b56f
More useful exit codes:
...
* 0 - parsed OK and command matched.
* 1 - parse error
* 2 - command not matched
* 3 - command denied
2011-03-29 13:09:58 -04:00
Todd C. Miller
335abe3a10
Document %#gid, and %:#nonunix_gid syntax.
2011-03-29 12:53:37 -04:00
Todd C. Miller
b0be8d20ce
Add support to user_in_group() for treating group names that begin with
...
a '#' as gids.
2011-03-29 11:29:43 -04:00
Todd C. Miller
53d183c380
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.
2011-03-29 09:10:40 -04:00
Todd C. Miller
041b1a896a
Add back missing #include of config.h
2011-03-28 14:50:55 -04:00
Todd C. Miller
353f31751d
Avoid a NULL deref on unrecognized escapes.
...
Collapse %% -> % like strftime() does.
2011-03-28 12:54:41 -04:00
Todd C. Miller
c739a7052a
Quote first argument to AC_DEFUN(); from Elan Ruusamae
2011-03-28 09:36:01 -04:00
Todd C. Miller
8c975b2785
add new sudoers tests
2011-03-27 18:29:55 -04:00
Todd C. Miller
b485739edd
Add test for a newline in the middle of a string when no line continuation
...
character is used.
2011-03-27 17:22:02 -04:00
Todd C. Miller
e3ff59e506
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.
2011-03-27 17:12:45 -04:00
Todd C. Miller
45b82039be
Move lexer globals initialization into init_lexer.
2011-03-27 09:45:42 -04:00
Todd C. Miller
aed50b4d7b
Fix a potential crash when a non-regular file is present in an
...
includedir. Fixes bz #452
2011-03-27 09:27:43 -04:00
Todd C. Miller
03f949cf1e
On some Linux systems, "uname -p" contains detailed processor info
...
so check "uname -m" first and then "uname -p" if needed.
Recognize PLD Linux.
2011-03-27 09:24:52 -04:00
Todd C. Miller
ba50e99cbd
Don't need all sudoers.h here.
2011-03-25 10:22:19 -04:00
Todd C. Miller
e07ca146d1
Print sudo version early, in case policy plugin init fails.
2011-03-25 09:58:08 -04:00
Todd C. Miller
e9f89d7964
Update to match change in input.
2011-03-24 11:15:11 -04:00
Todd C. Miller
31c164dae1
Make an empty group or netgroup a syntax error.
2011-03-24 11:00:30 -04:00
Todd C. Miller
c5cc89da15
An empty group or netgroup should be a syntax error.
2011-03-24 11:00:05 -04:00
Todd C. Miller
5438a0be6a
Check that uids work in per-user and per-runas Defaults
...
Check that uids and gids work in a Command_Spec
2011-03-24 10:40:03 -04:00
Todd C. Miller
bc333ae448
Test empty string in User_Alias and Command_Spec
2011-03-24 10:39:25 -04:00