patch-2.4.3 linux/net/core/dv.c

Next file: linux/net/decnet/af_decnet.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/net/core/dv.c linux/net/core/dv.c
@@ -172,7 +172,7 @@
 		return -EINVAL;
 	
 	/* user issuing the ioctl must be a super one :) */
-	if (!suser())
+	if (!capable(CAP_SYS_ADMIN))
 		return -EPERM;
 
 	/* Device must have a divert_blk member NOT null */

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