mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 02:40:42 +01:00
permitnonkernelfacility doesn't work when the new configuration syntax is used, e.g. 'module(load="imklog" permitnonkernelfacility="on")'. It does work with the old syntax, e.g. '$KLogPermitNonKernelFacility on' This is because the old style config is stored in a static global struct "cs", while the new style config is passed in as a pointer. Code in imklog will put old style config entries into the new config struct, and almost all the code in imklog uses the new config struct like it should. Except for a check for bPermitNonKernel in Syslog() that continued to use the static global that only has old style configs. Fix this by passing pModConf down into Syslog() and using that in place of the static global. closes https://github.com/rsyslog/rsyslog/issues/477