|
@@ -3290,7 +3290,7 @@ static long btrfs_ioctl_ino_to_path(struct btrfs_root *root, void __user *arg)
|
|
struct inode_fs_paths *ipath = NULL;
|
|
struct inode_fs_paths *ipath = NULL;
|
|
struct btrfs_path *path;
|
|
struct btrfs_path *path;
|
|
|
|
|
|
- if (!capable(CAP_SYS_ADMIN))
|
|
|
|
|
|
+ if (!capable(CAP_DAC_READ_SEARCH))
|
|
return -EPERM;
|
|
return -EPERM;
|
|
|
|
|
|
path = btrfs_alloc_path();
|
|
path = btrfs_alloc_path();
|