Todd C. Miller
488c1531eb
Convert to ANSI C
2010-02-27 09:23:25 -05:00
Todd C. Miller
9e5ff964ad
Make user_details extern so tgetpass can get at the uid and gid.
...
Set uid/gid to user before executing askpass program.
Check environment for SUDO_ASKPASS and use that if set.
TODO: a way for the policy to set the askpass program itself
2010-02-24 19:53:45 -05:00
Todd C. Miller
f3b2c9ac1d
No longer need sudo_usage.h in sudo.c
2010-02-24 07:49:16 -05:00
Todd C. Miller
07bf968c4d
Document -D level command line flag which maps to the debug_level setting.
2010-02-24 07:48:53 -05:00
Todd C. Miller
9eb3e63c56
Document debug_level in plugin doc. Still need to document the -D
...
flag in sudo itself.
2010-02-24 06:35:45 -05:00
Todd C. Miller
2a236bd218
Check for pseudo-command by looking at the first character of the
...
command in sudoers instead of checking the user-supplied command
for a slash.
--HG--
branch : 1.7
2010-02-22 17:32:24 -05:00
Todd C. Miller
fac0743e8a
include missing,h for vasprintf
2010-02-21 21:27:57 -05:00
Todd C. Miller
bcd021da5e
Rename plugin.pod -> sudo_plugin.pod and wire into Makefile
2010-02-21 21:24:20 -05:00
Todd C. Miller
80fae46be8
Need to include limits.h
2010-02-21 21:19:07 -05:00
Todd C. Miller
edd5184ac1
No more sudo_getpw*
2010-02-21 21:18:52 -05:00
Todd C. Miller
7200af0ce1
Add missing compat bits
2010-02-21 21:15:38 -05:00
Todd C. Miller
b3176134cb
compat files should not include sudo.h
...
wire up compat in sample plugin
2010-02-21 16:41:19 -05:00
Todd C. Miller
fadb324f1a
Fix up compat dependencies.
...
Fix distclean target in doc/Makefile.in
2010-02-21 16:12:01 -05:00
Todd C. Miller
51131cdb89
Fix typo
2010-02-21 15:32:59 -05:00
Todd C. Miller
781a054ab9
Log input and output to temp files for proof of concept.
2010-02-21 14:19:22 -05:00
Todd C. Miller
279cf1e958
Add doc Makefile.in and wire it up
2010-02-21 13:37:52 -05:00
Todd C. Miller
ad4a07a44e
Handle SIGSTOP in addition to SIGTSTP. Fixes a problem with suspending
...
a shell with the "suspend" builtint.
2010-02-21 10:36:50 -05:00
Todd C. Miller
d73e870e6f
In child, handle parent side of the pipe going away.
2010-02-21 10:30:43 -05:00
Todd C. Miller
32ea572f27
No longer need to check for explicit death of the child (process #2 )
...
since if it dies we will get EPIPE from the socketpair.
Fix a sizeof() that was causing a spurious error.
Convert SCRIPT_DEBUG to sudo_debug.
2010-02-21 10:26:30 -05:00
Todd C. Miller
c2aaf8fbfb
Make sudo_debug do a single vfprintf() which will result in a single
...
write call on most systems. Avoids problems with interleaved debug
printf from different processes. Also remove an extraneous error case
since recv() can't return a short read and add some more XXX.
2010-02-21 10:24:27 -05:00
Todd C. Miller
afcac08246
Fix uninitialized variable.
2010-02-20 15:13:11 -05:00
Todd C. Miller
121c547052
Fix sudo install target
2010-02-20 14:47:43 -05:00
Todd C. Miller
abb431b363
Wire up debug_level
2010-02-20 13:25:10 -05:00
Todd C. Miller
b4e0f503e1
Fix dependencies
2010-02-20 13:24:50 -05:00
Todd C. Miller
3327db2171
Fix setting of plugin dir
2010-02-20 13:20:57 -05:00
Todd C. Miller
6dccb419fd
add clean targets
2010-02-20 09:53:05 -05:00
Todd C. Miller
4b88f1a7ef
Add missing source for sudo front end
2010-02-20 09:47:46 -05:00
Todd C. Miller
3b354e36f3
Sample plugin demonstrating the sudo plugin API
2010-02-20 09:42:16 -05:00
Todd C. Miller
b6a4cf7233
Modular sudo front-end which loads policy and I/O plugins that do
...
most the actual work. Currently relies on dynamic loading using
dlopen(). See doc/plugin.pod for the plugin API.
2010-02-20 09:41:49 -05:00
Todd C. Miller
90c06ad7f2
Sudo plugin API
2010-02-20 09:30:27 -05:00
Todd C. Miller
d6187f5ad3
Replace emul/include.h with compat/include.h to match new source
...
tree layout.
2010-02-20 09:22:30 -05:00
Todd C. Miller
dc525d2587
Include missing.h for memrchr() proto
2010-02-20 09:17:54 -05:00
Todd C. Miller
e90fa482f9
Rework source layout in preparation for modular sudo.
2010-02-20 09:14:01 -05:00
Todd C. Miller
28c24027ec
Avoid a duplicate fclose() of the sudoers file.
2010-02-13 07:32:05 -05:00
Todd C. Miller
60adef2e34
Fix size arg when realloc()ing include stack. From Daniel Kopecek
2010-02-13 07:31:38 -05:00
Todd C. Miller
6b02fe5ea6
Use setrlimit64(), if available, instead of setrlimit() when setting
...
AIX resource limits since rlim_t is 32bits.
2010-02-13 07:30:56 -05:00
Todd C. Miller
7f59ba20b8
Fix use after free when sending error messages. From Timo Juhani Lindfors
2010-02-13 07:30:31 -05:00
Todd C. Miller
280a51cda0
Generate the ChangeLog as part of "make dist" instead of having it
...
in the repo.
2010-02-13 07:29:36 -05:00
Todd C. Miller
a40de29cbe
Avoid a duplicate fclose() of the sudoers file.
...
--HG--
branch : 1.7
2010-02-09 10:43:20 -05:00
Todd C. Miller
01240ab71a
Fix size arg when realloc()ing include stack. From Daniel Kopecek
...
--HG--
branch : 1.7
2010-02-09 08:28:03 -05:00
Todd C. Miller
fd37f5c59f
Use setrlimit64(), if available, instead of setrlimit() when setting
...
AIX resource limits since rlim_t is 32bits.
--HG--
branch : 1.7
2010-02-06 15:16:04 -05:00
Todd C. Miller
d4d13c1ca1
Fix use after free when sending error messages. From Timo Juhani Lindfors
...
--HG--
branch : 1.7
2010-02-06 12:43:26 -05:00
Todd C. Miller
c0f149b533
Generate the ChangeLog as part of "make dist" instead of having it
...
in the repo.
--HG--
branch : 1.7
2010-01-18 07:12:06 -05:00
Todd C. Miller
924daf0228
Generate correct ChangeLog for 1.7 branch.
...
--HG--
branch : 1.7
2010-01-17 19:55:11 -05:00
Todd C. Miller
3bb69ffe81
Remove CVS $Sudo$ tags.
2010-01-17 19:51:28 -05:00
convert-repo
4a50fafc14
update tags
2010-01-18 05:45:25 +00:00
Todd C. Miller
fb0e208022
make this match sudoers SYNOPSIS
2009-12-26 23:48:09 +00:00
Todd C. Miller
8ca8f24001
Print a newline between Runas and Command-specific defaults in
...
sudo -l.
2009-12-26 17:25:49 +00:00
Todd C. Miller
d0b2086a62
Use SET and CLR macros in term_raw
2009-12-26 01:50:25 +00:00
Todd C. Miller
8fbdbde2f5
Set stdin to non-blocking mode early instead of in check_input.
...
Use term_raw instead of term_cbreak since the data we get has
already been expanded via OPOST.
2009-12-26 01:49:25 +00:00