lxc-test-unpriv revision 3ad30ff74fcf8c00389c114ecc265be7b6764048
14221N/A# Serge Hallyn <serge.hallyn@ubuntu.com> 14221N/A# This is a test script for unprivileged containers 14221N/A# This library is free software; you can redistribute it and/or 12664N/A# modify it under the terms of the GNU Lesser General Public 12664N/A# License as published by the Free Software Foundation; either 14221N/A# version 2.1 of the License, or (at your option) any later version. 14221N/A# This library is distributed in the hope that it will be useful, 14221N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of 12664N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14221N/A# Lesser General Public License for more details. 14221N/A# You should have received a copy of the GNU Lesser General Public 12664N/A# License along with this library; if not, write to the Free Software 14221N/A# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 12664N/A# This test assumes an Ubuntu host 14221N/A echo "ERROR: Must run as root." lxc.network.link = lxcbr0 lxc.id_map = u 0 910000 9999 lxc.id_map = g 0 910000 9999 [
"$p1" !=
"-1" ] ||
{ echo "Failed to start container c1"; false; }[
"$p1" !=
"-1" ] ||
{ echo "Failed to start container c2"; false; }