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 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # FAILure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
19 # get standard environment, filters and checks
28 [ -n "$TEST_DIR" ] && rm -rf $TEST_DIR/$seq.dir1
31 # real QA test starts here
33 # only Linux supports fallocate
49 chown $acl1.$acl1 file1
52 _runas -u $acl2 -g $acl2 -- setfacl -m u::rwx file1 2>&1 | sed 's/^setfacl: \/.*file1: Operation not permitted$/setfacl: file1: Operation not permitted/'