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