From: David Sterba Date: Tue, 12 May 2015 17:14:49 +0000 (+0200) Subject: btrfs: make root id query unprivileged X-Git-Tag: omap-for-v4.2/fixes-rc1^2~69^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01b810b889d557257580970e1a7ba9c85b54766b;p=pandora-kernel.git 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 Signed-off-by: Chris Mason --- Reading git-diff-tree failed