patch-2.1.100 linux/kernel/printk.c
Next file: linux/kernel/sched.c
Previous file: linux/kernel/module.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed May 6 10:56:06 1998
- Orig file:
v2.1.99/linux/kernel/printk.c
- Orig date:
Tue Apr 14 14:29:26 1998
diff -u --recursive --new-file v2.1.99/linux/kernel/printk.c linux/kernel/printk.c
@@ -130,7 +130,7 @@
int error = -EPERM;
lock_kernel();
- if ((type != 3) && !suser())
+ if ((type != 3) && !capable(CAP_SYS_ADMIN))
goto out;
error = 0;
switch (type) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov