diff options
author | Shi Weihua <shiwh@cn.fujitsu.com> | 2010-05-18 02:50:32 +0200 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-06-11 21:57:37 +0200 |
commit | 2f26afba46f0ebf155cf9be746496a0304a5b7cf (patch) | |
tree | 8127a4a101734efce3c0d0190754f180de05a599 /fs/btrfs/orphan.c | |
parent | Btrfs: btrfs_lookup_dir_item() can return ERR_PTR (diff) | |
download | linux-2f26afba46f0ebf155cf9be746496a0304a5b7cf.tar.xz linux-2f26afba46f0ebf155cf9be746496a0304a5b7cf.zip |
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>
Diffstat (limited to 'fs/btrfs/orphan.c')
0 files changed, 0 insertions, 0 deletions