aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2020-02-26 23:43:17 -0800
committerDmitry Vyukov <dvyukov@google.com>2020-02-27 09:31:19 +0100
commit40bcfdd59ea157005ce91e1f942716810324a17f (patch)
treeea0a2d5fb22ba3003b6f017ee03a4a839f557b0c /executor
parent251aabb77ec4d86b9374b6f999fbb8e1ea70963f (diff)
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 <avagin@google.com>
Diffstat (limited to 'executor')
-rw-r--r--executor/common_linux.h6
1 files changed, 4 insertions, 2 deletions
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)