summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ordered-data.c
diff options
context:
space:
mode:
authorShi Weihua <shiwh@cn.fujitsu.com>2010-05-18 02:51:54 +0200
committerChris Mason <chris.mason@oracle.com>2010-06-11 21:57:38 +0200
commit731e3d1b4348a96d53de6c084774424dedc64a3b (patch)
tree1f0a95894fa9a8e226ee2d74c64805c373b1b927 /fs/btrfs/ordered-data.c
parentBtrfs: should add a permission check for setfacl (diff)
downloadlinux-731e3d1b4348a96d53de6c084774424dedc64a3b.tar.xz
linux-731e3d1b4348a96d53de6c084774424dedc64a3b.zip
Btrfs: prohibit a operation of changing acl's mask when noacl mount option used
when used Posix File System Test Suite(pjd-fstest) to test btrfs, some cases about setfacl failed when noacl mount option used. I simplified used commands in pjd-fstest, and the following steps can reproduce it. ------------------------ # cd btrfs-part/ # mkdir aaa # setfacl -m m::rw aaa <- successed, but not expected by pjd-fstest. ------------------------ I checked ext3, a warning message occured, like as: setfacl: aaa/: Operation not supported Certainly, it's expected by pjd-fstest. So, i compared acl.c of btrfs and ext3. Based on that, a patch created. Fortunately, it works. Signed-off-by: Shi Weihua <shiwh@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
0 files changed, 0 insertions, 0 deletions