Skip to content

RFC Multiple instances of the process id namespace

Eric W. Biederman lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest20 patches 57 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20pid: Intoduce the concept of a wid (wait id)include/linux/sched.h kernel/exit.c kernel/fork.c +2 more+16 -158 replies
2/20pspace: The parent process id of pid 1 is always 0.arch/alpha/kernel/entry.S kernel/timer.c+5 -00 replies
3/20pid: Introduce a generic helper to test for init.arch/alpha/mm/fault.c arch/i386/lib/usercopy.c arch/i386/mm/fault.c +19 more+39 -264 replies
4/20pspace: Allow multiple instaces of the process id namespacefs/exec.c include/linux/init_task.h include/linux/kernel.h +10 more+450 -16331 replies
5/20sched: Fixup the scheduler syscalls to deal with pspaces.kernel/sched.c kernel/sys.c+9 -70 replies
6/20cad_pid: Fixup the cad_pid users to assume it is in the initial process id namespace.drivers/parisc/power.c kernel/sys.c+3 -20 replies
7/20tty: Update the tty layer to work with pspaces.drivers/char/n_tty.c drivers/char/tty_io.c include/linux/tty.h+44 -280 replies
8/20vt: Update the virtual console to handle pspaces.drivers/char/keyboard.c drivers/char/vt.c drivers/char/vt_ioctl.c+10 -40 replies
9/20ptrace: Update ptrace handle pspaces.kernel/ptrace.c+1 -10 replies
10/20capabilities: Update the capabilities code to handle pspaces.kernel/capability.c+34 -220 replies
11/20ioprio: Update ioprio to handle pspaces.fs/ioprio.c+7 -60 replies
12/20fcntl: Update fcntl to work with pspaces.fs/fcntl.c include/linux/fs.h+17 -90 replies
13/20kthread: Update kthread to work with pspaces.kernel/kthread.c+2 -10 replies
14/20mm: Update vmscan to work with pspaces.mm/vmscan.c+2 -10 replies
15/20posix-timers: Update posix timers to work with pspaces.kernel/posix-cpu-timers.c kernel/posix-timers.c+8 -50 replies
16/20nfs: Don't use pids to track the lockd server process.fs/lockd/svc.c+14 -110 replies
17/20usb: Fixup usb so it works with pspaces.drivers/usb/core/devio.c drivers/usb/core/inode.c drivers/usb/core/usb.h+14 -32 replies
18/20posix-mqueue: Make mqueues work with pspspacesipc/mqueue.c+18 -30 replies
19/20pspace: Upcate the pid_max sysctl to work in a per pspace fashionkernel/sysctl.c+75 -40 replies
20/20proc: Update /proc to support multiple pid spaces.fs/Kconfig fs/proc/Makefile fs/proc/array.c +19 more+1156 -5262 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC][PATCH 0/20] Multiple instances of the process id namespace

There have been several discussions in the past month about how to do a good job of implementing a subset of user space that looks like it has the system to itself. Essentially making chroot everything it could be. This is my take on what the implementation of a pid namespace should look like.

What follows is a real patch set that is sufficiently complete to be used and useful in it's own right. There are a few areas of the kernel where the patchset does not reach, mostly these cause the compile to fail. In addition a good thorough review still needs to be done. This patchset does paint a picture of how I think things should look.

Quoted 1 line

From the kernel community at large I am asking:

Does the code look generally sane?

Does the use of clone to create a new namespace instance look like the sane approach?

Hopefully this code is sufficiently comprehensible to allow a good discussion to come out of this.

Thanks for your time,

Eric

p.s. My apologies at the size of the CC list. It is very hard to tell who the interested parties are, and since there is no one list we all subscribe to other than linux-kernel how to reach everyone in a timely manner. I am copying everyone who has chimed in on a previous thread on the subject. If you don't want to be copied in the future tell and I will take your name off of my list.