4 # Check user B can setfacl a file which belongs to user A
5 # See also http://marc.info/?l=linux-btrfs&m=127434445620298&w=2
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2010 FUJITSU LIMITED. All Rights Reserved.
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License as
12 # published by the Free Software Foundation.
14 # This program is distributed in the hope that it would be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write the Free Software Foundation,
21 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #-----------------------------------------------------------------------
26 owner=shiwh@cn.fujitsu.com
29 echo "QA output created by $seq"
34 status=1 # FAILure is the default!
35 trap "_cleanup; exit \$status" 0 1 2 3 15
37 # get standard environment, filters and checks
46 [ -n "$testdir" ] && rm -rf $testdir/$seq.dir1
50 # real QA test starts here
52 # only Linux supports fallocate
55 [ -x $runas ] || _notrun "$runas executable not found"
72 chown $acl1.$acl1 file1
75 $runas -u $acl2 -g $acl2 -- `which setfacl` -m u::rwx file1 2>&1 | sed 's/^setfacl: \/.*file1: Operation not permitted$/setfacl: file1: Operation not permitted/'