echo "FAIL: confined container was in profile $profile"
exit 1
fi
-run_cmd lxc-stop -n $cname
+run_cmd lxc-stop -n $cname -k
echo "test regular unconfined container"
echo "lxc.aa_profile = unconfined" >> $HDIR/.local/share/lxc/$cname/config
echo "FAIL: unconfined container was in profile $profile"
exit 1
fi
-run_cmd lxc-stop -n $cname
+run_cmd lxc-stop -n $cname -k
echo "masking $MOUNTSR"
mount --bind $dnam $MOUNTSR
echo "FAIL: confined container was in profile $profile"
exit 1
fi
-run_cmd lxc-stop -n $cname
+run_cmd lxc-stop -n $cname -k
echo "testing override"
sed -i '/aa_profile/d' $HDIR/.local/share/lxc/$cname/config
echo "FAIL: confined container was in profile $profile"
exit 1
fi
-run_cmd lxc-stop -n $cname
+run_cmd lxc-stop -n $cname -k
DONE=1
run_cmd lxc-info -n c1
run_cmd lxc-attach -n c1 -- /bin/true
- run_cmd lxc-stop -n c1
+ run_cmd lxc-stop -n c1 -k
done
run_cmd lxc-copy -s -n c1 -N c2
p1=$(run_cmd lxc-info -n c2 -p -H)
[ "$p1" != "-1" ] || { echo "Failed to start container c2"; false; }
-run_cmd lxc-stop -n c2
+run_cmd lxc-stop -n c2 -k
if which cgm >/dev/null 2>&1; then
echo "Testing containers under different cgroups per subsystem"