summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexander.larsson@gmail.com>2018-09-17 09:33:20 +0100
committerAlexander Larsson <alexl@redhat.com>2018-09-17 11:08:52 +0200
commit6054b54fd840102bd7804e52c42e33ea56d99d2a (patch)
tree8a42d721b71b5513cfb07f931bddb5ae39aa171f
parent9dc34989c6bb50a71ee9cdd4a2e60457385f8389 (diff)
downloadbubblewrap-wip/WSL.tar.gz
WSL: Disable network namespaceswip/WSL
UNSHARE_NET is not supported by WSL, so just disable it.
-rw-r--r--bubblewrap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bubblewrap.c b/bubblewrap.c
index 6d527a9..4bd30e0 100644
--- a/bubblewrap.c
+++ b/bubblewrap.c
@@ -2146,6 +2146,9 @@ main (int argc,
/* We block sigchild here so that we can use signalfd in the monitor. */
block_sigchild ();
+ /* WSL: Network namespaces are not supported */
+ opt_unshare_net = FALSE;
+
clone_flags = SIGCHLD | CLONE_NEWNS;
if (opt_unshare_user)
clone_flags |= CLONE_NEWUSER;