Something like this seems the sanest approach. After opening /proc/kmsg, attempt a zero-byte read from it - if that fails with EPERM then we don't load the klog module
** Attachment added: "deroot.patchpatch" http://launchpadlibrarian.net/39737237/deroot.patchpatch -- rsyslogd spins CPU on some kernels https://bugs.launchpad.net/bugs/523610 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs