linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 1/1] Drop CAP_SYS_RAWIO requirement for FIBMAP
@ 2007-10-25 23:06 Mike Waychison
  2007-10-26  0:22 ` Alan Cox
  2007-10-29 19:08 ` Pavel Machek
  0 siblings, 2 replies; 10+ messages in thread
From: Mike Waychison @ 2007-10-25 23:06 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Linux Kernel

[-- Attachment #1: drop_cap_sys_rawio_for_fibmap.patch --]
[-- Type: text/plain, Size: 879 bytes --]

Remove the need for having CAP_SYS_RAWIO when doing a FIBMAP call on an open file descriptor.

It would be nice to allow users to have permission to see where their data is landing on disk, and there really isn't a good reason to keep them from getting at this information.

Signed-off-by: Mike Waychison <mikew@google.com>
 fs/ioctl.c |    2 --
 1 file changed, 2 deletions(-)

Index: linux-2.6.23/fs/ioctl.c
===================================================================
--- linux-2.6.23.orig/fs/ioctl.c	2007-10-09 13:31:38.000000000 -0700
+++ linux-2.6.23/fs/ioctl.c	2007-10-25 15:48:24.000000000 -0700
@@ -56,8 +56,6 @@ static int file_ioctl(struct file *filp,
 			/* do we support this mess? */
 			if (!mapping->a_ops->bmap)
 				return -EINVAL;
-			if (!capable(CAP_SYS_RAWIO))
-				return -EPERM;
 			if ((error = get_user(block, p)) != 0)
 				return error;
 

--


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-11-01 14:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-25 23:06 [patch 1/1] Drop CAP_SYS_RAWIO requirement for FIBMAP Mike Waychison
2007-10-26  0:22 ` Alan Cox
2007-10-26  0:35   ` Mike Waychison
2007-10-26  0:43     ` Alan Cox
2007-10-26 21:55   ` Jason Uhlenkott
2007-10-26 21:59     ` Mike Waychison
2007-10-26 22:40       ` Jason Uhlenkott
2007-10-26 22:53         ` Mike Waychison
2007-10-29 19:08 ` Pavel Machek
2007-11-01 14:51   ` Ric Wheeler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).