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
# Verifies that clone is allowed under AppArmor, but that CLONE_NEWNS is
16
pwd=`cd $pwd ; /bin/pwd`
24
runchecktest "CLONE/unconfined" pass
29
runchecktest "CLONE/confined" pass
31
# TEST3. confined + CLONE_NEWNS
34
runchecktest "CLONE/confined/NEWNS" fail --newns
36
# TEST4. confined + CLONE_NEWNS + cap_sys_admin
38
genprofile cap:sys_admin
39
runchecktest "CLONE/confined/NEWNS" pass --newns