Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

isn't it more accurate to say, rather that just a process, a process group with its own process numbering?


Technically you can define which namespaces to inherit and which ones to create "from scratch" at process initialization time. (Actually there's an unshare() syscall that does it, but clone() is the standard way to create new namespaces and new processes in them, plus there's setns() to put a thread into some other namespace given a fd pointing to that NS.)

So, namespaces are task level things in the kernel. (Every thread is a task, and by default every process has one thread, so every process is also at least one task.)

https://elixir.bootlin.com/linux/latest/source/include/linux... (That's where the task_struct starts and it has an nsproxy member.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: