Public bug reported:

artful 8.16.0-1ubuntu5 (which is way behind upstream and debian, btw)

There are two ways to load the imklog module and pass it an option
(PermitNonKernelFacility in this case).

a) legacy
$ModLoad imklog
$KLogPermitNonKernelFacility on


b) "new style", also referred to as "v6+":
module(load="imklog" permitnonkernelfacility="on")

For a while the ubuntu package was using a mix: loading the module with
the new style, but setting the option via the legacy method. In bug
#1531622 this was fixed for yakkety+.

Problem is, upstream isn't honouring the new style option setting due to
a bug of its own: https://github.com/rsyslog/rsyslog/issues/477

With the legacy config:
#module(load="imklog" permitnonkernelfacility="on")
$ModLoad imklog
$KLogPermitNonKernelFacility on

I get kernel messages in /var/log/syslog:
root@nsn7:~# grep andreas-was-here /var/log/syslog
root@nsn7:~# echo andreas-was-here > /dev/kmsg
root@nsn7:~# grep andreas-was-here /var/log/syslog
Jul 12 16:46:33 nsn7 kernel: [27774.476193] andreas-was-here
root@nsn7:~#

But with this new v6 config style:
module(load="imklog" permitnonkernelfacility="on") # provides kernel logging 
support
#$ModLoad imklog
#$KLogPermitNonKernelFacility on

The text doesn't show up in /var/log/syslog. That's the upstream bug.

** Affects: rsyslog
     Importance: Unknown
         Status: Unknown

** Affects: rsyslog (Ubuntu)
     Importance: Undecided
         Status: New

** Bug watch added: github.com/rsyslog/rsyslog/issues #477
   https://github.com/rsyslog/rsyslog/issues/477

** Also affects: rsyslog via
   https://github.com/rsyslog/rsyslog/issues/477
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to rsyslog in Ubuntu.
https://bugs.launchpad.net/bugs/1703987

Title:
  New style permitnonkernelfacility imklog option inside module()
  doesn't work

Status in Rsyslog:
  Unknown
Status in rsyslog package in Ubuntu:
  New

Bug description:
  artful 8.16.0-1ubuntu5 (which is way behind upstream and debian, btw)

  There are two ways to load the imklog module and pass it an option
  (PermitNonKernelFacility in this case).

  a) legacy
  $ModLoad imklog
  $KLogPermitNonKernelFacility on

  
  b) "new style", also referred to as "v6+":
  module(load="imklog" permitnonkernelfacility="on")

  For a while the ubuntu package was using a mix: loading the module
  with the new style, but setting the option via the legacy method. In
  bug #1531622 this was fixed for yakkety+.

  Problem is, upstream isn't honouring the new style option setting due
  to a bug of its own: https://github.com/rsyslog/rsyslog/issues/477

  With the legacy config:
  #module(load="imklog" permitnonkernelfacility="on")
  $ModLoad imklog
  $KLogPermitNonKernelFacility on

  I get kernel messages in /var/log/syslog:
  root@nsn7:~# grep andreas-was-here /var/log/syslog
  root@nsn7:~# echo andreas-was-here > /dev/kmsg
  root@nsn7:~# grep andreas-was-here /var/log/syslog
  Jul 12 16:46:33 nsn7 kernel: [27774.476193] andreas-was-here
  root@nsn7:~#

  But with this new v6 config style:
  module(load="imklog" permitnonkernelfacility="on") # provides kernel logging 
support
  #$ModLoad imklog
  #$KLogPermitNonKernelFacility on

  The text doesn't show up in /var/log/syslog. That's the upstream bug.

To manage notifications about this bug go to:
https://bugs.launchpad.net/rsyslog/+bug/1703987/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to