2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Red Hat Inc. All Rights Reserved.
7 # The "work" directory in an overlyfs workdir should not inherit
8 # ACL attrs from workdir.
9 # Kernel commits below fix it.
10 # c11b9fdd6a61 ovl: remove posix_acl_default from workdir
11 # e1ff3dd1ae52 ovl: fix workdir creation
13 # This reproducer was originally written by
14 # Miklos Szeredi <mszeredi@redhat.com>
17 seqres=$RESULT_DIR/$seq
18 echo "QA output created by $seq"
22 status=1 # failure is the default!
23 trap "_cleanup; exit \$status" 0 1 2 3 15
31 # get standard environment, filters and checks
36 # remove previous $seqres.full before test
39 # real QA test starts here
41 # Modify as appropriate.
46 # Remove all files from previous tests
49 # setting acls before mount
50 wkdir=$OVL_BASE_SCRATCH_MNT/$OVL_WORK
52 setfacl -d -m o::rwx $wkdir
56 # getting acls, ACL set on workdir should be cleaned
57 getfacl -n -p $wkdir/work 2>&1 | _filter_scratch | _filter_ovl_dirs