RFC Pid namespaces
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest15 patches 88 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | Move exit_task_namespaces()kernel/ | +0 | 20 replies | |
| 2/15 | Introduce MS_KERNMOUNT flagfs/ fs/ include/ | +0 | 0 replies | |
| 3/15 | kern_siginfo helperinclude/ kernel/ | +0 | 3 replies | |
| 4/15 | Make proc_flust_task() flush entries from multiple proc treesfs/ include/ kernel/ | +0 | 0 replies | |
| 5/15 | Introduce struct upidinclude/ include/ | +1 | 2 replies | |
| 6/15 | Make alloc_pid(), free_pid() and put_pid() work with struct upidinclude/ kernel/ | +0 | 2 replies | |
| 7/15 | Helpers to obtain pid numbersinclude/ include/ kernel/ | +0 | 4 replies | |
| 8/15 | Helpers to find the task by its numerical idsinclude/ include/ kernel/ | +0 | 4 replies | |
| 9/15 | Move alloc_pid() after the namespace is clonedkernel/ | +0 | 4 replies | |
| 10/15 | Make each namespace has its own proc treefs/ fs/ fs/ +5 more | +0 | 5 replies | |
| 11/15 | Signal semanticsinclude/ include/ kernel/ +1 more | +0 | 11 replies | |
| 12/15 | Miscelaneous stuff for pid namespacesinclude/ include/ kernel/ | +1 | 2 replies | |
| 13/15 | Clone the pid namespaceinclude/ include/ kernel/ +1 more | +0 | 0 replies | |
| 14/15 | Destroy pid namespace on init's deathinclude/ include/ kernel/ +1 more | +0 | 23 replies | |
| 15/15 | Hooks over the code to show correct values to userarch/ arch/ arch/ +26 more | +0 | 5 replies |
Reviews trailers per patch
1 of 15 patches has a Reviewed-by or Acked-by.
| Patch | Pavel Emelyanov |
|---|---|
| 1/15 | |
| 2/15 | |
| 3/15 | |
| 4/15 | |
| 5/15 | |
| 6/15 | |
| 7/15 | |
| 8/15 | |
| 9/15 | |
| 10/15 | |
| 11/15 | |
| 12/15 | |
| 13/15 | |
| 14/15 | A-b A-b A-b A-b |
| 15/15 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC][PATCH 0/15] Pid namespaces
(Comment is taken from Sukadev's patchset-v3)
A pid namespace is a "view" of a particular set of tasks on the system.
They work in a similar way to filesystem namespaces. A file (or a process)
can be accessed in multiple namespaces, but it may have a different name in each. In a filesystem, this name might be /etc/passwd in one namespace, but /chroot/etc/passwd in another.
For processes, a process may have pid 1234 in one namespace, but be pid 1 in another. This allows new pid namespaces to have basically arbitrary pids, and not have to worry about what pids exist in other namespaces. This is essential for checkpoint/restart where a restarted process's pid might collide with an existing process on the system's pid.
In this particular implementation, pid namespaces have a parent-child relationship, just like processes. A process in a pid namespace may see all of the processes in the same namespace, as well as all of the processes in all of the namespaces which are children of its namespace. Processes may not, however, see others which are in their parent's namespace, but not in their own. The same goes for sibling namespaces.
This set is based on my patches, I sent before, but it includes some comments and patches that I received from Sukadev. Sukadev, please, add your Acked-by, Signed-off-by or From, to patches you want (everybody is also welcome :) ).
The set is based on 2.6.23-rc1-mm1, which already has some preparation patches
for pid namespaces. After the review and fixing all the comments, this set will be benchmarked and sent to Andrew for inclusion in -mm tree.