diff options
author | David Sterba <dsterba@suse.cz> | 2014-04-24 15:09:10 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-09 17:20:28 -0700 |
commit | 7d6213c5a764d0591afeb9faa3f7ee18e8e74c25 (patch) | |
tree | 0dc8e58d692e8583e5a3597f1610a652cbcd41bf | |
parent | df93589a17378277c0ac394858dd8a2a41e5fb5a (diff) | |
download | op-kernel-dev-7d6213c5a764d0591afeb9faa3f7ee18e8e74c25.zip op-kernel-dev-7d6213c5a764d0591afeb9faa3f7ee18e8e74c25.tar.gz |
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 <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
-rw-r--r-- | fs/btrfs/ioctl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index c6c8e35..92a5184 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); |