Hello,
This patch does a couple of things. - It splits proc into proc and proc_sysinfo - It adds pspace support to proc - It adds getattr methods to ensure proc has the proper hard link count. - It increases the size of a couple of buffers by one to avoid buffer overflow - It moves /proc/mounts and /proc/loadavg into the proc filesystem from proc_sysinfo Sorry for the big patch. When I start feeding this changes seriously I will split this patch. The split of /proc into mutliple filesystems works well however it comes with one downsides. There are now some directories where cd -P <subdir>/.. is not a noop. Basically it is doing the equivalent of following symlinks into an internal kernel mount. It is well defined and safe behaviour but I'm not certain if it is desirable. Signed-off-by: Eric W. Biederman <[email protected]>
This one is really ugly.And it is also controversial to your own idea of having separate namespaces, but introduces a pointer to proc_mnt in pspace.
You have many namespaces to which task_struct refers. Do you want proc to work in any configuration of namespaces? Then you can't have pointers to proc_mnt from namespaces. Well, I understand that proc is the most painfull for you... yeah... Kirill - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [RFC][PATCH 20/20] proc: Update /proc to support multiple pid spaces.
- From: [email protected] (Eric W. Biederman)
- Re: [RFC][PATCH 20/20] proc: Update /proc to support multiple pid spaces.
- References:
- [RFC][PATCH 0/20] Multiple instances of the process id namespace
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 01/20] pid: Intoduce the concept of a wid (wait id)
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 02/20] pspace: The parent process id of pid 1 is always 0.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 03/20] pid: Introduce a generic helper to test for init.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 05/20] sched: Fixup the scheduler syscalls to deal with pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 06/20] cad_pid: Fixup the cad_pid users to assume it is in the initial process id namespace.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 07/20] tty: Update the tty layer to work with pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 08/20] vt: Update the virtual console to handle pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 09/20] ptrace: Update ptrace handle pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 10/20] capabilities: Update the capabilities code to handle pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 11/20] ioprio: Update ioprio to handle pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 12/20] fcntl: Update fcntl to work with pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 13/20] kthread: Update kthread to work with pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 14/20] mm: Update vmscan to work with pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 15/20] posix-timers: Update posix timers to work with pspaces.
- From: [email protected] (Eric W. Biederman)
- [PATCH 16/20] nfs: Don't use pids to track the lockd server process.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 17/20] usb: Fixup usb so it works with pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 18/20] posix-mqueue: Make mqueues work with pspspaces
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 19/20] pspace: Upcate the pid_max sysctl to work in a per pspace fashion
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 20/20] proc: Update /proc to support multiple pid spaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 0/20] Multiple instances of the process id namespace
- Prev by Date: Re: 2.6.16-rc2-mm1 - BUG: unable to handle kernel NULL pointer dereference at virtual address 0000003a
- Next by Date: Change by turning every minute healingly
- Previous by thread: [RFC][PATCH 20/20] proc: Update /proc to support multiple pid spaces.
- Next by thread: Re: [RFC][PATCH 20/20] proc: Update /proc to support multiple pid spaces.
- Index(es):