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
10
#=DESCRIPTION Runs exec() through ux, ix & px functionality
13
pwd=`cd $pwd ; /bin/pwd`
26
# PASS TEST - inherited
28
genprofile $file:$ok_ix_perm
30
runchecktest "EXEC with ix" pass $file
32
# PASS TEST - unconfined
34
genprofile $file:$ok_ux_perm
36
runchecktest "EXEC with ux" pass $file
38
# PASS TEST - profiled
40
genprofile $file:$ok_px_perm -- image=$file
42
runchecktest "EXEC with px" pass $file
44
# FAIL TEST - px/no profile
46
genprofile $file:$ok_px_perm
48
runchecktest "EXEC with px - no profile" fail $file
52
genprofile $file:$badperm
54
runchecktest "EXEC no x" fail $file
58
genprofile $file:$bad_mx_perm
60
runchecktest "EXEC mmap x" fail $file
62
# UNCONFINED -> CONFINED
64
genprofile image=$file
65
runchecktest "EXEC unconfined -> confined" pass $file
67
# UNCONFINED -> CONFINED no access to self binary
69
genprofile -I image=$file
70
runchecktest "EXEC unconfined -> confined/no access to self" pass $file