Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for UNSHARE_NET #3550

Closed
alexlarsson opened this issue Sep 17, 2018 · 4 comments
Closed

No support for UNSHARE_NET #3550

alexlarsson opened this issue Sep 17, 2018 · 4 comments

Comments

@alexlarsson
Copy link

I'm trying to make flatpak/bubblewrap work on WSL, and one missing feature is network namespaces: containers/bubblewrap@6054b54

I realize network namespaces are generally pretty complicated, as you have to also support netlink and whatnot to be able to set up the new namespace. However, flatpak needs only a small part of this, just enough to bring up a loopback interface.

@therealkenc
Copy link
Collaborator

For giggles try running WSL elevated. Allegedly there is some CLONE_NEWNET work that has been done but I haven't experimented with it much.

@alexlarsson
Copy link
Author

Running elevated kinda defeats the purpose of using namespaces for sandboxing though. If the generic code is there I think it shouldn't be that hard to make it work non-privilegedly for the flatpak usecase (which is essentially "make network stuff seem to work but pretend we're offline").

@therealkenc
Copy link
Collaborator

It doesn't, in the context of WSL. You're sandboxed as user alex from a Unix semantics standpoint as you always were (which, mostly, you aren't). Not that I think that running WSL escalated is a good idea. Or that I think it will make UNSHARE_NET light up. Just that it is (maybe barely) worth the giggles to try.

@benhillis
Copy link
Member

benhillis commented Oct 2, 2018

@therealkenc is right. UNSHARE_NET requires Windows admin (for communicating with Windows virtual network infrastructure).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants