4 # dentry leak for default_permissions mount option
6 # This is fixed by kernel commit named as
7 # ovl: fix dentry leak for default_permissions
9 #-----------------------------------------------------------------------
10 # Copyright (c) 2016 Red Hat Inc. All Rights Reserved.
12 # This program is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU General Public License as
14 # published by the Free Software Foundation.
16 # This program is distributed in the hope that it would be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write the Free Software Foundation,
23 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 #-----------------------------------------------------------------------
28 seqres=$RESULT_DIR/$seq
29 echo "QA output created by $seq"
33 status=1 # failure is the default!
34 trap "_cleanup; exit \$status" 0 1 2 3 15
42 # get standard environment, filters and checks
48 # real QA test starts here
53 # Remove all files from previous tests
56 # Create test file in lowerdir
57 lowerdir=$SCRATCH_DEV/$OVERLAY_LOWER_DIR
59 touch $lowerdir/testfile
61 # mount overlay with default_permissions option, get a reference on the dentry
62 _scratch_mount -o default_permissions
63 cat $SCRATCH_MNT/testfile
65 # overlay will be unmounted by test harness and kernel BUG if dentry leaked
66 echo "Silence is golden"