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