From: David Sterba Date: Thu, 16 Jan 2014 14:50:22 +0000 (+0100) Subject: btrfs: call permission checks earlier in ioctls and return EPERM X-Git-Tag: v3.14-rc1~29^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd60ea0fe947029df4b7b7aa9d6557baf2a5a138;p=pandora-kernel.git btrfs: call permission checks earlier in ioctls and return EPERM The owner and capability checks in IOC_SUBVOL_SETFLAGS and SET_RECEIVED_SUBVOL should be called before any other checks are done. Also unify the error code to EPERM. Signed-off-by: David Sterba Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed