Commit Graph

4674 Commits

Author SHA1 Message Date
Todd C. Miller
c81a62df34 Use $(OBJS) instead of sample_plugin.lo 2010-03-05 14:44:04 -05:00
Todd C. Miller
064eb35365 runas_user is in settings not user_info 2010-03-05 14:39:13 -05:00
Todd C. Miller
a1b7526e33 Fix a mismatch between sudo_settings and settings_pairs that causes
some settings to get the wrong values.
2010-03-05 14:38:42 -05:00
Todd C. Miller
c857c74e3a Convert to ANSI C 2010-03-04 20:18:22 -05:00
Todd C. Miller
6470a057e1 Fix strlcpy() return value check. 2010-03-04 12:06:42 -05:00
Todd C. Miller
cf07bde706 No longer need to substitute in script.o and pty.o; I/O logging support
is always built.
2010-03-04 08:12:36 -05:00
Todd C. Miller
19b17c7502 Add fallback to /bin/sh when execve() fails with ENOEXEC. 2010-02-28 15:10:18 -05:00
Todd C. Miller
76c90bc301 Add estrndup() 2010-02-28 15:09:50 -05:00
Todd C. Miller
f145264ee0 Refactor script_execve() a bit so that it can be used in non-script
mode.  Needs more cleanup.
2010-02-27 16:53:56 -05:00
Todd C. Miller
157b7805cf Ignore empty entries in command_info list 2010-02-27 13:36:30 -05:00
Todd C. Miller
25d3b4e51c Add tq_remove 2010-02-27 13:17:58 -05:00
Todd C. Miller
289dc98d96 Pass timeout to tgetpass() 2010-02-27 12:39:18 -05:00
Todd C. Miller
d53f352c4e Add ChangeLog target 2010-02-27 12:37:49 -05:00
Todd C. Miller
186ef7e688 Bump version and update things slightly for sudo 1.8.0 2010-02-27 10:05:04 -05:00
Todd C. Miller
ca3ee9de17 Sudo now requires an ANSI/ISO C compiler 2010-02-27 10:04:39 -05:00
Todd C. Miller
7ec040b541 Convert to ANSI C 2010-02-27 09:29:59 -05:00
Todd C. Miller
841807dd66 Convert to ANSI C 2010-02-27 09:26:43 -05:00
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
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