patch-2.2.11 linux/fs/ioctl.c
Next file: linux/fs/isofs/namei.c
Previous file: linux/fs/inode.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Aug 9 12:04:41 1999
- Orig file:
v2.2.10/linux/fs/ioctl.c
- Orig date:
Wed Mar 24 08:08:53 1999
diff -u --recursive --new-file v2.2.10/linux/fs/ioctl.c linux/fs/ioctl.c
@@ -18,6 +18,8 @@
switch (cmd) {
case FIBMAP:
+ if (!capable(CAP_SYS_RAWIO))
+ return -EPERM;
if (inode->i_op == NULL)
return -EBADF;
if (inode->i_op->bmap == NULL)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)