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 |
|
Todd C. Miller
|
ba9d2f5bb6
|
Play more nicely with libtool and let it build libreplace (was libmissing)
for us.
|
2010-03-18 11:42:12 -04:00 |
|
Todd C. Miller
|
fdbc4ecffb
|
Include stdarg.h for va_list rather than requiring all consumers of
missing.h to include stdarg.h themselves.
|
2010-03-18 08:58:31 -04:00 |
|
Todd C. Miller
|
b4f4afdf69
|
Pass in output function to lbuf_init() instead of writing to stdout.
A side effect is that the usage info can now go to stderr as it should.
|
2010-03-18 06:42:17 -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
|
d5ae4c7d87
|
Kill __P in sudoers
|
2010-03-17 19:56:27 -04:00 |
|
Todd C. Miller
|
5a2a2d193f
|
Set the sudoers plugin name in configure so we get the extension right.
|
2010-03-17 18:48:19 -04:00 |
|
Todd C. Miller
|
81949e89d1
|
Document lines/cols in user_info
|
2010-03-17 10:44:16 -04:00 |
|
Todd C. Miller
|
96a98bed4b
|
Add tty size to user info
|
2010-03-17 10:36:02 -04:00 |
|
Todd C. Miller
|
f08479f19a
|
Use TIOCGSIZE/TIOCSSIZE instead of TIOCGWINSZ/TIOCSWINSZ
|
2010-03-17 08:36:17 -04:00 |
|
Todd C. Miller
|
a5d2775f73
|
Kill dead code
Add missing sigsetjmp in sudo_policy_invalidate
Error out if we fail to lookup the user's name that is passed in
|
2010-03-16 08:50:03 -04:00 |
|
Todd C. Miller
|
0d8159fa2f
|
Pass the error value back via siglongjmp.
|
2010-03-16 08:41:36 -04:00 |
|
Todd C. Miller
|
51c55cd487
|
Use conversation function for lecture.
|
2010-03-16 07:41:41 -04:00 |
|
Todd C. Miller
|
cbf298bfc8
|
Don't update ticket file if verify_user returns FALSE.
|
2010-03-16 07:13:57 -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
|
248bae4e56
|
Add support for -k flag with a command.
|
2010-03-15 19:41:15 -04:00 |
|
Todd C. Miller
|
36701e1233
|
Allow -k to be specified with a command.
|
2010-03-15 19:40:15 -04:00 |
|
Todd C. Miller
|
e8eec34022
|
Wire up policy_list
|
2010-03-15 18:13:58 -04:00 |
|
Todd C. Miller
|
718073e271
|
Add newline at the end of message and space after the colon in warning message
|
2010-03-15 18:13:31 -04:00 |
|
Todd C. Miller
|
88a0244dde
|
Add missing newline after pass password warning
|
2010-03-15 18:13:06 -04:00 |
|
Todd C. Miller
|
7b024c53c4
|
Set user_groups and user_ngroups based on user_info
|
2010-03-15 17:07:10 -04:00 |
|
Todd C. Miller
|
5113f84894
|
Make this compile
|
2010-03-15 13:42:40 -04:00 |
|
Todd C. Miller
|
5e2f61a098
|
Make _warning in error.c use the conversation function and remove
commented out warning/warningx in sudoers.c.
|
2010-03-15 07:14:45 -04:00 |
|
Todd C. Miller
|
dbbc0cea56
|
Use siglongjmp() in log_error for fatal errors
|
2010-03-15 07:06:11 -04:00 |
|
Todd C. Miller
|
d1d6afaef0
|
Quiet a libtool warning
|
2010-03-15 07:01:51 -04:00 |
|
Todd C. Miller
|
6527c92da4
|
Build sudoers plugin
|
2010-03-15 10:44:19 -04:00 |
|
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 |
|