Skip to contentSkip to conversation

Patch to add support for more syslog facilities

PATCH Applied Aleksander Adamowski 2 participants 2 messages Jan 9, 2016 – Jan 11, 2016

lore
Share & tools
lore
#0 lore raw

The set of syslog facilities that can be configured for the builting syslog plugin is pretty limited (LOG_LOCAL0 - LOG_LOCAL9).

This patch adds a bunch of other facilities that might make sense for some people (like us). Facilities that wouldn¹t make any sense (like LOG_NEWS or LOG_LPR) are still left out.

Best Regards,
--
Olo

audispd-builtins.c +10 -0
Index: audisp/audispd-builtins.c
===================================================================
@@ -302,6 +302,16 @@
 				facility = LOG_LOCAL6;
 			else if (strcasecmp(conf->args[i], "LOG_LOCAL7") == 0)
 				facility = LOG_LOCAL7;
+			else if (strcasecmp(conf->args[i], "LOG_AUTH") == 0)
+				facility = LOG_AUTH;
+			else if (strcasecmp(conf->args[i], "LOG_AUTHPRIV") == 0)
+				facility = LOG_AUTHPRIV;
+			else if (strcasecmp(conf->args[i], "LOG_DAEMON") == 0)
+				facility = LOG_DAEMON;
+			else if (strcasecmp(conf->args[i], "LOG_SYSLOG") == 0)
+				facility = LOG_SYSLOG;
+			else if (strcasecmp(conf->args[i], "LOG_USER") == 0)
+				facility = LOG_USER;
 			else {
 				syslog(LOG_ERR, 
 					"Unknown log priority/facility %s",
Applied
#1 lore raw
Quoted 6 lines · Aleksander Adamowski

The set of syslog facilities that can be configured for the builting syslog plugin is pretty limited (LOG_LOCAL0 - LOG_LOCAL9).

This patch adds a bunch of other facilities that might make sense for some people (like us). Facilities that wouldn¹t make any sense (like LOG_NEWS or LOG_LPR) are still left out.

Applied. Thanks!

-Steve