summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-05-12 19:14:49 +0200
committerChris Mason <clm@fb.com>2015-06-02 19:34:36 -0700
commit01b810b889d557257580970e1a7ba9c85b54766b (patch)
tree4a3f395eb64f6ab98f26b9c918cee0c1af6a8264 /drivers/net
parent2e6e518335f81d651021a8873da1c938ca0bf1fc (diff)
btrfs: make root id query unprivileged
The INO_LOOKUP ioctl can lookup path for a given inode number and is thus restricted. As a sideefect it can find the root id of the containing subvolume and we're using this int the 'btrfs inspect rootid' command. The restriction is unnecessary in case we set the ioctl args args::treeid = 0 args::objectid = 256 (BTRFS_FIRST_FREE_OBJECTID) Then the path will be empty and the treeid is filled with the root id of the inode on which the ioctl is called. This behaviour is unchanged, after the root restriction is removed. Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions