Skip to content

Commit

Permalink
tests/no-new-privs: Don't mess with /etc/lxc
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
stgraber committed Apr 12, 2020
1 parent 3d89497 commit ecf1f12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tests/lxc-test-no-new-privs
Expand Up @@ -36,11 +36,13 @@ cleanup() {

trap cleanup EXIT SIGHUP SIGINT SIGTERM

mkdir -p /etc/lxc/
cat > /etc/lxc/default.conf << EOF
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
Expand Down

0 comments on commit ecf1f12

Please sign in to comment.