aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
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 /pkg
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 'pkg')
-rw-r--r--pkg/csource/generated.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go
index 2441984cd..ea018b420 100644
--- a/pkg/csource/generated.go
+++ b/pkg/csource/generated.go
@@ -1900,8 +1900,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)