From d93126d3b91ea9e3831b9fd0b5318989f82daebe Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 13 Apr 2020 20:03:35 +0100 Subject: interface: allow renaming interface when moving to jail netns Introduce jail_ifname option to define the name of a Linux network interface when moved into a jail's network namespace. This is useful for containers which expect the network interface to have a specific name (eg. 'host0' in case of systemd). While at it, clean-up and fix bugs in jail interface up/down routines. Signed-off-by: Daniel Golle --- system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system.h') diff --git a/system.h b/system.h index fe4497e..f8f8ec1 100644 --- a/system.h +++ b/system.h @@ -243,7 +243,7 @@ void system_fd_set_cloexec(int fd); int system_update_ipv6_mtu(struct device *dev, int mtu); -int system_link_netns_move(const char *ifname, const pid_t target_ns); +int system_link_netns_move(const char *ifname, const pid_t target_ns, const char *target_ifname); int system_netns_open(const pid_t target_ns); int system_netns_set(int netns_fd); -- cgit v1.2.1