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

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

diff -u --recursive --new-file v2.1.99/linux/drivers/block/rd.c linux/drivers/block/rd.c
@@ -164,7 +164,7 @@
 
 	switch (cmd) {
 		case BLKFLSBUF:
-			if (!suser()) return -EACCES;
+			if (!capable(CAP_SYS_ADMIN)) return -EACCES;
 			invalidate_buffers(inode->i_rdev);
 			break;
          	case BLKGETSIZE:   /* Return device size */

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