Todd C. Miller
717da12e96
Top-level Makefile.in. Nothing is currently substituted but this
...
is needed for separate build dirs.
2010-04-04 20:05:02 -04:00
Todd C. Miller
43b6359df3
Fix out-of-tree builds
2010-04-04 14:01:21 -04:00
Todd C. Miller
fb55653a4c
Merge
2010-04-04 12:47:57 -04:00
Todd C. Miller
d710ea091c
We always install sudoreplay in 1.8
2010-04-04 12:31:57 -04:00
Todd C. Miller
3242c1091d
Free str after using it in the version method. Use sudo_conv, not
...
io_conv since we don't have the IO conversation function pointer
in the I/O version method anymore now that io_open is delayed.
2010-04-04 08:40:23 -04:00
Todd C. Miller
0716ab38af
SIGPOLL is sometimes the same as SIGIO (like on HP-UX)
2010-04-03 09:44:32 -04:00
Todd C. Miller
c2eeceaa1f
No need to provide strdup() or strndup(), sudo uses estrdup() and estrndup()
2010-04-02 14:46:00 -04:00
Todd C. Miller
8ca9287405
Add license to mksiglist.c and note that the bits from pdksh are public domain
2010-04-02 11:18:57 -04:00
Todd C. Miller
7539f636b6
Fix LIBOBJDIR vs. srcdir wrt the siglist bits
2010-04-02 09:49:21 -04:00
Todd C. Miller
ee52f3c390
Add sudoreplay testsudoers and visudo to clean target
2010-04-02 07:49:29 -04:00
Todd C. Miller
8c91f0a30c
Create our own sys_siglist for systems without it for use by strsignal()
2010-04-02 07:47:19 -04:00
Todd C. Miller
d83ebba560
Remove duplicate $(LIBOBJDIR)
2010-04-02 07:15:02 -04:00
Todd C. Miller
44341c9c15
Main sudo should not block signals; the plugin should do this in
...
check_policy.
2010-04-01 06:35:19 -04:00
Todd C. Miller
ca2eee07b5
Fix a sizeof(ptr) vs. sizeof(*ptr)
2010-03-31 20:30:34 -04:00
Todd C. Miller
c3e87c2db3
Unlike most operating systems, HP-UX select() is not interrupted
...
by SIGCHLD when the signal is registered with SA_RESTART. If
we clear SA_RESTART when calling sigaction() for SIGCHLD we get
the expected behavior and the code in the select() loops already
handles EINTR correctly.
2010-03-31 12:43:26 -04:00
Todd C. Miller
8cde6d699e
progname should be const
2010-03-31 10:36:39 -04:00
Todd C. Miller
3a98967119
Move --tag=disable-static to when we link sudoers.la, not when
...
we install.
2010-03-31 05:44:17 -04:00
Todd C. Miller
6c71d6afa4
Load the sudoers I/O plugin by default too now that it is hooked up.
2010-03-31 05:42:58 -04:00
Todd C. Miller
5d6f19671c
It looks like AIX doesn't need to push STREAMS modules for ptys.
2010-03-30 12:06:27 -04:00
Todd C. Miller
e17f1e5cbd
Delay calling the I/O plugin open function until the policy plugin
...
returns success.
2010-03-28 08:41:06 -04:00
Todd C. Miller
05e8023e78
Add back io logging (transcript) support. Currently, the open function
...
runs too early and it is not possible to use the io module independently
of the policy module.
2010-03-27 20:19:40 -04:00
Todd C. Miller
681c6faf3e
Comment out dead code; will be removed when set_perms is rewritten.
2010-03-27 09:12:48 -04:00
Todd C. Miller
eae881b5aa
Fix off by one error when allocating user_groups.
2010-03-23 05:21:38 -04:00
Todd C. Miller
0ea0d60cbd
Add REPLAY_LIBS for sudoreplay and add -lrt to it on Solaris.
2010-03-22 19:55:49 -04:00
Todd C. Miller
e12858ee90
Fix typo in preserve groups case
2010-03-22 19:39:02 -04:00
Todd C. Miller
fc63d106f8
In command_info it is "runas_groups" not "groups".
2010-03-22 19:27:02 -04:00
Todd C. Miller
43ea59f64f
Fix iteration over runas_groups list.
2010-03-22 18:08:17 -04:00
Todd C. Miller
8df6ba9fee
Merge 5177a284b9ff 549f8f7c2463 88f3181692fe from 1.7 branch.
2010-03-22 10:19:07 -04:00
Todd C. Miller
617fb0e31a
getgrouplist(3) for those without it
2010-03-22 09:54:10 -04:00
Todd C. Miller
c2905815e6
Fix installation of sudoers.ldap in "make install" when --with-ldap
...
was specified without a directory. From Prof. Dr. Andreas Mueller
--HG--
branch : 1.7
2010-03-22 09:50:06 -04:00
Todd C. Miller
a72669d8a6
Set preserve_groups or groups list in command_info
2010-03-22 08:28:11 -04:00
Todd C. Miller
7af5cdfaf4
Fix setting of groups list
2010-03-22 08:26:05 -04:00
Todd C. Miller
8db39a8586
Add checks for getgrset and getgrouplist and use replacement getgrouplist
...
if the system doesn't support it.
2010-03-22 08:25:30 -04:00
Todd C. Miller
4b36657781
Pass in preserve_groups when the -P flag is specified as per the design
2010-03-22 08:11:06 -04:00
Todd C. Miller
0ea44bcba1
Check preserve_groups and ignore_ticket args with atobool instead
...
of assuming they are true if present.
2010-03-22 08:09:50 -04:00
Todd C. Miller
066e6a7e8f
Rename plugin-specific error.c to plugin_error.c
...
Wire up visudo, sudoreplay and testsudoers in the build
2010-03-21 12:58:14 -04:00
Todd C. Miller
74ce00482f
term.c does not needto include sudo.h
2010-03-21 12:57:00 -04:00
Todd C. Miller
9edc09609f
Document the -2 return in the check_policy section too
2010-03-21 08:58:13 -04:00
Todd C. Miller
6b180d24da
Fix the -s and -i flags and add support for the "implied_shell"
...
option. If the user does not specify a command, sudo will now pass
in the path to the user's shell and set impied_shell=true. The
plugin can them either check the command normally or return -2 to
cause sudo to print a usage message and exit.
2010-03-21 08:54:06 -04:00
Todd C. Miller
2e27226a0d
Bring back SUDOERS_PLUGIN but add .dylib -> .so conversion for
...
Darwin where libraries end in .dylib but modules end in .so
2010-03-19 20:01:00 -04:00
Todd C. Miller
8c9db4ef6f
Better prefix determination now that we can't rely on len==0 to
...
tell the beginning on an entry.
2010-03-19 08:17:58 -04:00
Todd C. Miller
5fb6784ab1
display_bound_defaults() stub should return 0, not 1 since it is a count,
...
not a boolean.
2010-03-19 08:17:09 -04:00
Todd C. Miller
18cd91d56e
Document progname in settings
2010-03-19 07:56:06 -04:00
Todd C. Miller
eec5235d19
Rewrite compat/getprogname.c and add setprogname().
...
The progname is now passed to the plugin via the settings array.
2010-03-19 07:52:31 -04:00
Todd C. Miller
0dbf4362d9
Fix --with-ldap
2010-03-19 07:32:14 -04:00
Todd C. Miller
71baab8acc
Add missing whitespace for Runas and Command-specific defaults
2010-03-19 07:31:42 -04:00
Todd C. Miller
38937dca5e
Use embedded newlines in lbuf instead of multiple calls to lbuf_print.
2010-03-19 07:04:34 -04:00
Todd C. Miller
6f771f39b3
Add support for embedded newlines.
2010-03-19 06:59:02 -04:00
Todd C. Miller
623fc34dd4
If system doesn't support getprogname or __programe and we are
...
building a shared object don't bother with Argc/Argv, just
return "sudo"
2010-03-18 13:53:12 -04:00
Todd C. Miller
5be1b80169
Hard-code sudoers.so instead of using SUDOERS_PLUGIN since libtool
...
appears to always install a shared object with the .so suffix.
2010-03-18 12:02:05 -04:00