* Question about /proc/kmsg semantics..
@ 2001-05-01 4:52 Michael Bacarella
2001-05-01 5:33 ` H. Peter Anvin
0 siblings, 1 reply; 2+ messages in thread
From: Michael Bacarella @ 2001-05-01 4:52 UTC (permalink / raw)
To: linux-kernel
Two pronged:
I've seen a couple of patches in the archives to make open()/close()
on /proc/kmsg do more than NOP. As of 2.4.4, klogd still needs to
run as root since access is checked on read() rather than once at
open(). I can't find the rationale as to why they're rejected.
Also, why is reading /proc/kmsg a privileged operation, yet dmesg
can happily print out the entire ring via (do_)syslog() ?
Thanks
--
Michael Bacarella <mbac@nyct.net>
Technical Staff / System Development,
New York Connect.Net, Ltd.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about /proc/kmsg semantics..
2001-05-01 4:52 Question about /proc/kmsg semantics Michael Bacarella
@ 2001-05-01 5:33 ` H. Peter Anvin
0 siblings, 0 replies; 2+ messages in thread
From: H. Peter Anvin @ 2001-05-01 5:33 UTC (permalink / raw)
To: linux-kernel
Followup to: <20010501005237.A2776@sync.nyct.net>
By author: Michael Bacarella <mbac@nyct.net>
In newsgroup: linux.dev.kernel
>
> I've seen a couple of patches in the archives to make open()/close()
> on /proc/kmsg do more than NOP. As of 2.4.4, klogd still needs to
> run as root since access is checked on read() rather than once at
> open(). I can't find the rationale as to why they're rejected.
>
> Also, why is reading /proc/kmsg a privileged operation, yet dmesg
> can happily print out the entire ring via (do_)syslog() ?
>
Probably because reading /proc/kmsg may cause syslogd to miss
messages.
-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-01 5:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-01 4:52 Question about /proc/kmsg semantics Michael Bacarella
2001-05-01 5:33 ` H. Peter Anvin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox