Sandboxing with Firejail
lwn.net
lwn.net
> The --net=none option will create a new network namespace without any devices, so processes cannot communicate outside of the namespace.
No idea what a namespace is, does this mean the process will be unable to use any network? I want that as default for everything on my machine...
And yes, a blank new network namespace won't even have the loopback interface available. There is a program named unshare, which executes a program in another namespace.
Linux namespaces were created to support containers. This is how userland container projects like LXC, Docker and Nspawn work, only they don't use the unshare tool but the underlying system calls clonens, setns and unshare [3].
[1] http://man7.org/linux/man-pages/man2/unshare.2.html
[2] https://www.flockport.com/alternatives-to-docker-and-lxc/
I guess they can be likened to a surname or such, except that they don't seem to require explicit naming upon creation.