Skip to content

Commit 6054b54

Browse files
committed
WSL: Disable network namespaces
UNSHARE_NET is not supported by WSL, so just disable it.
1 parent 9dc3498 commit 6054b54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bubblewrap.c

+3
Original file line numberDiff line numberDiff line change
@@ -2146,6 +2146,9 @@ main (int argc,
21462146
/* We block sigchild here so that we can use signalfd in the monitor. */
21472147
block_sigchild ();
21482148

2149+
/* WSL: Network namespaces are not supported */
2150+
opt_unshare_net = FALSE;
2151+
21492152
clone_flags = SIGCHLD | CLONE_NEWNS;
21502153
if (opt_unshare_user)
21512154
clone_flags |= CLONE_NEWUSER;

0 commit comments

Comments
 (0)