Todd C. Miller
d54cedfab7
Use warningx in yyerror() so the conversation function gets used
...
when built as part of sudoers.
2010-03-15 10:44:06 -04:00
Todd C. Miller
748ce55381
Rename sudo_conv to conversation to avoid a namespace conflict.
2010-03-14 20:47:56 -04:00
Todd C. Miller
9b0205846b
Initial bits of sudoers plugin; still needs work.
2010-03-14 19:58:47 -04:00
Todd C. Miller
3116e254b4
Add HAVE_STRDUP and HAVE_STRNDUP
2010-03-14 18:05:23 -04:00
Todd C. Miller
90ec112540
Build libmissing in two flavors (one PIC one non-PIC) and link with the
...
appropriate one.
2010-03-14 18:05:00 -04:00
Todd C. Miller
b883670a32
Build libmissing in two flavors (one PIC one non-PIC) and link with the
...
appropriate one.
2010-03-14 18:01:17 -04:00
Todd C. Miller
fc598f8e12
Add strdup and strndup and fix strsignal
2010-03-13 09:30:22 -05:00
Todd C. Miller
6b4d97ebc3
Add strdup and strndup to compat
2010-03-12 17:11:11 -05:00
Todd C. Miller
8003cb2f33
Need to include compat.h before missing.h
2010-03-12 12:46:30 -05:00
Todd C. Miller
301fb7d8ed
Must check HAVE_DECL_SYS_SIGLIST == 1 (not just if defined) since
...
if it doesn't exist configure will set it to 0.
2010-03-12 12:43:03 -05:00
Todd C. Miller
93ae94f9df
Fix botched ANSI C coversion of globexp2()
2010-03-12 12:40:00 -05:00
Todd C. Miller
1dcebf901a
Remove redundant getgroups check
2010-03-12 12:39:04 -05:00
Todd C. Miller
0795ef846c
Require either termios or termio, no more sgtty.
2010-03-12 11:45:57 -05:00
Todd C. Miller
cb8696d67e
Change the sys_siglist check to use AC_CHECK_DECLS and also check
...
for _sys_siglist and__sys_siglist
2010-03-12 05:26:01 -05:00
Todd C. Miller
5775026a51
Change SUDO_LDFLAGS to SUDOERS_LDFLAGS and add SUDOERS_OBJS.
...
We now use SUDO_OBJS for the main driver as part of OBJS.
2010-03-11 17:21:34 -05:00
Todd C. Miller
f0f803e337
Mention in the conversation function section that a newline is
...
not implicit.
2010-03-11 17:02:23 -05:00
Todd C. Miller
af62ffe6f1
Add definition of WCOREDUMP for systems without it. This is known
...
to work on AIX and SunOS 4, but may be incorrect on other systems
that lack WCOREDUMP.
2010-03-11 16:57:20 -05:00
Todd C. Miller
f211213dcb
conversation function no longer puts a newline at the end of info
...
or error messages.
2010-03-09 19:20:01 -05:00
Todd C. Miller
c8c4d6a13b
Use parent process group id instead of parent process id when checking
...
foreground status and suspending parent. Fixes an issue when running
commands under /usr/bin/time and others.
2010-03-07 07:45:17 -05:00
Todd C. Miller
8ca261fc7b
transcript option is now --with not --enable
2010-03-06 16:31:10 -05:00
Todd C. Miller
b814a0d74f
Add support to -u and -g flags
...
Check fmt_string retval
Add timeout for debugging purposes
2010-03-06 16:29:59 -05: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
847a7c1b24
tq_remove not list_remove
2010-03-06 14:28:26 -05:00
Todd C. Miller
c7b382a905
AUTH_OBJS should contain .lo files not .o files.
2010-03-06 07:36:02 -05:00
Todd C. Miller
5ff6832e16
Simplify conversion of command line args to name=value pairs.
2010-03-05 17:14:19 -05:00
Todd C. Miller
1e131d4278
Handle NULL reply from conversation function
2010-03-05 17:13:42 -05:00
Todd C. Miller
3384abd2b8
Don't depend on emalloc/erealloc
2010-03-05 16:52:04 -05:00
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