summaryrefslogtreecommitdiff
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-04-24 13:09:18 (GMT)
committerChris Mason <clm@fb.com>2014-06-10 00:20:29 (GMT)
commite4ef90ff6198ac58d4c7dbbeae8cc7b24867d1ca (patch)
tree3b27dfba23c507846fdd0103cf078538dcb85e61 /fs/btrfs/ioctl.c
parent7d6213c5a764d0591afeb9faa3f7ee18e8e74c25 (diff)
downloadlinux-e4ef90ff6198ac58d4c7dbbeae8cc7b24867d1ca.tar.xz
btrfs: make FS_INFO ioctl available to anyone
This ioctl provides basic info about the filesystem that can be obtained in other ways (eg. sysfs), there's no reason to restrict it to CAP_SYSADMIN. Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 92a5184..2db12fc 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2557,9 +2557,6 @@ static long btrfs_ioctl_fs_info(struct btrfs_root *root, void __user *arg)
struct btrfs_fs_devices *fs_devices = root->fs_info->fs_devices;
int ret = 0;
- if (!capable(CAP_SYS_ADMIN))
- return -EPERM;
-
fi_args = kzalloc(sizeof(*fi_args), GFP_KERNEL);
if (!fi_args)
return -ENOMEM;