From: David Sterba Date: Thu, 24 Apr 2014 13:09:10 +0000 (+0200) Subject: btrfs: make DEV_INFO ioctl available to anyone X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7d6213c5a764d0591afeb9faa3f7ee18e8e74c25;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git btrfs: make DEV_INFO ioctl available to anyone This ioctl provides basic info about the devices 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 c6c8e3560e73..92a5184ac696 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -2593,9 +2593,6 @@ static long btrfs_ioctl_dev_info(struct btrfs_root *root, void __user *arg) int ret = 0; char *s_uuid = NULL; - if (!capable(CAP_SYS_ADMIN)) - return -EPERM; - di_args = memdup_user(arg, sizeof(*di_args)); if (IS_ERR(di_args)) return PTR_ERR(di_args);