nsresource: add client-side wrapper for creating tap links

This commit is contained in:
Lennart Poettering
2025-03-17 16:03:18 +01:00
parent 19ac01efef
commit 716bf93c4b
3 changed files with 73 additions and 5 deletions
+1 -1
View File
@@ -5459,7 +5459,7 @@ static int run_container(
} else {
_cleanup_free_ char *host_ifname = NULL;
r = nsresource_add_netif(userns_fd, child_netns_fd, /* namespace_ifname= */ NULL, &host_ifname, /* ret_namespace_ifname= */ NULL);
r = nsresource_add_netif_veth(userns_fd, child_netns_fd, /* namespace_ifname= */ NULL, &host_ifname, /* ret_namespace_ifname= */ NULL);
if (r < 0)
return log_error_errno(r, "Failed to add network interface to container: %m");