patch-2.1.102 linux/drivers/char/cyclades.c

Next file: linux/drivers/char/joystick.c
Previous file: linux/drivers/block/nbd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.101/linux/drivers/char/cyclades.c linux/drivers/char/cyclades.c
@@ -3382,7 +3382,7 @@
     copy_from_user(&new_serial,new_info,sizeof(new_serial));
     old_info = *info;
 
-    if (!suser()) {
+    if (!capable(CAP_SYS_ADMIN)) {
             if ((new_serial.close_delay != info->close_delay) ||
 		(new_serial.baud_base != info->baud) ||
 		((new_serial.flags & ASYNC_FLAGS & ~ASYNC_USR_MASK) !=

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov