2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 SUSE Linux. All Rights Reserved.
7 # Check if SGID is inherited when creating a subdirectory when the owner is not
8 # in the owning group and directory has default ACLs.
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
25 # get standard environment, filters and checks
30 # real QA test starts here
41 # Create SGID directory with default ACLs
44 setfacl -d -m u:101:rwx $TDIR
48 _runas -u 100 -g 100 -- mkdir $TDIR/testsub1
49 stat -c %A $TDIR/testsub1
50 _runas -u 100 -g 101 -- mkdir $TDIR/testsub2
51 stat -c %A $TDIR/testsub2