diff options
Diffstat (limited to 'fs/btrfs/acl.c')
-rw-r--r-- | fs/btrfs/acl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c index b4f85ebe1bd6..27bb841fafeb 100644 --- a/fs/btrfs/acl.c +++ b/fs/btrfs/acl.c | |||
@@ -22,6 +22,11 @@ | |||
22 | #include <linux/posix_acl_xattr.h> | 22 | #include <linux/posix_acl_xattr.h> |
23 | #include "ctree.h" | 23 | #include "ctree.h" |
24 | #include "xattr.h" | 24 | #include "xattr.h" |
25 | #ifndef is_owner_or_cap | ||
26 | #define is_owner_or_cap(inode) \ | ||
27 | ((current->fsuid == (inode)->i_uid) || capable(CAP_FOWNER)) | ||
28 | #endif | ||
29 | |||
25 | static int btrfs_xattr_set_acl(struct inode *inode, int type, | 30 | static int btrfs_xattr_set_acl(struct inode *inode, int type, |
26 | const void *value, size_t size) | 31 | const void *value, size_t size) |
27 | { | 32 | { |