Allow klogd to send LOG_KERN messages to syslogd

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2019-11-09 11:28:34 +01:00
parent b15420fdc5
commit a2feba69e2
2 changed files with 19 additions and 5 deletions

View File

@@ -233,6 +233,15 @@ int main(int argc, char *argv[])
funix[i] = -1;
}
#ifndef WITHOUT_KLOGD
/*
* When building with klogd enabled this works around filtering
* of LOG_KERN messages in parsemsg(). Otherwise it needs to be
* actively enabled to allow logging of remote kernel messages.
*/
KeepKernFac = 1;
#endif
while ((ch = getopt(argc, argv, "46Ab:dhHf:l:m:nP:p:R:rs:v?")) != EOF) {
switch ((char)ch) {
case '4':