Move source tree closer to the 2.6.32.17 mainline
/fs/btrfs/acl.c
blob:36160424427124947179e7270bfb77e03dbc1686 -> blob:38ebe789b5628e9ddb6a5076b523612b5b988476
--- fs/btrfs/acl.c
+++ fs/btrfs/acl.c
@@ -157,6 +157,9 @@ static int btrfs_xattr_set_acl(struct in
int ret = 0;
struct posix_acl *acl = NULL;
+ if (!is_owner_or_cap(inode))
+ return -EPERM;
+
if (value) {
acl = posix_acl_from_xattr(value, size);
if (acl == NULL) {