← Back to team overview

touch-packages team mailing list archive

[Bug 1274444] Re: echo string to /dev/kmsg fails to appear on /var/log/syslog

 

This bug was fixed in the package rsyslog - 7.4.4-1ubuntu2.1

---------------
rsyslog (7.4.4-1ubuntu2.1) trusty; urgency=medium

  * Enable non-kernel facility klog messages. (LP: #1274444)
 -- Chris J Arges <chris.j.arges@xxxxxxxxxx>   Tue, 19 Aug 2014 14:51:26 -0500

-- 
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/1274444

Title:
  echo string to /dev/kmsg fails to appear on /var/log/syslog

Status in “linux” package in Ubuntu:
  Invalid
Status in “rsyslog” package in Ubuntu:
  Fix Released
Status in “rsyslog” source package in Precise:
  Fix Released
Status in “rsyslog” source package in Trusty:
  Fix Released

Bug description:
  [Impact]
  In the precise 3.2 series kernel writing strings to /dev/kmsg appears and dmesg and /var/log/syslog, in 3.5 series kernel this does not happen properly even with the equivalent userspace packages.

  This is because the default facility number in the kernel has changed
  from 0 to 1 for user-space generated kmsg entries. Because of this;
  rsyslog (or any affected sysloggers) need to accept non-kernel
  facility numbers.

  This change was introduced by this commit (in the linux kernel):
  7ff9554bb578ba02166071d2d487b7fc7d860d62

  [Test Case]
  Run the following script as root:

  #!/bin/bash
  STRING=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 32)
  # > /var/log/syslog # this isn't necessary
  echo $STRING > /dev/kmsg
  sleep 5
  grep $STRING /var/log/syslog
  # This should return 0.

  [Regression Potential]
  Any scripts that rely on syslog output may finally see output produced by packages like init/systemd show up in syslog. This changes the default rsyslog.conf file settings but isn't a code change.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1274444/+subscriptions