From: David Sterba Date: Thu, 24 Apr 2014 13:09:18 +0000 (+0200) Subject: btrfs: make FS_INFO ioctl available to anyone X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4ef90ff6198ac58d4c7dbbeae8cc7b24867d1ca;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 92a5184ac696..2db12fc3f748 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;