Log read permissions

Chris Evans (chris@ferret.lmh.ox.ac.uk)
Sun, 26 Jan 1997 01:17:49 +0000 (GMT)


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 */