← Back to team overview

kernel-packages team mailing list archive

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

 

Ok here is the workaround:
in /etc/rsyslog.conf we need to add:

$KLogPermitNonKernelFacility on

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux 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:
  In Progress
Status in “rsyslog” package in Ubuntu:
  New

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.

  I've already done a coarse bisect,
  works v3.4
  fails in v3.5-rc1

  [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
  echo $STRING > /dev/kmsg
  sleep 5
  grep $STRING /var/log/syslog
  # This should return 0.

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


References