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
40 # Create SGID directory with default ACLs
43 setfacl -d -m u:101:rwx $TDIR
47 _runas -u 100 -g 100 -- mkdir $TDIR/testsub1
48 stat -c %A $TDIR/testsub1
49 _runas -u 100 -g 101 -- mkdir $TDIR/testsub2
50 stat -c %A $TDIR/testsub2