commit | bd60ea0fe947029df4b7b7aa9d6557baf2a5a138 | [log] [tgz] |
---|---|---|
author | David Sterba <dsterba@suse.cz> | Thu Jan 16 15:50:22 2014 +0100 |
committer | Chris Mason <clm@fb.com> | Tue Jan 28 13:20:41 2014 -0800 |
tree | 572b5d652fb6a4c2977bfbc1cc26dac8e3f79d89 | |
parent | d024206133ce21936b3d5780359afc00247655b7 [diff] |
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 <dsterba@suse.cz> Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Chris Mason <clm@fb.com>