patch-2.1.100 linux/drivers/block/nbd.c

Next file: linux/drivers/block/ns87415.c
Previous file: linux/drivers/block/md.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/drivers/block/nbd.c linux/drivers/block/nbd.c
@@ -316,7 +316,7 @@
 	struct nbd_device *lo;
 	int dev, error;
 
-	if (!suser())
+	if (!capable(CAP_SYS_ADMIN))
 		return -EPERM;
 	if (!inode)
 		return -EINVAL;

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