David Sterba bd60ea0fe9 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>
2014-01-28 13:20:41 -08:00
..
2014-01-28 13:19:50 -08:00
2013-11-11 22:03:19 -05:00
2013-03-14 14:57:10 -04:00
2013-11-11 22:03:19 -05:00
2013-02-01 14:24:23 -05:00
2013-11-11 22:11:26 -05:00