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
# This test verifies that mmap based access control is also subject to the
12
# AppArmor profiles access specification. The test needs some
13
# attention/rethought, It is unclear what it's purpose really is. Also why
14
# does it fail when the profile is replaced with just read permission as
15
# no mapped write is reattempted. Also a test should be added which
16
# causes the initial mmap write to fail (due to lack of write permission).
20
pwd=`cd $pwd ; /bin/pwd`
32
genprofile $file:$okperm signal:receive:peer=unconfined
34
runtestbg "READ/WRITE pass1" pass $file
50
genprofile $file:$okperm signal:receive:peer=unconfined
52
runtestbg "READ/WRITE pass2" pass $file
56
genprofile $file:$badperm signal:receive:peer=unconfined