]> git.proxmox.com Git - mirror_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>
Thu, 31 Aug 2017 13:30:08 +0000 (15:30 +0200)
commit4239e9c3bbf181c03b283018ee87bd3d8bb98a93
treec74c75abd21ccad11a3e5432575e56e8612c6f49
parent8ce727fcd97e114a44f2d528016efc20b1dda92b
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