lxc-test-unpriv revision a17d94a593b0ca096690d70a25cf3d434fbbc813
# lxc: linux Container library
# Authors:
# Serge Hallyn <serge.hallyn@ubuntu.com>
#
# This is a test script for unprivileged containers
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
# This test assumes an Ubuntu host
echo "ERROR: Must run as root."
exit 1
fi
DONE=0
cd /
echo "FAIL"
exit 1
fi
echo "PASS"
}
env http_proxy=${http_proxy:-} https_proxy=${https_proxy:-} \
}
# create a test user
ARCH=$(dpkg --print-architecture)
fi
set -eu
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.id_map = u 0 910000 9999
lxc.id_map = g 0 910000 9999
EOF
cd $HDIR
done
else
done
fi
# Copy the download template cache if available
# Make sure we can start it - twice
done
echo "Testing containers under different cgroups per subsystem"
echo "Testing lxc-attach and lxc-cgroup from different cgroup"
fi
DONE=1