netns
netns copied to clipboard
Is anything in this package specific to network namespaces?
I see the call to unix.Unshare(unix.CLONE_NEWNET) may be the only line that is specific to network namespaces, in comparison to, say, mount namespace, uts namespaces, etc. If I cloned the code and changed that one line, would this all work for other kinds of namespaces?