As Rocko suggests, this bug is fixed in the 2.6.34 kernel, which is
currently in maverick:

cl...@ubuntu:~$ uname -a
Linux ubuntu 2.6.34-4-generic #11-Ubuntu SMP Tue May 25 18:53:52 UTC 2010 
x86_64 GNU/Linux
cl...@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu maverick (development branch)
Release:        10.10
Codename:       maverick
cl...@ubuntu:~$ sudo python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> f=open('/proc/kmsg')
>>> os.seteuid(1000)
>>> f.read(0)
''
>>> f.read(1)
^CTraceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyboardInterrupt


The KeyboardInterrupt was after 30 seconds waiting for the kernel to print 
something.

-- 
rsyslog fails to read kmsg on 2.6.33 kernels
https://bugs.launchpad.net/bugs/565288
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

Reply via email to