From 9aaaad30ac6f66f680db6a687286038abf91b398 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 11 Mar 2017 13:12:52 +0100 Subject: [PATCH] conf: only try to delete veth when privileged Signed-off-by: Christian Brauner --- src/lxc/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index b94fbbb76..edad28f6f 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -3019,7 +3019,7 @@ bool lxc_delete_network(struct lxc_handler *handler) /* Explicitly delete host veth device to prevent lingering * devices. We had issues in LXD around this. */ - if (netdev->type == LXC_NET_VETH) { + if (netdev->type == LXC_NET_VETH && !am_unpriv()) { char *hostveth; if (netdev->priv.veth_attr.pair) { hostveth = netdev->priv.veth_attr.pair; -- 2.47.2