Btrfs: should add a permission check for setfacl

On btrfs, do the following
------------------
# su user1
# cd btrfs-part/
# touch aaa
# getfacl aaa
# file: aaa
# owner: user1
# group: user1
user::rw-
group::rw-
other::r--
# su user2
# cd btrfs-part/
# setfacl -m u::rwx aaa
# getfacl aaa
# file: aaa
# owner: user1
# group: user1
user::rwx <- successed to setfacl
group::rw-
other::r--
------------------
but we should prohibit it that user2 changing user1's acl.
In fact, on ext3 and other fs, a message occurs:
setfacl: aaa: Operation not permitted

This patch fixed it.
Signed-off-by: Shi Weihua <shiwh@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>

authored by Shi Weihua and committed by Chris Mason 2f26afba cf1e99a4

+3
+3
fs/btrfs/acl.c
··· 160 160 int ret; 161 161 struct posix_acl *acl = NULL; 162 162 163 + if (!is_owner_or_cap(dentry->d_inode)) 164 + return -EPERM; 165 + 163 166 if (value) { 164 167 acl = posix_acl_from_xattr(value, size); 165 168 if (acl == NULL) {