lkml.org 
[lkml]   [1997]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectLog read permissions

I note that "normal" users have permission to read the kernel log buffer.
I don't really see why the non-superuser should need access to these in
any way.

Not that anything particularly sensitive goes into these logs mind you..
however I'm sure user joe doesn't care if my floppy driver module has been
loaded/unloaded or that lp1 is out of paper/on fire etc :-)

--- /home/stuff/kernel/linux/kernel/printk.c Fri Jun 7 09:54:06 1996
+++ ./printk.c Sun Jan 26 01:12:06 1997
@@ -65,7 +65,7 @@
char c;
int error;

- if ((type != 3) && !suser())
+ if (!suser())
return -EPERM;
switch (type) {
case 0: /* Close log */

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.053 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site