-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkpoint: ignore ipv6 if CRIU_NOIPV6 is set
Janky executes tests in a docker container and there it is impossible to load kernel modules which are required to dump ipv6 sockets. Signed-off-by: Andrei Vagin <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
tests/hacks/0001-criu-allow-to-ignore-ipv6-if-CRIU_NOIPV6-is-set.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 8a9b1d0e6929d296254a8892e553621d76810e87 Mon Sep 17 00:00:00 2001 | ||
From: Andrei Vagin <[email protected]> | ||
Date: Thu, 2 Mar 2017 14:44:18 -0800 | ||
Subject: [PATCH] criu: allow to ignore ipv6 if CRIU_NOIPV6 is set | ||
|
||
Signed-off-by: Andrei Vagin <[email protected]> | ||
--- | ||
criu/kerndat.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/criu/kerndat.c b/criu/kerndat.c | ||
index 162ac28..216afe0 100644 | ||
--- a/criu/kerndat.c | ||
+++ b/criu/kerndat.c | ||
@@ -433,6 +433,8 @@ out: | ||
|
||
static int get_ipv6() | ||
{ | ||
+ if (getenv("CRIU_NOIPV6")) | ||
+ return 0; | ||
if (access("/proc/sys/net/ipv6", F_OK) < 0) { | ||
if (errno == ENOENT) { | ||
pr_debug("ipv6 is disabled\n"); | ||
-- | ||
2.9.3 | ||
|