diff options
-rw-r--r-- | jail/netifd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jail/netifd.c b/jail/netifd.c index f6f2df6..0f05ccc 100644 --- a/jail/netifd.c +++ b/jail/netifd.c @@ -469,6 +469,10 @@ int jail_network_start(struct ubus_context *new_ctx, char *new_jail_name, pid_t watch_ubus_service(); netns_fd = ns_open_pid("net", ns_pid); + if (netns_fd < 0) { + ret = ESRCH; + goto errout_inotify; + } netns_updown(host_ubus_ctx, jail_name, true, netns_fd); |