]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: explicitly remove veth links after use (#3111)
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Apr 2016 15:36:51 +0000 (17:36 +0200)
committerDaniel Mack <github@zonque.org>
Mon, 25 Apr 2016 15:36:51 +0000 (17:36 +0200)
commitd2773e59de3dd970d861e9f996bc48de20ef4314
treed971c138bb0cbf5a421a6e4ebe7c41330685a361
parent4f4d6ee4be1c5d3bb2f3ebce7d2d332285963830
nspawn: explicitly remove veth links after use (#3111)

* sd-netlink: permit RTM_DELLINK messages with no ifindex

This is useful for removing network interfaces by name.

* nspawn: explicitly remove veth links we created after use

Sometimes the kernel keeps veth links pinned after the namespace they have been
joined to died. Let's hence explicitly remove veth links after use.

Fixes: #2173
src/libsystemd/sd-netlink/rtnl-message.c
src/nspawn/nspawn-network.c
src/nspawn/nspawn-network.h
src/nspawn/nspawn.c