From 40bcfdd59ea157005ce91e1f942716810324a17f Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Wed, 26 Feb 2020 23:43:17 -0800 Subject: executor: don't exit if NETLINK_GENERIC isnt' supported NETLINK_GENERIC isn't supported in gVisor. Fixes: c5ed587f4af5 ("wireguard: setup some initial devices in a triangle") Signed-off-by: Andrei Vagin --- executor/common_linux.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'executor') diff --git a/executor/common_linux.h b/executor/common_linux.h index 27f934799..148ca0c33 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -881,8 +881,10 @@ static void netlink_wireguard_setup(void) int id, err; sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); - if (sock == -1) - fail("socket(AF_NETLINK) failed\n"); + if (sock == -1) { + debug("socket(AF_NETLINK) failed: %s\n", strerror(errno)); + return; + } id = netlink_wireguard_id_get(&nlmsg, sock); if (id == -1) -- cgit mrf-deployment