2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2010 FUJITSU LIMITED. All Rights Reserved.
7 # Check user B can setfacl a file which belongs to user A
8 # See also http://marc.info/?l=linux-btrfs&m=127434445620298&w=2
11 _begin_fstest auto quick acl
13 # Import common functions.
17 # Override the default cleanup function.
22 [ -n "$TEST_DIR" ] && rm -rf $TEST_DIR/$seq.dir1
25 # real QA test starts here
27 # only Linux supports fallocate
41 chown $acl1:$acl1 file1
44 _runas -u $acl2 -g $acl2 -- setfacl -m u::rwx file1 2>&1 | sed 's/^setfacl: \/.*file1: Operation not permitted$/setfacl: file1: Operation not permitted/'