2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016 Red Hat Inc. All Rights Reserved.
7 # dentry leak for default_permissions mount option
9 # This is fixed by kernel commit named as
10 # ovl: fix dentry leak for default_permissions
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
27 # get standard environment, filters and checks
33 # real QA test starts here
37 # Remove all files from previous tests
40 # Create test file in lowerdir
41 lowerdir=$OVL_BASE_SCRATCH_MNT/$OVL_LOWER
43 touch $lowerdir/testfile
45 # mount overlay with default_permissions option, get a reference on the dentry
46 _scratch_mount -o default_permissions
47 cat $SCRATCH_MNT/testfile
49 # overlay will be unmounted by test harness and kernel BUG if dentry leaked
50 echo "Silence is golden"