From: Serge Hallyn Date: Fri, 18 Oct 2013 15:42:14 +0000 (-0500) Subject: lxc-test-ubuntu: also allow the standard non-nested apparmor policy X-Git-Tag: lxc-1.0.0.alpha2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ca91fb6f4e648f210096765002404e2d8116c8e;p=thirdparty%2Flxc.git lxc-test-ubuntu: also allow the standard non-nested apparmor policy Signed-off-by: Serge Hallyn Acked-by: Stéphane Graber --- diff --git a/src/tests/lxc-test-ubuntu b/src/tests/lxc-test-ubuntu index c6573c112..7fa1c890f 100755 --- a/src/tests/lxc-test-ubuntu +++ b/src/tests/lxc-test-ubuntu @@ -68,7 +68,7 @@ for template in ubuntu ubuntu-cloud; do # Check apparmor lxcpid=`lxc-info -n $name -p | awk -F: '{ print $2 }' | awk '{ print $1}'` aa=`cat /proc/$lxcpid/attr/current` - if [ "$aa" != "lxc-container-default-with-nesting (enforce)" ]; then + if [ "$aa" != "lxc-container-default-with-nesting (enforce)" -a "$aa" != "lxc-container-default (enforce)" ]; then FAIL " to correctly set apparmor profile (profile is \"$aa\")" fi lxc-stop -n $name