patch-2.1.100 linux/drivers/char/esp.c
Next file: linux/drivers/char/ftape/zftape/zftape-ctl.c
Previous file: linux/drivers/char/console.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed May 6 10:56:03 1998
- Orig file:
v2.1.99/linux/drivers/char/esp.c
- Orig date:
Tue Mar 17 22:18:14 1998
diff -u --recursive --new-file v2.1.99/linux/drivers/char/esp.c linux/drivers/char/esp.c
@@ -926,7 +926,7 @@
"esp serial", info);
if (retval) {
- if (suser()) {
+ if (capable(CAP_SYS_ADMIN)) {
if (info->tty)
set_bit(TTY_IO_ERROR,
&info->tty->flags);
@@ -1499,7 +1499,7 @@
if (change_irq && (info->line % 8))
return -EINVAL;
- if (!suser()) {
+ if (!capable(CAP_SYS_ADMIN)) {
if (change_irq ||
(new_serial.close_delay != info->close_delay) ||
((new_serial.flags & ~ASYNC_USR_MASK) !=
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov