2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Add support for mailing eventlog entries and for logging raw messages.

These will be used by the sudoers plugin.
This commit is contained in:
Todd C. Miller
2020-10-26 16:10:37 -06:00
parent fe6e0fb215
commit bd1ca79cca
7 changed files with 397 additions and 74 deletions

View File

@@ -46,16 +46,6 @@
#define SLOG_NO_LOG 0x20 /* do not log via file or syslog */
#define SLOG_AUDIT 0x40 /* send message to audit as well */
/*
* Maximum number of characters to log per entry. The syslogger
* will log this much, after that, it truncates the log line.
* We need this here to make sure that we continue with another
* syslog(3) call if the internal buffer is more than 1023 characters.
*/
#ifndef MAXSYSLOGLEN
# define MAXSYSLOGLEN 960
#endif
/*
* Indentation level for file-based logs when word wrap is enabled.
*/