]> git.ipfire.org Git - thirdparty/lxc.git/commit
network: add ifindex field for host veth device
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 31 Aug 2017 11:19:33 +0000 (13:19 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 4 Sep 2017 11:19:11 +0000 (13:19 +0200)
commit1482e8e0f6cd18a9cd2b6bd2031e4f2695d2a682
treea8c451fb62fccb189f72a52e7f1d99b43ef144d5
parentdd208f1a336f824399419bdceafad14c072d710f
network: add ifindex field for host veth device

We should not just record the ifindex for the container's veth device but also
for the host's veth device. This is useful when {configuring,deconfiguring}
veth devices and becomes crucial when calling our lxc-user-nic setuid helper
where we rely on the ifindex to make decisions about whether we are licensed to
perform certain operations on the veth device in question.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/network.h