patch-2.1.100 linux/drivers/acorn/block/fd1772.c

Next file: linux/drivers/acorn/block/mfmhd.c
Previous file: linux/arch/sparc64/solaris/fs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/drivers/acorn/block/fd1772.c linux/drivers/acorn/block/fd1772.c
@@ -1368,7 +1368,7 @@
 	case FDFLUSH:
 		return invalidate_drive(drive);
 	}
-	if (!suser())
+	if (!capable(CAP_SYS_ADMIN))
 		return -EPERM;
 	if (drive < 0 || drive > 3)
 		return -EINVAL;

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