Todd C. Miller
e9914a91b1
The sudoers plugin now defines its own list of debugging subsystem names
...
and defines.
2014-10-22 13:30:52 -06:00
Todd C. Miller
866cfc4fc3
Add support for multiple Debug lines per program. Callers may
...
register arbitrary debug facilities or use built-in defaults. We
now use separate Debug statements for plugins and programs.
2014-10-22 13:23:05 -06:00
Todd C. Miller
36a5767e3e
efree -> sudo_efree for consistency
2014-07-10 15:35:04 -06:00
Todd C. Miller
2d61d38c23
Add sudo_ prefix to alloc.c functions and rename alloc.h -> sudo_alloc.h
2014-06-27 10:48:31 -06:00
Todd C. Miller
9b7dfa7522
Remove calls to log_fatal() in I/O log functions and just pass an
...
error back to the caller.
2014-04-04 15:30:12 -06:00
Todd C. Miller
ae6fb933f0
Do not assume localtime(), gmtime() and ctime() always return non-NULL.
2014-01-21 16:32:00 -07:00
Todd C. Miller
07a804caf3
Quiet sign comparision warnings.
2013-10-23 15:03:31 -06:00
Todd C. Miller
e507c05bbf
Fix typo in comment.
2013-08-19 09:19:52 -06:00
Todd C. Miller
d6282d154a
Update copyright years.
2013-04-24 09:35:02 -04:00
Todd C. Miller
a17d171155
We still want to recognize %{seq} for the SUDOERS_NO_SEQ case but
...
just leave it as-is.
2013-03-29 10:54:46 -04:00
Todd C. Miller
2541257696
Fix SUDOERS_NO_SEQ
2013-03-28 13:21:43 -04:00
Todd C. Miller
c1db4b1546
Always include locale.h from gettext.h so we no longer need to
...
include locale.h from the .c files.
2012-11-11 20:23:53 -05:00
Todd C. Miller
3f82a3407e
Convert setlocale() to sudoers_setlocale() in the sudoers module.
...
This only converts existing uses, there are more places where we
need to sprinkle sudoers_setlocale() calls.
2012-11-08 15:37:43 -05:00
Todd C. Miller
475662aaa4
Refactor policy plugin interface code from sudoers.c into policy.c
2012-10-25 16:58:31 -04:00
Todd C. Miller
319fe95d08
Make user_cwd const since it is either a string literal or passed
...
in from the front-end.
2012-10-24 16:32:43 -04:00
Todd C. Miller
fb037caffc
Add SUDOERS_NO_SEQ define to allow ${seq} to be disabled.
2012-10-23 11:57:07 -04:00
Todd C. Miller
203abd98b9
Use the expanded io log dir when updating the sequence number.
...
Includes a workaround for older versions of sudo where the
sequence number was stored in the unexpanded io log dir.
2012-06-15 12:33:12 -04:00
Todd C. Miller
649edc3192
Export group cache from sudoers.so for system_group.so to use.
2012-06-13 16:21:45 -04:00
Todd C. Miller
21a2f95821
Use stdbool.h instead of rolling our own TRUE/FALSE macros.
2011-12-02 11:27:33 -05:00
Todd C. Miller
839919566e
Add debug_decl/debug_return (almost) everywhere.
...
Remove old sudo_debug() and convert users to sudo_debug_printf().
2011-10-22 14:40:21 -04:00
Todd C. Miller
5a13dd2b76
Quiet an innocuous valgrind warning.
2011-08-19 09:32:25 -04:00
Todd C. Miller
bfc84b01f3
Fix expansion of strftime() escapes in log_dir and add a regress test
...
that exhibited the problem.
2011-08-18 13:41:40 -04:00
Todd C. Miller
b643b190a7
Prepare sudoers module messages for translation.
2011-05-16 16:32:05 -04:00
Todd C. Miller
353f31751d
Avoid a NULL deref on unrecognized escapes.
...
Collapse %% -> % like strftime() does.
2011-03-28 12:54:41 -04:00
Todd C. Miller
6e2778eb22
Move sessid out of sudo_user.
2011-03-11 14:07:26 -05:00
Todd C. Miller
383aef00b1
Log the TSID even if it is not a simple session ID.
2011-03-11 12:11:05 -05:00
Todd C. Miller
f7f8b6867e
Update copyright year to 2011
2011-01-20 16:46:56 -05:00
Todd C. Miller
d2596e3f7b
Quiest a bogus compiler warning.
2011-01-06 10:23:20 -05:00
Todd C. Miller
f09bbcb6bb
Protect call to setlocale() with HAVE_SETLOCALE
2011-01-05 16:27:44 -05:00
Todd C. Miller
b76c798856
Reset slashp if we allocate a new buffer for strftime()
2010-12-31 10:55:49 -05:00
Todd C. Miller
1bb3518b33
Add extra out parameter to expand_iolog_path() to allow the caller
...
to split the path into dir and file components if needed.
2010-12-31 09:55:40 -05:00
Todd C. Miller
7f580397e2
Trim leading slashes from iolog_file and trailing slashes from iolog_dir
2010-12-30 18:05:53 -05:00
Todd C. Miller
25036d7a75
Pass a single I/O log file name in command_details instead of
...
separate dir + file parameters.
2010-12-30 17:09:01 -05:00
Todd C. Miller
36d8fbb900
Fix typo
2010-12-27 13:49:06 -05:00
Todd C. Miller
fba58fa3f7
Allow sudoers to specify the iolog file in addition to the iolog dir.
...
Add escape sequence support to iolog file and dir: sequence number,
user, group, runas_user, runas_group, hostname and command in
addition to any escape sequence recognized by strftime(3).
2010-12-27 12:18:32 -05:00