tests/no-new-privs: Don't mess with /etc/lxc

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2020-04-11 23:05:04 -04:00
parent 3d8949788b
commit ecf1f1207b
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View File

@ -36,11 +36,13 @@ cleanup() {
trap cleanup EXIT SIGHUP SIGINT SIGTERM
if [ ! -d /etc/lxc ]; then
mkdir -p /etc/lxc/
cat > /etc/lxc/default.conf << EOF
lxc.net.0.type = veth
lxc.net.0.link = lxcbr0
EOF
fi
ARCH=i386
if type dpkg >/dev/null 2>&1; then