2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016 Red Hat Inc. All Rights Reserved.
7 # Reproducer from kernel commit 3fe6e52
8 # ovl: override creds with the ones from the superblock mounter
9 # Testing ovl copyup/namespace/cred issue.
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
17 status=1 # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
26 # get standard environment, filters and checks
30 # remove previous $seqres.full before test
33 # real QA test starts here
35 # Modify as appropriate.
40 # Remove all files from previous tests
43 lowerdir=$OVL_BASE_SCRATCH_MNT/$OVL_LOWER
44 mkdir -p $lowerdir/dir
48 unshare -m -p -f -U -r bash -c \
49 "touch $SCRATCH_MNT/dir/{1,2,3}; rm -fR $SCRATCH_MNT/*"
51 echo "Silence is golden"