2
# Copyright (C) 2002-2005 Novell/SUSE
4
# This program is free software; you can redistribute it and/or
5
# modify it under the terms of the GNU General Public License as
6
# published by the Free Software Foundation, version 2 of the
11
# AppArmor requires 'r' permission on a directory in order for a confined task
12
# to be able to read the directory contents. This test verifies this.
16
pwd=`cd $pwd ; /bin/pwd`
23
# x is not really needed, see chdir.sh
31
genprofile $dir/:$okperm
33
runchecktest "READDIR" pass $dir
35
# CHDIR TEST (no perm)
37
genprofile $dir/:$badperm
39
runchecktest "READDIR (no perm)" fail $dir