Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1287966
| From | "Serge E. Hallyn" <serge.hallyn@ubuntu.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] fs: Drop CAP_SYS_RAWIO requirement for FIBMAP |
| Date | 2015-12-10 00:00 +0100 |
| Message-ID | <qDVSj-65j-23@gated-at.bofh.it> (permalink) |
| References | <qCemm-51v-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, Dec 05, 2015 at 12:15:16AM -0600, Seth Forshee wrote: > The information exposed by FIBMAP is not privileged and is > similar to the information provided by FIEMAP, which does not > require privileges. According to [1] the reason the capability > check was originally added was to prevent crashing the kernel > by passing invalid arguments, but this should no longer be a > problem, so this requirement can be removed. > > [1] http://www.gossamer-threads.com/lists/linux/kernel/103611 > > Cc: "Serge E. Hallyn" <serge@hallyn.com> > Cc: Theodore Ts'o <tytso@mit.edu> > Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> > --- > fs/ioctl.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/ioctl.c b/fs/ioctl.c > index 5d01d2638ca5..c963d82b0de8 100644 > --- a/fs/ioctl.c > +++ b/fs/ioctl.c > @@ -55,8 +55,6 @@ static int ioctl_fibmap(struct file *filp, int __user *p) > /* do we support this mess? */ > if (!mapping->a_ops->bmap) > return -EINVAL; > - if (!capable(CAP_SYS_RAWIO)) > - return -EPERM; > res = get_user(block, p); > if (res) > return res; > -- > 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] fs: Drop CAP_SYS_RAWIO requirement for FIBMAP Seth Forshee <seth.forshee@canonical.com> - 2015-12-05 07:20 +0100 Re: [PATCH] fs: Drop CAP_SYS_RAWIO requirement for FIBMAP "Serge E. Hallyn" <serge.hallyn@ubuntu.com> - 2015-12-10 00:00 +0100
csiph-web