android_kernel_google_msm/fs/proc
Eric W. Biederman 60e6a983e5 proc: Usable inode numbers for the namespace file descriptors.
Assign a unique proc inode to each namespace, and use that
inode number to ensure we only allocate at most one proc
inode for every namespace in proc.

A single proc inode per namespace allows userspace to test
to see if two processes are in the same namespace.

This has been a long requested feature and only blocked because
a naive implementation would put the id in a global space and
would ultimately require having a namespace for the names of
namespaces, making migration and certain virtualization tricks
impossible.

We still don't have per superblock inode numbers for proc, which
appears necessary for application unaware checkpoint/restart and
migrations (if the application is using namespace file descriptors)
but that is now allowd by the design if it becomes important.

I have preallocated the ipc and uts initial proc inode numbers so
their structures can be statically initialized.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
(cherry picked from commit 98f842e675)
2015-07-13 11:18:01 -07:00
..
array.c procfs: fix /proc/statm 2012-03-28 17:14:35 -07:00
base.c proc: make oom adjustment files user read-only 2015-03-11 22:00:09 -07:00
cmdline.c
consoles.c
cpuinfo.c
devices.c
generic.c proc: Generalize proc inode allocation 2015-07-13 11:17:58 -07:00
inode.c proc: Fix the namespace inode permission checks. 2015-07-13 11:18:00 -07:00
internal.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/sysctl 2012-03-23 18:08:58 -07:00
interrupts.c
Kconfig
kcore.c fs/proc/kcore.c: make get_sparsemem_vmemmap_info() static 2012-03-23 16:58:42 -07:00
kmsg.c
loadavg.c
Makefile
meminfo.c
mmu.c
namespaces.c proc: Usable inode numbers for the namespace file descriptors. 2015-07-13 11:18:01 -07:00
nommu.c
page.c pagemap: export KPF_THP 2012-03-21 17:54:57 -07:00
proc_devtree.c
proc_net.c
proc_sysctl.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/sysctl 2012-03-23 18:08:58 -07:00
proc_tty.c
root.c proc: fix mount -t proc -o AAA 2012-04-05 15:25:50 -07:00
softirqs.c
stat.c nohz: Fix idle ticks in cpu summary line of /proc/stat 2013-03-04 12:48:24 -08:00
task_mmu.c fs/proc/task_mmu.c: add user-space support for resetting mm->hiwater_rss (peak RSS) 2015-04-07 16:23:57 -07:00
task_nommu.c procfs: mark thread stack correctly in proc/<pid>/maps 2012-03-21 17:54:58 -07:00
uptime.c
version.c
vmcore.c fadump: Introduce cleanup routine to invalidate /proc/vmcore. 2012-02-23 10:50:02 +11:00