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

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)