patch-2.4.4 linux/drivers/char/esp.c

Next file: linux/drivers/char/ftape/zftape/zftape-vtbl.c
Previous file: linux/drivers/char/epca.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/drivers/char/esp.c linux/drivers/char/esp.c
@@ -1907,7 +1907,7 @@
 			    return get_lsr_info(info, (unsigned int *) arg);
 
 		case TIOCSERSWILD:
-			if (!suser())
+			if (!capable(CAP_SYS_ADMIN))
 				return -EPERM;
 			return 0;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)