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
- Lines: 9
- Date:
Wed May 6 10:56:03 1998
- Orig file:
v2.1.99/linux/drivers/block/rd.c
- Orig date:
Sat May 2 14:19:53 1998
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