From: Christian Brauner Date: Sat, 11 Mar 2017 12:12:52 +0000 (+0100) Subject: conf: only try to delete veth when privileged X-Git-Tag: lxc-2.1.0~184^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1458%2Fhead;p=thirdparty%2Flxc.git conf: only try to delete veth when privileged Signed-off-by: Christian Brauner --- 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;