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
038ec569de
Use number of tty columns that is passed in user_info instead of
...
getting it directly in the lbuf code.
2010-03-17 21:25:32 -04:00
Todd C. Miller
96a98bed4b
Add tty size to user info
2010-03-17 10:36:02 -04:00
Todd C. Miller
ee223889c1
Wire up invalidate and validate methods for sudoers
2010-03-15 20:24:55 -04:00
Todd C. Miller
4e938c0074
Wire up SIGALRM handler
...
Set close on exec flag for child side of the socketpair
Fix signal handling when not doing I/O logging
2010-03-06 14:34:23 -05:00
Todd C. Miller
d73f580f5a
g/c unused SIGCHLD handler
2010-03-06 14:29:32 -05:00
Todd C. Miller
cc23068c2a
Don't use emalloc() in fmt_string(); we want to be able to use it from
...
a plugin.
2010-03-06 14:29:04 -05:00
Todd C. Miller
c857c74e3a
Convert to ANSI C
2010-03-04 20:18:22 -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
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
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
abb431b363
Wire up debug_level
2010-02-20 13:25:10 -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