diff options
author | David Sterba <dsterba@suse.cz> | 2014-01-16 15:50:22 +0100 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-28 13:20:41 -0800 |
commit | bd60ea0fe947029df4b7b7aa9d6557baf2a5a138 (patch) | |
tree | 572b5d652fb6a4c2977bfbc1cc26dac8e3f79d89 /fs/btrfs/print-tree.h | |
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>
Diffstat (limited to 'fs/btrfs/print-tree.h')
0 files changed, 0 insertions, 0 deletions