summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-06-12 08:25:05 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-06-12 08:25:05 +0200
commitb003f8509150cd3a694610edb0ec72d8ca86b667 (patch)
tree3dd0a905dbebcc9f2c494b1b5125d8991055e5ec
parent7b93d930f2f194969ec24528c2c42d4eebba29f3 (diff)
parent8080d3fef6c9d3f1452ff605e05748999b25aa32 (diff)
downloadrsyslog-b003f8509150cd3a694610edb0ec72d8ca86b667.tar.gz
rsyslog-b003f8509150cd3a694610edb0ec72d8ca86b667.tar.xz
rsyslog-b003f8509150cd3a694610edb0ec72d8ca86b667.zip
Merge branch 'beta'
Conflicts: ChangeLog configure.ac doc/manual.html plugins/imklog/linux.c
-rw-r--r--ChangeLog8
-rw-r--r--configure.ac1
-rw-r--r--doc/imklog.html15
-rw-r--r--plugins/imklog/imklog.c4
-rw-r--r--plugins/imklog/linux.c1
5 files changed, 19 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 1019821a..332859c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -111,7 +111,13 @@ Version 3.19.0 (rgerhards), 2008-05-06
- -c option no longer must be the first option - thanks to varmjofekoj
for the patch
---------------------------------------------------------------------------
-Version 3.17.3 (rgerhards), 2008-05-??
+Version 3.17.4 (rgerhards), 2008-05-??
+- changed default for $KlogSymbolLookup to "off". The directive is
+ also scheduled for removal in a later version. This was necessary
+ because on kernels >= 2.6, the kernel does the symbol lookup itself. The
+ imklog lookup logic then breaks the log message and makes it unusable.
+---------------------------------------------------------------------------
+Version 3.17.3 (rgerhards), 2008-05-28
- bugfix: imklog went into an endless loop if a PRI value was inside
a kernel log message (unusual case under Linux, frequent under BSD)
---------------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index af39fa23..e958a072 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,6 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
-AC_INIT([rsyslog],[3.19.8],[rsyslog@lists.adiscon.com])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([ChangeLog])
AC_CONFIG_HEADERS([config.h])
diff --git a/doc/imklog.html b/doc/imklog.html
index 92c1881a..b5b21e84 100644
--- a/doc/imklog.html
+++ b/doc/imklog.html
@@ -34,14 +34,19 @@ processing.<span style="font-weight: bold;"></span></li>
<li><span style="font-weight: bold;"></span>$DebugPrintKernelSymbols
(imklog) [on/<b>off</b>]<br>
Linux only, ignored on other platforms (but may be specified)</li>
-<li>$klogSymbolLookup (imklog) [<b>on</b>/off] --
-former klogd -x option<br>
+<li>$klogSymbolLookup (imklog) [on/<b>off</b>] --
+disables imklog kernel symbol translation (former klogd -x option). NOTE that
+this option is counter-productive on recent kernels (>= 2.6) because the
+kernel already does the symbol translation and this option breaks the information.<br>
+<b>This option is scheduled for removal, probably with version 4.x.</b> Do not use
+it except if you have a very good reason. If you have one, let us know
+because otherwise new versions will no longer support it.<br>
Linux only, ignored on other platforms (but may be specified)</li>
<li>$klogUseSyscallInterface (imklog)&nbsp; [on/<b>off</b>]
--- former klogd -2 option<br>
+-- former klogd -s option<br>
Linux only, ignored on other platforms (but may be specified)</li>
<li>$klogSymbolsTwice (imklog) [on/<b>off</b>] --
-former klogd -s option<br>
+former klogd -2 option<br>
Linux only, ignored on other platforms (but may be specified)<br style="font-weight: bold;">
</li>
</ul>
@@ -66,4 +71,4 @@ Copyright © 2008 by <a href="http://www.gerhards.net/rainer">Rainer
Gerhards</a> and
<a href="http://www.adiscon.com/">Adiscon</a>.
Released under the GNU GPL version 3 or higher.</font></p>
-</body></html> \ No newline at end of file
+</body></html>
diff --git a/plugins/imklog/imklog.c b/plugins/imklog/imklog.c
index 3faed2fe..f6935a34 100644
--- a/plugins/imklog/imklog.c
+++ b/plugins/imklog/imklog.c
@@ -65,7 +65,7 @@ DEFobjCurrIf(glbl)
int dbgPrintSymbols = 0; /* this one is extern so the helpers can access it! */
int symbols_twice = 0;
int use_syscall = 0;
-int symbol_lookup = 1;
+int symbol_lookup = 0; /* on recent kernels > 2.6, the kernel does this */
int bPermitNonKernel = 0; /* permit logging of messages not having LOG_KERN facility */
int iFacilIntMsg; /* the facility to use for internal messages (set by driver) */
/* TODO: configuration for the following directives must be implemented. It
@@ -245,7 +245,7 @@ static rsRetVal resetConfigVariables(uchar __attribute__((unused)) *pp, void __a
symbols_twice = 0;
use_syscall = 0;
symfile = NULL;
- symbol_lookup = 1;
+ symbol_lookup = 0;
bPermitNonKernel = 0;
iFacilIntMsg = klogFacilIntMsg();
return RS_RET_OK;
diff --git a/plugins/imklog/linux.c b/plugins/imklog/linux.c
index 853c8b2c..862f5856 100644
--- a/plugins/imklog/linux.c
+++ b/plugins/imklog/linux.c
@@ -499,7 +499,6 @@ rsRetVal klogWillRun(void)
symbol_lookup = (InitKsyms(symfile) == 1);
symbol_lookup |= InitMsyms();
if (symbol_lookup == 0) {
- dbgprintf("cannot find any symbols, turning off symbol lookups\n");
imklogLogIntMsg(LOG_WARNING, "cannot find any symbols, turning off symbol lookups");
}
}