Todd C. Miller
|
567e5167d1
|
Don't assume that just because command is non-NULL, argv is non-NULL.
|
2020-12-04 13:48:16 -07:00 |
|
Todd C. Miller
|
e22817e3ab
|
Fix build when configured using --without-sendmail
Bug #947
|
2020-11-30 13:18:12 -07:00 |
|
Todd C. Miller
|
9779009fae
|
Add info_msgs to AlertMessage and populate it.
This lets us log eventlog info along with the alert if it is available.
|
2020-11-09 17:15:11 -07:00 |
|
Todd C. Miller
|
0dd4c5797a
|
For logsrvd AlertMessages, evlog will be NULL.
|
2020-11-06 14:40:54 -07:00 |
|
Todd C. Miller
|
444ca3789e
|
Append errstr to reason for alert and reject events if specified.
Previously, we logged the error string separately but this is
not consistent with how it is logged in other formats.
|
2020-11-06 13:09:21 -07:00 |
|
Todd C. Miller
|
a9cad13b11
|
Use struct eventlog *evlog, not struct eventlog *details.
|
2020-11-09 16:52:21 -07:00 |
|
Todd C. Miller
|
1910b1924f
|
Test eventlog_writeln() when word wrap is disabled.
|
2020-10-28 13:47:40 -06:00 |
|
Todd C. Miller
|
8c43eeb293
|
For JSON logs, write the most important log elements first.
This is important for syslog where the record could be truncated.
|
2020-10-27 16:28:16 -06:00 |
|
Todd C. Miller
|
6bc729aa36
|
Support "minimal" JSON which skips all non-essention whitespace.
This replaces the old "compact" mode which is only used for syslog.
|
2020-10-27 13:26:22 -06:00 |
|
Todd C. Miller
|
34c1651514
|
Check for fdopen(3) failure in send_mail().
|
2020-10-26 21:23:36 -06:00 |
|
Todd C. Miller
|
fdae4bdbbb
|
Add support for file log line wrapping in libeventlog.
|
2020-10-26 16:16:46 -06:00 |
|
Todd C. Miller
|
d899fe5936
|
Use real setters for the eventlog config.
This makes it possible to have a base config that the callers can
modify instead of replacing the config wholesale.
|
2020-10-26 16:10:42 -06:00 |
|
Todd C. Miller
|
39b540ff33
|
Log the short version of the tty in sudoers-format logs.
This is consistent with historical practice.
|
2020-10-26 16:10:40 -06:00 |
|
Todd C. Miller
|
4416bd5977
|
Use libeventlog in sudoers instead of doing our own logging.
|
2020-10-26 16:10:40 -06:00 |
|
Todd C. Miller
|
541252beb1
|
Add default values in eventlog_setconf().
|
2020-10-26 16:10:39 -06:00 |
|
Todd C. Miller
|
bd1ca79cca
|
Add support for mailing eventlog entries and for logging raw messages.
These will be used by the sudoers plugin.
|
2020-10-26 16:10:37 -06:00 |
|
Todd C. Miller
|
fe6e0fb215
|
If no JSON callback is provided, store the contents of struct eventlog.
This moves the JSON formatting of struct eventlog out of libsudo_iolog
and into libsudo_eventlog where it belongs.
|
2020-10-26 15:43:43 -06:00 |
|
Todd C. Miller
|
4652698f8e
|
struct eventlog contains submit_time, no need to pass it in directly.
|
2020-10-26 15:43:02 -06:00 |
|
Todd C. Miller
|
c0e91d7586
|
Add an errstr argument to eventlog_alert().
|
2020-10-26 15:41:47 -06:00 |
|
Todd C. Miller
|
db72498257
|
Use struct eventlog in place of struct iolog_info.
|
2020-10-26 15:31:41 -06:00 |
|
Todd C. Miller
|
707437f6cb
|
Refactor eventlog code into a library
|
2020-10-26 15:24:35 -06:00 |
|