4 # The "work" directory in an overlyfs workdir should not inherit
5 # ACL attrs from workdir.
6 # Kernel commits below fix it.
7 # c11b9fdd6a61 ovl: remove posix_acl_default from workdir
8 # e1ff3dd1ae52 ovl: fix workdir creation
10 # This reproducer was originally written by
11 # Miklos Szeredi <mszeredi@redhat.com>
13 #-----------------------------------------------------------------------
14 # Copyright (c) 2017 Red Hat Inc. All Rights Reserved.
16 # This program is free software; you can redistribute it and/or
17 # modify it under the terms of the GNU General Public License as
18 # published by the Free Software Foundation.
20 # This program is distributed in the hope that it would be useful,
21 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 # GNU General Public License for more details.
25 # You should have received a copy of the GNU General Public License
26 # along with this program; if not, write the Free Software Foundation,
27 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 #-----------------------------------------------------------------------
32 seqres=$RESULT_DIR/$seq
33 echo "QA output created by $seq"
37 status=1 # failure is the default!
38 trap "_cleanup; exit \$status" 0 1 2 3 15
46 # get standard environment, filters and checks
51 # remove previous $seqres.full before test
54 # real QA test starts here
56 # Modify as appropriate.
62 # Remove all files from previous tests
65 # setting acls before mount
66 wkdir=$SCRATCH_DEV/$OVERLAY_WORK_DIR
68 setfacl -d -m o::rwx $wkdir
72 # getting acls, ACL set on workdir should be cleaned
73 getfacl -p $wkdir/work 2>&1 | _filter_scratch