lxc-test-ubuntu revision 025f59ab98217b7e9caf6d3ac7e910853d95f621
2N/A# lxc-test-ubuntu: some tests of ubuntu-specific features of lxc. 2N/A# Some features of lxc - networking and LSM configuration for instance - 2N/A# are generally configured by the distro packages. This program 2N/A# tests the Ubuntu configuration. 2N/A# These require the ubuntu lxc package to be installed. 2N/A# General lxc functionality testing does not belong here. 2N/A# This program is free software; you can redistribute it and/or 2N/A# modify it under the terms of the GNU Lesser General Public 2N/A# License as published by the Free Software Foundation; either 2N/A# version 2.1 of the License, or (at your option) any later version. 2N/A# This library is distributed in the hope that it will be useful, 2N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of 2N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 2N/A# Lesser General Public License for more details. 2N/A# You should have received a copy of the GNU Lesser General Public 2N/A# License along with this library; if not, write to the Free Software 2N/A# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 23N/A echo -n "Failed " >&2 32N/A# Only run on a normally configured ubuntu lxc system 32N/A echo "lxcbr0 is not configured." 32N/Aif [
"$(id -u)" !=
"0" ];
then 225N/A echo "Must run as root." 225N/A echo "'host' program not found. Please install bind9-host" 225N/A # need a different name for each container so dnsmasq doesn't 2N/A # mess us up with its caching 2N/A if [
"$aa" !=
"lxc-container-default-with-nesting (enforce)" ];
then 313N/A FAIL " to correctly set apparmor profile (profile is \"$aa\")"