Skip to content

pid namespace and namespace cleanups

Cedric Le Goater lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7add process_session() helper routinearch/mips/kernel/irixelf.c drivers/char/mxser.c drivers/char/rocket.c +8 more+38 -320 replies
2/7rename struct namespace to struct mnt_namespacefs/afs/mntpt.c fs/cachefiles/cf-bind.c fs/cachefiles/cf-proc.c +15 more+148 -1471 reply
3/7add an identifier to nsproxyinclude/linux/init_task.h include/linux/nsproxy.h kernel/nsproxy.c+3 -00 replies
4/7rename struct pspace to struct pid_namespacefs/proc/proc_misc.c include/linux/pid_namespace.h include/linux/pspace.h +1 more+50 -491 reply
5/7add pid_namespace to nsproxyinclude/linux/init_task.h include/linux/nsproxy.h include/linux/pid_namespace.h +2 more+64 -90 replies
6/7use current->nsproxy->pid_nsfs/proc/proc_misc.c kernel/pid.c+4 -40 replies
7/7add child reaper to pid_namespacefs/exec.c include/linux/pid.h include/linux/pid_namespace.h +5 more+39 -191 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch -mm 0/7] pid namespace and namespace cleanups

Hi,

The next serie contains some cleanups on namespaces that have been lying in our container patchset for a while. The patches seem stable enough and not too controversial to be good candidates for a -mm merge.

Here's a short summary of what they are doing :

* add a process_session() helper routine
* rename 'struct namespace' to 'struct mnt_namespace'
* add pid namespace framework to nsproxy but without the unshare feature
* add a child_reaper per pid namespace
* add an id to nsproxy for a future syscall bind_ns

A next serie should follow soon, which depends on the above.

* net namespace framework, empty object without any dependency on the layer
* unshare_ns syscall (unshare dedicated to namespaces with its own flags)
* bind_ns syscall enabling a process to switch nsproxy
* more cleanups for the pid namespace

Pending patches we are still working on :

* layer 3 net namespace providing a simple and fast isolation of a net interface
* full pid namespace, this is quite complex.

Thanks,

C.