5 # 930290 - xfs directory with no exec perm in ACL denies access
6 # and breaks CAPP evaluation
7 # which pulls out an earlier mod
9 #-----------------------------------------------------------------------
10 # Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved.
11 #-----------------------------------------------------------------------
14 owner=fsgqa@snap.melbourne.sgi.com
17 echo "QA output created by $seq"
21 status=1 # failure is the default!
22 trap "_cleanup; exit \$status" 0 1 2 3 15
29 # get standard environment, filters and checks
34 # Modify as appropriate.
36 _supported_os IRIX Linux
38 # real QA test starts here
47 umount $SCRATCH_DEV >/dev/null 2>&1
48 echo "*** MKFS ***" >>$seq.full
50 _scratch_mkfs >>$seq.full 2>&1 \
51 || _fail "mkfs failed"
52 _scratch_mount >>$seq.full 2>&1 \
53 || _fail "mount failed"
57 # create a dir with out execute perms
60 # make it owned by $acl1
63 # put a file in the directory
64 echo data > subdir/file
65 ls -l subdir/file | awk '{ print $1, $3 }'
67 # add an ACL with a user ACE which has no exec permission
68 if [ "$HOSTOS" == "Linux" ]; then
69 setfacl -m u:$acl1:r subdir
70 elif [ "$HOSTOS" == "IRIX" ]; then
71 chacl u:$acl:r--,g::---,o::--- subdir
77 # With the bug this gives: `ls: subdir/file: Permission denied'
78 # because one needs at least an exec perm somewhere in acl
79 # However, this should not hold true for directories.
80 ls -l subdir/file | awk '{ print $1, $3 }'
82 # With the bug this gives: `subdir/file2: Permission denied'.
83 echo data2 > subdir/file2