Re: klog under linux 2.6.0-test11

Gerrit Pape <[email protected]>
Newsgroups gmane.comp.misc.pape.general
Message-ID <20031208122055.20642.qmail@dc644ec760ae54.315fe32.mid.smarden.org>
On Mon, Dec 08, 2003 at 11:05:26AM +0100, Lukas Beeler wrote:
> This also happens for me. Iam using 2.6.0-test[8-11], without
> further patches. No obscure security patches whatsoever applied.
> I ``fixed'' the problem by running socklog-klog as root. Didn't
> investigate it further, because i lacked time to do so.

Indeed.  I found a machine running linux 2.6.0-test8:
 # uname -r
 2.6.0-test8
 # ls -l /tmp/testfile 
 -r--------    1 root     root           49 Dec  8 11:48 /tmp/testfile
 # (su -c cat nobody) </tmp/testfile 
 foo bar
 #

fine, but:
 # ls -l /proc/kmsg 
 -r--------    1 root     root            0 Nov 24 10:00 /proc/kmsg
 # (su -c cat nobody) </proc/kmsg 
 cat: -: Operation not permitted
 #

with kernel 2.4:
 # uname -r 
 2.4.22
 # (su -c cat nobody) </proc/kmsg 

it works fine.

I'm curious if this change to the proc file-system is intended.

Regards, Gerrit.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.